From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: [PATCH 10/12] powerpc: remove unneeded exports in mem.c Date: Wed, 07 Feb 2007 13:45:46 +0100 Message-ID: <20070207124614.830282000@sipsolutions.net> References: <20070207124536.963531000@sipsolutions.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline; filename=remove-unneeded-exports.patch List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: linuxppc-dev@ozlabs.org Cc: linux-pm@lists.osdl.org List-Id: linux-pm@vger.kernel.org arch/powerpc/mm/mem.c exports page_is_ram and phys_mem_access_prot which both are not used anywhere that could be modular. Signed-off-by: Johannes Berg Cc: Paul Mackerras --- I don't see any possible way these could be used by external modules either, especially since they are not portable across arches. --- linux-2.6-git.orig/arch/powerpc/mm/mem.c 2007-02-07 02:55:34.636884289 = +0100 +++ linux-2.6-git/arch/powerpc/mm/mem.c 2007-02-07 02:55:35.252884289 +0100 @@ -83,7 +83,6 @@ int page_is_ram(unsigned long pfn) return 0; #endif } -EXPORT_SYMBOL(page_is_ram); = pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot) @@ -96,7 +95,6 @@ pgprot_t phys_mem_access_prot(struct fil | _PAGE_GUARDED | _PAGE_NO_CACHE); return vma_prot; } -EXPORT_SYMBOL(phys_mem_access_prot); = #ifdef CONFIG_MEMORY_HOTPLUG = -- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (crystal.sipsolutions.net [195.210.38.204]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id DE282DDF33 for ; Thu, 8 Feb 2007 00:00:50 +1100 (EST) Message-Id: <20070207124614.830282000@sipsolutions.net> References: <20070207124536.963531000@sipsolutions.net> Date: Wed, 07 Feb 2007 13:45:46 +0100 From: Johannes Berg To: linuxppc-dev@ozlabs.org Subject: [PATCH 10/12] powerpc: remove unneeded exports in mem.c Mime-Version: 1.0 Cc: Paul Mackerras , linux-pm@lists.osdl.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , arch/powerpc/mm/mem.c exports page_is_ram and phys_mem_access_prot which both are not used anywhere that could be modular. Signed-off-by: Johannes Berg Cc: Paul Mackerras --- I don't see any possible way these could be used by external modules either, especially since they are not portable across arches. --- linux-2.6-git.orig/arch/powerpc/mm/mem.c 2007-02-07 02:55:34.636884289 +0100 +++ linux-2.6-git/arch/powerpc/mm/mem.c 2007-02-07 02:55:35.252884289 +0100 @@ -83,7 +83,6 @@ int page_is_ram(unsigned long pfn) return 0; #endif } -EXPORT_SYMBOL(page_is_ram); pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot) @@ -96,7 +95,6 @@ pgprot_t phys_mem_access_prot(struct fil | _PAGE_GUARDED | _PAGE_NO_CACHE); return vma_prot; } -EXPORT_SYMBOL(phys_mem_access_prot); #ifdef CONFIG_MEMORY_HOTPLUG --