Skip to content

Commit 7193cda

Browse files
committed
modpost: remove unused Elf_Sword macro
Commit 9ad21c3 ("kbuild: try harder to find symbol names in modpost") added Elf_Sword (in a wrong way), but did not use it at all. BTW, the current code looks weird. The fix for the 32-bit part would be: Elf64_Sword --> Elf32_Sword (inconsistet prefix, Elf32_ vs Elf64_) The fix for the 64-bit part would be: Elf64_Sxword --> Elf64_Sword (the size is different between Sword and Sxword) Note: Elf32_Sword == Elf64_Sword == int32_t Elf32_Sxword == Elf64_Sxword == int64_t Anyway, let's drop unused code instead of fixing it. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]>
1 parent 258fafc commit 7193cda

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scripts/mod/modpost.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#define Elf_Shdr Elf32_Shdr
2727
#define Elf_Sym Elf32_Sym
2828
#define Elf_Addr Elf32_Addr
29-
#define Elf_Sword Elf64_Sword
3029
#define Elf_Section Elf32_Half
3130
#define ELF_ST_BIND ELF32_ST_BIND
3231
#define ELF_ST_TYPE ELF32_ST_TYPE
@@ -41,7 +40,6 @@
4140
#define Elf_Shdr Elf64_Shdr
4241
#define Elf_Sym Elf64_Sym
4342
#define Elf_Addr Elf64_Addr
44-
#define Elf_Sword Elf64_Sxword
4543
#define Elf_Section Elf64_Half
4644
#define ELF_ST_BIND ELF64_ST_BIND
4745
#define ELF_ST_TYPE ELF64_ST_TYPE

0 commit comments

Comments
 (0)