Skip to contentSkip to conversation

define node_*_pfn for non-NUMA builds

PATCH New Jiri Slaby 1 participant 1 message Aug 21, 2009

Subsystems (2)
lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 define node_*_pfn for non-NUMA builds

FWIW "Latest fs/proc/kcore updates" in the changelog are these from mmotm:

Quoted 3 lines

kcore-use-registerd-physmem-information.patch kcore-use-registerd-physmem-information-fix.patch kcore-use-registerd-physmem-information-checkpatch-fixes.patch

--

Latest fs/proc/kcore updates need node_end_pfn. To avoid a compiler error:
fs/proc/kcore.c: In function ‘kcore_update_ram’:
fs/proc/kcore.c:200: error: implicit declaration of function ‘node_end_pfn’ define node_start_pfn and node_end_pfn as simple contig_page_data accessors on !NUMA builds.

Cc KAMEZAWA Hiroyuki <[email protected]>
---
 include/linux/mmzone.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/mmzone.h +3 -0
index 9c50309..6789900 100644
@@ -771,6 +771,9 @@ extern char numa_zonelist_order[];
 extern struct pglist_data contig_page_data;
 #define NODE_DATA(nid)		(&contig_page_data)
 #define NODE_MEM_MAP(nid)	mem_map
+#define node_start_pfn(nid)	(contig_page_data.node_start_pfn)
+#define node_end_pfn(nid)	(contig_page_data.node_start_pfn +	\
+				 contig_page_data.node_spanned_pages)
 
 #else /* CONFIG_NEED_MULTIPLE_NODES */
 
Signature · 1 line
1.6.3.3