From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 16 Nov 2005 23:00:03 +0000 Subject: [PATCH 1/3] kvaddr_to_nid not used in common code Message-ID: <20051116230003.GA16467@shadowen.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Andy Whitcroft Sender: owner-linux-mm@kvack.org Return-Path: To: Mike Kravetz Cc: Andy Whitcroft , Anton Blanchard , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: 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: Andy Whitcroft --- asm-i386/mmzone.h | 5 ----- linux/mmzone.h | 5 ----- 2 files changed, 10 deletions(-) diff -upN reference/include/asm-i386/mmzone.h current/include/asm-i386/mmzone.h --- reference/include/asm-i386/mmzone.h +++ current/include/asm-i386/mmzone.h @@ -76,11 +76,6 @@ static inline int pfn_to_nid(unsigned lo * 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_end_pfn(nid) \ ({ \ diff -upN reference/include/linux/mmzone.h current/include/linux/mmzone.h --- reference/include/linux/mmzone.h +++ current/include/linux/mmzone.h @@ -575,11 +575,6 @@ static inline int valid_section_nr(unsig 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) { return __nr_to_section(pfn_to_section_nr(pfn)); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org