Skip to contentSkip to conversation

Compile fixes for 2.6.3-mm1

PATCH Martin Hicks 1 participant 1 message Feb 18, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I had to apply the following two patches to get 2.6.3-mm1 to compile on ia64. I'm not sure if the pfn_to_nid() is correct. I used an extern to avoid a circular include of asm/numa.h and asm/mmzone.h

I also reverted the compat-ipc-consolidation.patch patch because it didn't compile and I couldn't even find a trace of struct compat_ipc64_perm

mh

Signature · 2 lines
Martin Hicks                Wild Open Source Inc.
[email protected]     613-266-2296

===== include/asm-ia64/mmzone.h 1.8 vs edited =====

include/asm-ia64/mmzone.h +2 -0
@@ -28,10 +28,12 @@
 #endif
 
 extern unsigned long max_low_pfn;
+extern int paddr_to_nid(unsigned long paddr);
 
 #define pfn_valid(pfn)		(((pfn) < max_low_pfn) && ia64_pfn_valid(pfn))
 #define page_to_pfn(page)	((unsigned long) (page - vmem_map))
 #define pfn_to_page(pfn)	(vmem_map + (pfn))
+#define pfn_to_nid(pfn)		paddr_to_nid((pfn) << PAGE_SHIFT)
 
 #else /* CONFIG_DISCONTIGMEM */
 # define NR_NODE_MEMBLKS	4

===== include/linux/msg.h 1.5 vs edited =====

include/linux/msg.h +1 -0
@@ -2,6 +2,7 @@
 #define _LINUX_MSG_H
 
 #include <linux/ipc.h>
+#include <linux/list.h>
 
 /* ipcs ctl commands */
 #define MSG_STAT 11