From: Hollis Blanchard Subject: [patch] make ELF functions static Date: Tue, 29 Aug 2006 16:15:32 -0500 Message-ID: <1156886133.29858.75.camel@basalt.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: xen-devel , xen-ppc-devel List-Id: xen-devel@lists.xenproject.org Hi Ian, these functions should be static. It would only be a style issue except PowerPC actually #includes elf.c twice, to support both 32- and 64-bit ELF binaries. Please apply. Make xen_elfnote_string() and xen_elfnote_numeric() static. Signed-off-by: Hollis Blanchard --- a/xen/common/elf.c Tue Aug 29 06:53:58 2006 -0400 +++ b/xen/common/elf.c Tue Aug 29 15:52:40 2006 -0500 @@ -145,7 +145,7 @@ static Elf_Note *xen_elfnote_lookup(stru return NULL; } -const char *xen_elfnote_string(struct domain_setup_info *dsi, int type) +static const char *xen_elfnote_string(struct domain_setup_info *dsi, int type) { Elf_Note *note; @@ -159,8 +159,8 @@ const char *xen_elfnote_string(struct do return (const char *)ELFNOTE_DESC(note); } -unsigned long long xen_elfnote_numeric(struct domain_setup_info *dsi, - int type, int *defined) +static unsigned long long xen_elfnote_numeric(struct domain_setup_info *dsi, + int type, int *defined) { Elf_Note *note; --- a/xen/include/xen/elf.h Tue Aug 29 06:53:58 2006 -0400 +++ b/xen/include/xen/elf.h Tue Aug 29 16:06:08 2006 -0500 @@ -529,10 +529,6 @@ extern int loadelfimage(struct domain_se extern int loadelfimage(struct domain_setup_info *); extern int parseelfimage(struct domain_setup_info *); -extern unsigned long long xen_elfnote_numeric(struct domain_setup_info *dsi, - int type, int *defined); -extern const char *xen_elfnote_string(struct domain_setup_info *dsi, int type);- #ifdef Elf_Ehdr extern int elf_sanity_check(Elf_Ehdr *ehdr); #endif -- Hollis Blanchard IBM Linux Technology Center