All of lore.kernel.org
 help / color / mirror / Atom feed
* + scripts-sorttable-riscv-fix-undelcred-identifier-em_riscv-error.patch added to -mm tree
@ 2021-09-19 23:43 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-09-19 23:43 UTC (permalink / raw)
  To: mm-commits, stefan.wahren, paul.walmsley, palmer, mkubecek,
	jszhang, aou, miles.chen


The patch titled
     Subject: scripts/sorttable: riscv: fix undelcred identifier 'EM_RISCV' error
has been added to the -mm tree.  Its filename is
     scripts-sorttable-riscv-fix-undelcred-identifier-em_riscv-error.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/scripts-sorttable-riscv-fix-undelcred-identifier-em_riscv-error.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/scripts-sorttable-riscv-fix-undelcred-identifier-em_riscv-error.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Miles Chen <miles.chen@mediatek.com>
Subject: scripts/sorttable: riscv: fix undelcred identifier 'EM_RISCV' error

Fix the following build break by adding a conditional definition of
EM_RISCV in order to allow cross-compilation on machines which do not have
EM_RISCV definition in their host.

build break log from [1]:
scripts/sorttable.c:352:7: error: use of undeclared identifier 'EM_RISCV'

[1] https://lore.kernel.org/lkml/e8965b25-f15b-c7b4-748c-d207dda9c8e8@i2se.com/

EM_RISCV was added to <elf.h> in glibc 2.24 so builds on systems with
glibc headers < 2.24 should show this error.

[mkubecek@suse.cz: changelog addition]
Link: https://lkml.kernel.org/r/20210913030625.4525-1-miles.chen@mediatek.com
Fixes: 54fed35fd393 ("riscv: Enable BUILDTIME_TABLE_SORT")
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Cc: Michal Kubecek <mkubecek@suse.cz>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/sorttable.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/scripts/sorttable.c~scripts-sorttable-riscv-fix-undelcred-identifier-em_riscv-error
+++ a/scripts/sorttable.c
@@ -54,6 +54,10 @@
 #define EM_ARCV2	195
 #endif
 
+#ifndef EM_RISCV
+#define EM_RISCV	243
+#endif
+
 static uint32_t (*r)(const uint32_t *);
 static uint16_t (*r2)(const uint16_t *);
 static uint64_t (*r8)(const uint64_t *);
_

Patches currently in -mm which might be from miles.chen@mediatek.com are

scripts-sorttable-riscv-fix-undelcred-identifier-em_riscv-error.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-19 23:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-19 23:43 + scripts-sorttable-riscv-fix-undelcred-identifier-em_riscv-error.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.