cris: Remove old legacy "-traditional" flag from arch-v10/lib/Makefile
PATCH 1/1 cris: Remove old legacy "-traditional" flag from arch-v10/lib/Makefile
Most of these have been purged years ago. This one silently lived on until commit 69349c2dc01c489eccaa4c472542c08e370c6d7e
"kconfig: fix IS_ENABLED to not require all options to be defined"
In the above, we use some macro trickery to create a conditional that is valid in CPP and in C usage. However that trickery doesn't sit well if you have the legacy "-traditional" flag enabled. You'll get:
AS arch/cris/arch-v10/lib/checksum.o
In file included from <command-line>:4:0:include/linux/kconfig.h:23:0: error: syntax error in macro parameter list make[2]: *** [arch/cris/arch-v10/lib/checksum.o] Error 1
Everything builds fine w/o "-traditional" so simply drop it from this location as well.
arch/cris/arch-v10/lib/Makefile +0 -3
@@ -2,8 +2,5 @@ # Makefile for Etrax-specific library files.. # - -EXTRA_AFLAGS := -traditional - lib-y = checksum.o checksumcopy.o string.o usercopy.o memset.o csumcpfruser.o
Signature · 1 line
1.7.9.1
Quoted 14 lines · Paul Gortmaker
Most of these have been purged years ago. This one silently lived on until commit
69349c2dc01c489eccaa4c472542c08e370c6d7e"kconfig: fix
IS_ENABLEDto not require all options to be defined"In the above, we use some macro trickery to create a conditional that is valid in CPP and in C usage. However that trickery doesn't sit well if you have the legacy "-traditional" flag enabled. You'll get:
AS
arch/cris/arch-v10/lib/checksum.o
In file included from <command-line>:4:0:include/linux/kconfig.h:23:0: error: syntax error in macro parameter list make[2]: *** [arch/cris/arch-v10/lib/checksum.o] Error 1
Quoted 4 lines
Everything builds fine w/o "-traditional" so simply drop it from this location as well.
Signed-off-by Paul Gortmaker <[email protected]>
Agreed, I'll push this to the CRIS-tree. Thanks!
/^JN - Jesper Nilsson
Signature · 1 line
Jesper Nilsson -- [email protected]
Quoted 15 lines · Jesper Nilsson
Quoted 14 lines · Paul Gortmaker
Most of these have been purged years ago. This one silently lived on until commit
69349c2dc01c489eccaa4c472542c08e370c6d7e"kconfig: fix
IS_ENABLEDto not require all options to be defined"In the above, we use some macro trickery to create a conditional that is valid in CPP and in C usage. However that trickery doesn't sit well if you have the legacy "-traditional" flag enabled. You'll get:
AS
arch/cris/arch-v10/lib/checksum.o
In file included from <command-line>:4:0:include/linux/kconfig.h:23:0: error: syntax error in macro parameter list make[2]: *** [arch/cris/arch-v10/lib/checksum.o] Error 1
Quoted 6 lines
Quoted 4 lines
Everything builds fine w/o "-traditional" so simply drop it from this location as well.
Signed-off-by Paul Gortmaker <[email protected]>Agreed, I'll push this to the CRIS-tree. Thanks!
Thanks, Please make sure it goes on your "for-3.4" branch, since Linus took the kconfig change directly into 3.4 (i.e. it is not specific to linux-next).
Paul.
Quoted 2 lines
/^JN - Jesper Nilsson