Skip to contentSkip to conversation

Add initdata variable spec in a header file

PATCH New David Howells 1 participant 1 message Jan 4, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add initdata variable spec in a header file

The attached patch marks a variable as __initdata in a header file so that the FRV gcc generates the correct access method as initdata variables are too far from the GPREL pointer to access directly.

---
warthog>diffstat initdata-2610mm1.diff

 bootmem.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
include/linux/bootmem.h renamed from warthog/kernels/linux-2.6.10-mm1/include/linux/bootmem.h +1 -1
diff -uNrp /warthog/kernels/linux-2.6.10-mm1/include/linux/bootmem.h linux-2.6.10-mm1-frv/include/linux/bootmem.h
@@ -91,7 +91,7 @@ extern void *__init alloc_large_system_h
 #else
 #define HASHDIST_DEFAULT 0
 #endif
-extern int hashdist;		/* Distribute hashes across NUMA nodes? */
+extern int __initdata hashdist;		/* Distribute hashes across NUMA nodes? */
 
 
 #endif /* _LINUX_BOOTMEM_H */