Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] Delete unused definitions of kvaddr_to_nid

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Ralf Baechle and committed by
Linus Torvalds
d501e62b 485bb99b

-7
-1
include/asm-mips/mmzone.h
··· 10 10 11 11 #ifdef CONFIG_DISCONTIGMEM 12 12 13 - #define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr)) 14 13 #define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT) 15 14 16 15 #endif /* CONFIG_DISCONTIGMEM */
-5
include/asm-parisc/mmzone.h
··· 14 14 15 15 #define NODE_DATA(nid) (&node_data[nid].pg_data) 16 16 17 - /* 18 - * Given a kernel address, find the home node of the underlying memory. 19 - */ 20 - #define kvaddr_to_nid(kaddr) pfn_to_nid(__pa(kaddr) >> PAGE_SHIFT) 21 - 22 17 #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) 23 18 #define node_end_pfn(nid) \ 24 19 ({ \
-1
include/asm-x86_64/mmzone.h
··· 42 42 43 43 #ifdef CONFIG_DISCONTIGMEM 44 44 #define pfn_to_nid(pfn) phys_to_nid((unsigned long)(pfn) << PAGE_SHIFT) 45 - #define kvaddr_to_nid(kaddr) phys_to_nid(__pa(kaddr)) 46 45 47 46 extern int pfn_valid(unsigned long pfn); 48 47 #endif