All of lore.kernel.org
 help / color / mirror / Atom feed
* Doubts in usr/include/linux/elf.h
@ 2009-01-21  0:16 Jaswinder Singh Rajput
  2009-01-21  3:56 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Jaswinder Singh Rajput @ 2009-01-21  0:16 UTC (permalink / raw)
  To: Ingo Molnar, x86 maintainers, LKML, Sam Ravnborg

usr/include/linux/elf.h is giving 4 'make headers_check' warnings:
 usr/include/linux/elf.h:379: extern's make no sense in userspace
 usr/include/linux/elf.h:387: extern's make no sense in userspace
 usr/include/linux/elf.h:401: extern's make no sense in userspace
 usr/include/linux/elf.h:402: extern's make no sense in userspace


usr/include/linux/elf.h:
--
#if ELF_CLASS == ELFCLASS32

extern Elf32_Dyn _DYNAMIC [];
#define elfhdr          elf32_hdr
#define elf_phdr        elf32_phdr
#define elf_note        elf32_note
#define elf_addr_t      Elf32_Off

#else

extern Elf64_Dyn _DYNAMIC [];
#define elfhdr          elf64_hdr
#define elf_phdr        elf64_phdr
#define elf_note        elf64_note
#define elf_addr_t      Elf64_Off

#endif

/* Optional callbacks to write extra ELF notes. */
#ifndef ARCH_HAVE_EXTRA_ELF_NOTES
static __inline__ int elf_coredump_extra_notes_size(void) { return 0; }
static __inline__ int elf_coredump_extra_notes_write(struct file *file,
                        loff_t *foffset) { return 0; }
#else
extern int elf_coredump_extra_notes_size(void);
extern int elf_coredump_extra_notes_write(struct file *file, loff_t *foffset);
#endif
--

Which things we can drop from this portion to get rid of above warnings.

Thanks

--
JSR


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-21  3:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21  0:16 Doubts in usr/include/linux/elf.h Jaswinder Singh Rajput
2009-01-21  3:56 ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.