public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.12-rc5-mm1 - missing #define SECTIONS_SHIFT in sparsemem
@ 2005-05-28 22:38 Valdis.Kletnieks
  2005-05-29 23:27 ` Andy Whitcroft
  2005-05-31 16:02 ` Andy Whitcroft
  0 siblings, 2 replies; 4+ messages in thread
From: Valdis.Kletnieks @ 2005-05-28 22:38 UTC (permalink / raw)
  To: Andy Whitcroft, Andrew Morton; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

sparsemem-memory-model.patch references SECTIONS_SHIFT without defining it.

Caught this while compiling with -Wundef, causes lots of warnings
when it gets used in include/linux/mm.h.  The appended patch Works For Me,
although I wonder if the *real* problem isn't a missing '#ifdef CONFIG_SPARSEMEM'
around the code that uses it in mm.h.  
 
Signed-Off-By: valdis.kletnieks@vt.edu

--- linux-2.6.12-rc5-mm1/include/linux/mmzone.h.ifdef	2005-05-27 15:12:26.000000000 -0400
+++ linux-2.6.12-rc5-mm1/include/linux/mmzone.h	2005-05-27 16:26:40.000000000 -0400
@@ -568,6 +568,7 @@ static inline int pfn_valid(unsigned lon
 void sparse_init(void);
 #else
 #define sparse_init()	do {} while (0)
+#define SECTIONS_SHIFT	0
 #endif /* CONFIG_SPARSEMEM */
 
 #ifdef CONFIG_NODES_SPAN_OTHER_NODES


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-31 16:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-28 22:38 2.6.12-rc5-mm1 - missing #define SECTIONS_SHIFT in sparsemem Valdis.Kletnieks
2005-05-29 23:27 ` Andy Whitcroft
2005-05-30 16:31   ` Valdis.Kletnieks
2005-05-31 16:02 ` Andy Whitcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox