Skip to contentSkip to conversation

arch: add missing 'string' declaration to BR2_LD_TARGET_EMULATION

PATCH New Arnout Vandecappelle (Essensium/Mind) 3 participants 4 messages Aug 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch: add missing 'string' declaration to BR2_LD_TARGET_EMULATION

Commit dc6f4c8 forgot to give a type (string) to the newly introduced BR2_LD_TARGET_EMULATION symbol.

Possibly it was intended to be a "global" symbol like BR2_GCC_TARGET_ABI where the declaration is in arch/Config.in and not in the arch-specific Config.in. However, in this case, the symbol is only defined/used for MIPS so there is no "global" declaration.

Without this, Kconfig gives a warning:
arch/Config.in.mips:87:warning: config symbol defined without type

---
 arch/Config.in.mips | 1 +
 1 file changed, 1 insertion(+)
arch/Config.in.mips +1 -0
index 37e4bf6..ebc71de 100644
@@ -85,6 +85,7 @@ config BR2_GCC_TARGET_ABI
 	default "64"		if BR2_MIPS_NABI64
 
 config BR2_LD_TARGET_EMULATION
+	string
 	default "elf64ltsmip"		if  BR2_mips64el && BR2_MIPS_NABI64
 	default "elf64btsmip"		if  BR2_mips64   && BR2_MIPS_NABI64
 	default "elf32ltsmipn32"	if  BR2_mips64el && BR2_MIPS_NABI32
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 arch: add missing 'string' declaration to BR2_LD_TARGET_EMULATION

Quoted 8 lines · Arnout Vandecappelle (Essensium/Mind)

Commit dc6f4c8 forgot to give a type (string) to the newly introduced BR2_LD_TARGET_EMULATION symbol.

Possibly it was intended to be a "global" symbol like BR2_GCC_TARGET_ABI where the declaration is in arch/Config.in and not in the arch-specific Config.in. However, in this case, the symbol is only defined/used for MIPS so there is no "global" declaration.

Quoted 5 lines

Without this, Kconfig gives a warning:
arch/Config.in.mips:87:warning: config symbol defined without type

I assume so :-)

br,

Jan

Quoted 19 lines
---
 arch/Config.in.mips | 1 +
 1 file changed, 1 insertion(+)
arch/Config.in.mips +1 -1
index 37e4bf6..ebc71de 100644
@@ -85,6 +85,7 @@ config BR2_GCC_TARGET_ABI
        default "64"            if BR2_MIPS_NABI64
 
 config BR2_LD_TARGET_EMULATION
+       string
        default "elf64ltsmip"           if  BR2_mips64el && BR2_MIPS_NABI64
        default "elf64btsmip"           if  BR2_mips64   && BR2_MIPS_NABI64
        default "elf32ltsmipn32"        if  BR2_mips64el && BR2_MIPS_NABI32
--

2.8.1

#2 lore raw

PATCH 1/1 arch: add missing 'string' declaration to BR2_LD_TARGET_EMULATION

In reply to Arnout Vandecappelle (Essensium/Mind)
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

Commit dc6f4c8 forgot to give a type (string) to the newly introduced BR2_LD_TARGET_EMULATION symbol.

Ehh, we don't have a dc6f4c8 commit. Are you referring to

http://patchwork.ozlabs.org/patch/606691/

If so, is this a sneaky way of sending your acked-by? ;)

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 arch: add missing 'string' declaration to BR2_LD_TARGET_EMULATION

Quoted 10 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

Commit dc6f4c8 forgot to give a type (string) to the newly introduced BR2_LD_TARGET_EMULATION symbol.

Ehh, we don't have a dc6f4c8 commit. Are you referring to

http://patchwork.ozlabs.org/patch/606691/

If so, is this a sneaky way of sending your acked-by? ;)

Oops... It looks like my master isn't clean, it still has a stack of patches I
was about to review months ago (and my git pull does implicit rebase). And it seems I even forgot to apply http://patchwork.ozlabs.org/patch/606690/ which adds the "string" declaration to arch/Config.in...

So I've marked this one as rejected. Sorry for the noise...

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF