[TRIVIAL PATCH] Ensure pfn_to_nid() is always defined for i386

From: Matthew Dobson
Date: Mon Dec 22 2003 - 14:49:15 EST


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 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 */