Skip to contentSkip to conversation

FRV: Fix unannotated variable declarations

PATCH In review David Howells 2 participants 2 messages Mar 21, 2007 – Mar 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FRV: Fix unannotated variable declarations

From: David Howells <[email protected]>

Fix unannotated variable declarations. Variables that have allocation section annotations (such as __meminitdata) on their definitions must also have them on their declarations as not doing so may affect the addressing mode used by the compiler and may result in a linker error.

---

 include/linux/bootmem.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/bootmem.h +1 -1
index 2275f27..81c07cd 100644
@@ -108,7 +108,7 @@ static inline void *alloc_remap(int nid, unsigned long size)
 #endif /* CONFIG_HAVE_ARCH_ALLOC_REMAP */
 
 extern unsigned long __meminitdata nr_kernel_pages;
-extern unsigned long nr_all_pages;
+extern unsigned long __meminitdata nr_all_pages;
 
 extern void *alloc_large_system_hash(const char *tablename,
 				     unsigned long bucketsize,
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines

From: David Howells <[email protected]>

Fix unannotated variable declarations. Variables that have allocation section annotations (such as __meminitdata) on their definitions must also have them on their declarations as not doing so may affect the addressing mode used by the compiler and may result in a linker error.

Right. Thanks.

Signature · 1 line
Yasunori Goto