[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b96f2415d14bcf00338b036155ea7f54b25d9a6d.camel@mediatek.com>
Date: Fri, 17 Sep 2021 12:27:24 +0800
From: Miles Chen <miles.chen@...iatek.com>
To: Michal Kubecek <mkubecek@...e.cz>,
Jisheng Zhang <jszhang3@...l.ustc.edu.cn>,
Andrew Morton <akpm@...ux-foundation.org>
CC: Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Jisheng Zhang <jszhang@...nel.org>,
<linux-kernel@...r.kernel.org>, <linux-riscv@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>, <wsd_upstream@...iatek.com>
Subject: Re: [PATCH] scripts/sorttable: riscv: fix undelcred identifier
'EM_RISCV' error
cc Andrew,
On Wed, 2021-09-15 at 18:05 +0200, Michal Kubecek wrote:
> On Wed, Sep 15, 2021 at 09:54:32PM +0800, Jisheng Zhang wrote:
> > On Mon, 13 Sep 2021 11:06:25 +0800
> > Miles Chen <miles.chen@...iatek.com> wrote:
> >
> > > 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'
> >
> > Looks strange I can't reproduce it. FWICT, this may be seen with
> > some old
> > toolchains.
>
> I checked the history and EM_RISCV was added to <elf.h> in glibc 2.24
> so
> builds on systems with glibc headers < 2.24 should show this error.
>
> Michal
>
> > > [1]
> > > https://urldefense.com/v3/__https://lore.kernel.org/lkml/e8965b25-f15b-c7b4-748c-d207dda9c8e8@i2se.com/__;!!CTRNKA9wMg0ARbw!2wBeUUDf3Z2m7uJLF51GeZnBFWXRlEQrzGJ72JWIT0MPUcS_RgW98QWTXkEjy9-lhg$
> > >
> > >
> > > Cc: Jisheng Zhang <jszhang@...nel.org>
> > > Reported-by: Stefan Wahren <stefan.wahren@...e.com>
> > > Fixes: 54fed35fd393 ("riscv: Enable BUILDTIME_TABLE_SORT")
> > > Signed-off-by: Miles Chen <miles.chen@...iatek.com>
> >
> > Reviewed-by: Jisheng Zhang <jszhang@...nel.org>
Hi Andrew,
I cannot find the maintainer for scripts/sorttable.c, would you pick up
this change, please?
thanks
Miles
> >
> > > ---
> > > scripts/sorttable.c | 4 ++++
> > > 1 file changed, 4 insertions(+)
> > >
> > > diff --git a/scripts/sorttable.c b/scripts/sorttable.c
> > > index f355869c65cd..6ee4fa882919 100644
> > > --- a/scripts/sorttable.c
> > > +++ b/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 *);
> >
> >
> >
> > _______________________________________________
> > Linux-mediatek mailing list
> > Linux-mediatek@...ts.infradead.org
> >
https://urldefense.com/v3/__http://lists.infradead.org/mailman/listinfo/linux-mediatek__;!!CTRNKA9wMg0ARbw!2wBeUUDf3Z2m7uJLF51GeZnBFWXRlEQrzGJ72JWIT0MPUcS_RgW98QWTXkH74aYBWQ$
> >
Powered by blists - more mailing lists