From: Michael Forney Date: Wed, 10 Jul 2019 21:17:35 +0000 (-0500) Subject: objtool: Use Elf_Scn typedef instead of assuming struct name X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3c3ea5031761fdd144b461d23a077c3a0cf427fa;p=linux.git objtool: Use Elf_Scn typedef instead of assuming struct name The libelf implementation might use a different struct name, and the Elf_Scn typedef is already used throughout the rest of objtool. Signed-off-by: Michael Forney Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/d270e1be2835fc2a10acf67535ff2ebd2145bf43.1562793448.git.jpoimboe@redhat.com --- diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index e99e1be19ad9b..76e4f7ceab821 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -463,7 +463,7 @@ struct section *elf_create_section(struct elf *elf, const char *name, { struct section *sec, *shstrtab; size_t size = entsize * nr; - struct Elf_Scn *s; + Elf_Scn *s; Elf_Data *data; sec = malloc(sizeof(*sec));