提交 9f3fd602 编写于 作者: A Andy Whitcroft 提交者: Linus Torvalds

[PATCH] mm: kvaddr_to_nid not used in common code

kvaddr_to_nid() isn't used in common code nor in i386 code.  Remove these
definitions.
Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 6bda666a
...@@ -76,11 +76,6 @@ static inline int pfn_to_nid(unsigned long pfn) ...@@ -76,11 +76,6 @@ static inline int pfn_to_nid(unsigned long pfn)
* Following are macros that each numa implmentation must define. * Following are macros that each numa implmentation must define.
*/ */
/*
* Given a kernel address, find the home node of the underlying memory.
*/
#define kvaddr_to_nid(kaddr) pfn_to_nid(__pa(kaddr) >> PAGE_SHIFT)
#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn)
#define node_end_pfn(nid) \ #define node_end_pfn(nid) \
({ \ ({ \
......
...@@ -564,11 +564,6 @@ static inline int valid_section_nr(unsigned long nr) ...@@ -564,11 +564,6 @@ static inline int valid_section_nr(unsigned long nr)
return valid_section(__nr_to_section(nr)); return valid_section(__nr_to_section(nr));
} }
/*
* Given a kernel address, find the home node of the underlying memory.
*/
#define kvaddr_to_nid(kaddr) pfn_to_nid(__pa(kaddr) >> PAGE_SHIFT)
static inline struct mem_section *__pfn_to_section(unsigned long pfn) static inline struct mem_section *__pfn_to_section(unsigned long pfn)
{ {
return __nr_to_section(pfn_to_section_nr(pfn)); return __nr_to_section(pfn_to_section_nr(pfn));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册