Skip to content

Commit

Permalink
[PATCH] Delete unused definitions of kvaddr_to_nid
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
ralfbaechle authored and Linus Torvalds committed Jun 23, 2006
1 parent 485bb99 commit d501e62
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion include/asm-mips/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#ifdef CONFIG_DISCONTIGMEM

#define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr))
#define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT)

#endif /* CONFIG_DISCONTIGMEM */
Expand Down
5 changes: 0 additions & 5 deletions include/asm-parisc/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ extern struct node_map_data node_data[];

#define NODE_DATA(nid) (&node_data[nid].pg_data)

/*
* 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_end_pfn(nid) \
({ \
Expand Down
1 change: 0 additions & 1 deletion include/asm-x86_64/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ static inline __attribute__((pure)) int phys_to_nid(unsigned long addr)

#ifdef CONFIG_DISCONTIGMEM
#define pfn_to_nid(pfn) phys_to_nid((unsigned long)(pfn) << PAGE_SHIFT)
#define kvaddr_to_nid(kaddr) phys_to_nid(__pa(kaddr))

extern int pfn_valid(unsigned long pfn);
#endif
Expand Down

0 comments on commit d501e62

Please sign in to comment.