lkml.org 
[lkml]   [2005]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Add initdata variable spec in a header file
Date

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 <dhowells@redhat.com>
---
warthog>diffstat initdata-2610mm1.diff
bootmem.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -uNrp /warthog/kernels/linux-2.6.10-mm1/include/linux/bootmem.h linux-2.6.10-mm1-frv/include/linux/bootmem.h
--- /warthog/kernels/linux-2.6.10-mm1/include/linux/bootmem.h 2005-01-04 11:15:26.000000000 +0000
+++ linux-2.6.10-mm1-frv/include/linux/bootmem.h 2005-01-04 14:59:53.000000000 +0000
@@ -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 */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.029 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site