GRU: fix preprocessor symbol for sparse
PATCH 1/1 GRU: fix preprocessor symbol for sparse
From: Randy Dunlap <[email protected]>
cc: [email protected]
Fix preprocessor symbol so that sparse sees it and does not generate errors:
linux-next-20080807/drivers/misc/sgi-gru/grutables.h:286:2: error: "Unsupported architecture" linux-next-20080807/drivers/misc/sgi-gru/grutables.h:286:2: error: "Unsupported architecture" linux-next-20080807/drivers/misc/sgi-gru/grutables.h:286:2: error: "Unsupported architecture" linux-next-20080807/drivers/misc/sgi-gru/grutables.h:286:2: error: "Unsupported architecture" linux-next-20080807/drivers/misc/sgi-gru/grutlbpurge.c:185:11: error: undefined identifier 'GRUREGION' linux-next-20080807/drivers/misc/sgi-gru/grutables.h:286:2: error: "Unsupported architecture" linux-next-20080807/drivers/misc/sgi-gru/grutables.h:286:2: error: "Unsupported architecture"
--- drivers/misc/sgi-gru/grutables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/sgi-gru/grutables.h +1 -1
@@ -279,7 +279,7 @@ struct gru_stats_s {#if definedCONFIG_IA64 #define VADDR_HI_BIT 64#define GRUREGION (addr) ((addr) >> (VADDR_HI_BIT - 3) & 3) -#elif defined __x86_64 +#elif definedCONFIG_X86_64 #define VADDR_HI_BIT 48#define GRUREGION (addr) (0)/* ZZZ could do better */ #else
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/