Add initdata variable spec in a header file
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.
Signed-off-by David Howells <[email protected]>
---
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
@@ -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 */