Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc: introduce CONFIG_BITS

CONFIG_BITS is set to 32 for sparc32
and 64 for sparc64.

This allow us to use this symbol in for example header files
to ease unification of sparc32 and sparc64.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sam Ravnborg and committed by
David S. Miller
fe6875ec 6e6ab2e2

+5 -1
+5 -1
arch/sparc/Kconfig
··· 46 46 default "arch/sparc/configs/sparc32_defconfig" if SPARC32 47 47 default "arch/sparc/configs/sparc64_defconfig" if SPARC64 48 48 49 - 49 + # CONFIG_BITS can be used at source level to get 32/64 bits 50 + config BITS 51 + int 52 + default 32 if SPARC32 53 + default 64 if SPARC64 50 54 51 55 config 64BIT 52 56 def_bool y if SPARC64