Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2227379pxb; Fri, 17 Sep 2021 05:20:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI/QybmG6FZThUT81OlgNbUtNLuGOgo9IFcKQ2cWfKZemAsITpv66maVdWOnyxiHc40gtN X-Received: by 2002:a05:6e02:2148:: with SMTP id d8mr7703614ilv.305.1631881250969; Fri, 17 Sep 2021 05:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631881250; cv=none; d=google.com; s=arc-20160816; b=Cp5ZR6G9a/noqF9Lb+m7PZP3eEBdJGd0BiMkN5b7D4feTY4hNo9HKQysIWX27i1bc7 N2FRagaUvGY3IH9cIot0+XZc1NCVh88sTLMZysVlFURFQfZ5WBnuhV+9lLF7RTdhSpXo W/6KYowh7unn6OxPcVAkCeRoAPd29+y9CY70h+n1EqPPmATATP2QIOM7rCzPqHRVXKcx esfTjzyrKGuftbqxxu7iGFr4y1mDCzSplLLuGTUz889ouF/eF9xugqCjekjQckXyunYQ Qj2TntSTe2jDt/AhWKxEq6Tg4aO4HvZ6+wbh3KTkap1qK+F2pQlOjHoG/slysqUt7Kws 9yTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=sQoDiOm01Wj1dRC9rUGsHI6czXf50mJ0Pn2CW3nG6BA=; b=y7Ndo3HiV6dYxInbaVElc2J+A6UlJU6+N73qzgxq9oRbuHnxi4XfINl+kxsfeUZJhb 84mibTzbfReptmPWQq9Q3N7vSYjWpS3NKt6PIP/qEOBH/C3VGIRyNePeVDmwIqZbZV2g 2iE9pM1GVy4NN05qi5JPCEfNHSUO9cZ9n+KmI9inEHhjtU5UEOaQa4K7LC6uJQ9lrpVY NW+CfWTyjbll0h57mjNZJz/M1NS3BIEaI1t99GRqYr5bVp0ABAh/5N/CRQunQDq6nWK8 QkfREx7YuUs9GZZ4YGFWCtCMcNyeHTfvGJDeN7qc+5HKNJgc3yfpcv1f4h1rd84syHcK fA2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si5150196jad.40.2021.09.17.05.20.39; Fri, 17 Sep 2021 05:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232880AbhIQE2y (ORCPT + 99 others); Fri, 17 Sep 2021 00:28:54 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:44470 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230299AbhIQE2x (ORCPT ); Fri, 17 Sep 2021 00:28:53 -0400 X-UUID: 1fe8cc2fda6144719cd5ab068e484217-20210917 X-UUID: 1fe8cc2fda6144719cd5ab068e484217-20210917 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2130152947; Fri, 17 Sep 2021 12:27:26 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 17 Sep 2021 12:27:24 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 17 Sep 2021 12:27:24 +0800 Message-ID: Subject: Re: [PATCH] scripts/sorttable: riscv: fix undelcred identifier 'EM_RISCV' error From: Miles Chen To: Michal Kubecek , Jisheng Zhang , Andrew Morton CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , , , , Date: Fri, 17 Sep 2021 12:27:24 +0800 In-Reply-To: <20210915160526.tittz3fewddjrqu3@lion.mk-sys.cz> References: <20210913030625.4525-1-miles.chen@mediatek.com> <20210915215432.02a5e08e@xhacker> <20210915160526.tittz3fewddjrqu3@lion.mk-sys.cz> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 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 > > > Reported-by: Stefan Wahren > > > Fixes: 54fed35fd393 ("riscv: Enable BUILDTIME_TABLE_SORT") > > > Signed-off-by: Miles Chen > > > > Reviewed-by: Jisheng Zhang 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@lists.infradead.org > > https://urldefense.com/v3/__http://lists.infradead.org/mailman/listinfo/linux-mediatek__;!!CTRNKA9wMg0ARbw!2wBeUUDf3Z2m7uJLF51GeZnBFWXRlEQrzGJ72JWIT0MPUcS_RgW98QWTXkH74aYBWQ$ > >