[PATCH] recordmcount: Fix build failure on non arm64

Subsystems: the rest

STALE2192d LANDED

Landed in mainline as 3df14264ad99 on 2020-08-10.

5 messages, 4 authors, 2020-08-10 · open the first message on its own page

[PATCH] recordmcount: Fix build failure on non arm64

From: Christophe Leroy <hidden>
Date: 2020-08-10 08:48:28

Commit ea0eada45632 leads to the following build failure on powerpc:

  HOSTCC  scripts/recordmcount
scripts/recordmcount.c: In function 'arm64_is_fake_mcount':
scripts/recordmcount.c:440: error: 'R_AARCH64_CALL26' undeclared (first use in this function)
scripts/recordmcount.c:440: error: (Each undeclared identifier is reported only once
scripts/recordmcount.c:440: error: for each function it appears in.)
make[2]: *** [scripts/recordmcount] Error 1

Make sure R_AARCH64_CALL26 is always defined.

Fixes: ea0eada45632 ("recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.")
Cc: Gregory Herrero <redacted>
Signed-off-by: Christophe Leroy <redacted>
---
 scripts/recordmcount.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index e59022b3f125..b9c2ee7ab43f 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -42,6 +42,8 @@
 #define R_ARM_THM_CALL		10
 #define R_ARM_CALL		28
 
+#define R_AARCH64_CALL26	283
+
 static int fd_map;	/* File descriptor for file being modified. */
 static int mmap_failed; /* Boolean flag. */
 static char gpfx;	/* prefix for global symbol name (sometimes '_') */
-- 
2.25.0

Re: [PATCH] recordmcount: Fix build failure on non arm64

From: Gregory Herrero <hidden>
Date: 2020-08-10 09:18:58

Hi Christophe,

On Mon, Aug 10, 2020 at 08:48:22AM +0000, Christophe Leroy wrote:
Commit ea0eada45632 leads to the following build failure on powerpc:

  HOSTCC  scripts/recordmcount
scripts/recordmcount.c: In function 'arm64_is_fake_mcount':
scripts/recordmcount.c:440: error: 'R_AARCH64_CALL26' undeclared (first use in this function)
scripts/recordmcount.c:440: error: (Each undeclared identifier is reported only once
scripts/recordmcount.c:440: error: for each function it appears in.)
make[2]: *** [scripts/recordmcount] Error 1

Make sure R_AARCH64_CALL26 is always defined.
Oops, thanks for fixing this.

Acked-by: Gregory Herrero <redacted>

Greg
quoted hunk
Fixes: ea0eada45632 ("recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.")
Cc: Gregory Herrero <redacted>
Signed-off-by: Christophe Leroy <redacted>
---
 scripts/recordmcount.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index e59022b3f125..b9c2ee7ab43f 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -42,6 +42,8 @@
 #define R_ARM_THM_CALL		10
 #define R_ARM_CALL		28
 
+#define R_AARCH64_CALL26	283
+
 static int fd_map;	/* File descriptor for file being modified. */
 static int mmap_failed; /* Boolean flag. */
 static char gpfx;	/* prefix for global symbol name (sometimes '_') */
-- 
2.25.0

Re: [PATCH] recordmcount: Fix build failure on non arm64

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2020-08-10 12:19:01

On Mon, Aug 10, 2020 at 11:17:30AM +0200, Gregory Herrero wrote:
On Mon, Aug 10, 2020 at 08:48:22AM +0000, Christophe Leroy wrote:
quoted
Commit ea0eada45632 leads to the following build failure on powerpc:

  HOSTCC  scripts/recordmcount
scripts/recordmcount.c: In function 'arm64_is_fake_mcount':
scripts/recordmcount.c:440: error: 'R_AARCH64_CALL26' undeclared (first use in this function)
scripts/recordmcount.c:440: error: (Each undeclared identifier is reported only once
scripts/recordmcount.c:440: error: for each function it appears in.)
make[2]: *** [scripts/recordmcount] Error 1

Make sure R_AARCH64_CALL26 is always defined.
Oops, thanks for fixing this.

Acked-by: Gregory Herrero <redacted>
Thanks. I'll queue it via the arm64 tree (as I did with the previous
fix) but I'll wait a bit for Steve to ack it.

-- 
Catalin

Re: [PATCH] recordmcount: Fix build failure on non arm64

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2020-08-10 13:27:49

On Mon, 10 Aug 2020 13:18:55 +0100
Catalin Marinas [off-list ref] wrote:
quoted
Oops, thanks for fixing this.

Acked-by: Gregory Herrero <redacted>  
Thanks. I'll queue it via the arm64 tree (as I did with the previous
fix) but I'll wait a bit for Steve to ack it.
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- Steve

Re: [PATCH] recordmcount: Fix build failure on non arm64

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2020-08-10 14:26:42

On Mon, 10 Aug 2020 08:48:22 +0000 (UTC), Christophe Leroy wrote:
Commit ea0eada45632 leads to the following build failure on powerpc:

  HOSTCC  scripts/recordmcount
scripts/recordmcount.c: In function 'arm64_is_fake_mcount':
scripts/recordmcount.c:440: error: 'R_AARCH64_CALL26' undeclared (first use in this function)
scripts/recordmcount.c:440: error: (Each undeclared identifier is reported only once
scripts/recordmcount.c:440: error: for each function it appears in.)
make[2]: *** [scripts/recordmcount] Error 1

[...]
Applied to arm64 (for-next/core), thanks!

[1/1] recordmcount: Fix build failure on non arm64
      https://git.kernel.org/arm64/c/3df14264ad99

-- 
Catalin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help