8 messages in com.xensource.lists.xen-devel[Xen-devel] [patch] make ELF function...| From | Sent On | Attachments |
|---|---|---|
| Hollis Blanchard | 29 Aug 2006 14:15 | |
| Ian Campbell | 30 Aug 2006 00:03 | |
| Jan Beulich | 30 Aug 2006 01:38 | |
| Gerd Hoffmann | 30 Aug 2006 01:44 | |
| Ian Campbell | 30 Aug 2006 02:06 | |
| Jimi Xenidis | 30 Aug 2006 04:00 | |
| Gerd Hoffmann | 30 Aug 2006 04:12 | |
| Jan Beulich | 30 Aug 2006 04:44 |
| Subject: | [Xen-devel] [patch] make ELF functions static![]() |
|---|---|
| From: | Hollis Blanchard (holl...@us.ibm.com) |
| Date: | 08/29/2006 02:15:09 PM |
| List: | com.xensource.lists.xen-devel |
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 <holl...@us.ibm.com>
--- 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
_______________________________________________ Xen-devel mailing list Xen-...@lists.xensource.com http://lists.xensource.com/xen-devel




