Skip to content

Commit

Permalink
arch/tile: avoid build warnings from duplicate ELF_R_xxx #defines
Browse files Browse the repository at this point in the history
These are now provided in <asm-generic/module.h>, so clean up warnings
by not re-defining them in module.c.

Signed-off-by: Chris Metcalf <[email protected]>
Acked-by: Rusty Russell <[email protected]>
  • Loading branch information
cmetcalf-tilera committed Oct 23, 2012
1 parent 627072b commit 7805963
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/tile/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@
#include <asm/homecache.h>
#include <arch/opcode.h>

#ifdef __tilegx__
# define Elf_Rela Elf64_Rela
# define ELF_R_SYM ELF64_R_SYM
# define ELF_R_TYPE ELF64_R_TYPE
#else
# define Elf_Rela Elf32_Rela
# define ELF_R_SYM ELF32_R_SYM
# define ELF_R_TYPE ELF32_R_TYPE
#endif

#ifdef MODULE_DEBUG
#define DEBUGP printk
#else
Expand Down

0 comments on commit 7805963

Please sign in to comment.