linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] objtool: Use Elf_Scn typedef instead of assuming struct name
@ 2019-07-10 21:17 Josh Poimboeuf
  2019-07-17 23:10 ` [tip:core/urgent] " tip-bot for Michael Forney
  0 siblings, 1 reply; 2+ messages in thread
From: Josh Poimboeuf @ 2019-07-10 21:17 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, Peter Zijlstra, Michael Forney

From: Michael Forney <mforney@mforney.org>

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 <mforney@mforney.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
---
 tools/objtool/elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index 1121926bdc1b..e18698262837 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));
-- 
2.20.1


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

* [tip:core/urgent] objtool: Use Elf_Scn typedef instead of assuming struct name
  2019-07-10 21:17 [PATCH] objtool: Use Elf_Scn typedef instead of assuming struct name Josh Poimboeuf
@ 2019-07-17 23:10 ` tip-bot for Michael Forney
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Michael Forney @ 2019-07-17 23:10 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: hpa, jpoimboe, mforney, tglx, linux-kernel, mingo

Commit-ID:  3c3ea5031761fdd144b461d23a077c3a0cf427fa
Gitweb:     https://git.kernel.org/tip/3c3ea5031761fdd144b461d23a077c3a0cf427fa
Author:     Michael Forney <mforney@mforney.org>
AuthorDate: Wed, 10 Jul 2019 16:17:35 -0500
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 18 Jul 2019 00:50:14 +0200

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 <mforney@mforney.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/d270e1be2835fc2a10acf67535ff2ebd2145bf43.1562793448.git.jpoimboe@redhat.com

---
 tools/objtool/elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index e99e1be19ad9..76e4f7ceab82 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));

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

end of thread, other threads:[~2019-07-17 23:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 21:17 [PATCH] objtool: Use Elf_Scn typedef instead of assuming struct name Josh Poimboeuf
2019-07-17 23:10 ` [tip:core/urgent] " tip-bot for Michael Forney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).