Re: [Lse-tech] 2.5.72-mjb2

Sean Neakums (sneakums@zork.net)
Thu, 19 Jun 2003 12:36:33 +0100


During build:

include/linux/mm.h: In function `page_to_nid':
include/linux/mm.h:620: warning: implicit declaration of function `pfn_to_nid'

This patch shuts it up, but I'm only guessing as to whether
page_to_nid is NUMA-specific.

--- C72-mjb2/include/linux/mm.h~ 2003-06-19 12:19:12.000000000 +0100
+++ C72-mjb2/include/linux/mm.h 2003-06-19 12:33:51.000000000 +0100
@@ -611,6 +611,7 @@
extern int remap_page_range(struct vm_area_struct *vma, unsigned long from,
unsigned long to, unsigned long size, pgprot_t prot);

+#ifdef CONFIG_NUMA
/*
* Given a struct page, determine which node's memory it is from.
* TODO: There's probably a more efficient way to do this...
@@ -620,7 +621,6 @@
return pfn_to_nid(page_to_pfn(page));
}

-#ifdef CONFIG_NUMA
static inline void zero_rss(struct mm_struct *mm)
{
mm->rss = 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/