public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [TRIVIAL PATCH] Ensure pfn_to_nid() is always defined for i386
@ 2003-12-22 19:44 Matthew Dobson
  2003-12-23  0:26 ` Martin J. Bligh
  0 siblings, 1 reply; 8+ messages in thread
From: Matthew Dobson @ 2003-12-22 19:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: mbligh, Andrew Morton, Trivial Patch Monkey

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

pfn_to_nid() is defined for *almost* all configurations for i386.  There 
is a small bug in that for CONFIG_X86_PC it is not.  This just sets up a 
generic definition so that this function is always defined in a 
reasonable manner.

Cheers!

-Matt

[-- Attachment #2: pfn_to_nid_def.patch --]
[-- Type: text/plain, Size: 523 bytes --]

diff -Nurp --exclude-from=/home/mcd/.dontdiff linux-2.6.0-vanilla/include/asm-i386/mmzone.h linux-2.6.0-patched/include/asm-i386/mmzone.h
--- linux-2.6.0-vanilla/include/asm-i386/mmzone.h	Wed Dec 17 18:58:49 2003
+++ linux-2.6.0-patched/include/asm-i386/mmzone.h	Thu Dec 18 14:46:14 2003
@@ -123,6 +123,7 @@ static inline struct pglist_data *pfn_to
 #include <asm/srat.h>
 #elif CONFIG_X86_PC
 #define get_zholes_size(n) (0)
+#define pfn_to_nid(pfn)		(0)
 #else
 #define pfn_to_nid(pfn)		(0)
 #endif /* CONFIG_X86_NUMAQ */

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

end of thread, other threads:[~2004-03-29 15:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-22 19:44 [TRIVIAL PATCH] Ensure pfn_to_nid() is always defined for i386 Matthew Dobson
2003-12-23  0:26 ` Martin J. Bligh
2004-01-05 21:35   ` Matthew Dobson
2004-01-05 22:53   ` Mike Fedyk
2004-01-05 23:15     ` Martin J. Bligh
2004-03-29 15:45     ` Martin J. Bligh
2004-03-29 15:45   ` Matthew Dobson
2004-03-29 15:45   ` Mike Fedyk

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