Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp507842pxb; Wed, 15 Sep 2021 07:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMf84FGIK2hKWyL5a3Q9c+3f9oN1xJYXtz862HlW9z0sRHNyE5YyIVOsOmuhPVCoRwA29G X-Received: by 2002:a05:6402:3514:: with SMTP id b20mr218525edd.152.1631714833506; Wed, 15 Sep 2021 07:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631714833; cv=none; d=google.com; s=arc-20160816; b=bZ9riR6vrr8hv/To15ckL5pOnALEz5ruqi3m5k2LqnGZi1Ql5C3roxTerxFU7We8gj dh7W0Q3khWgDXKPWBYiRUNylOmac4G3gGhqpGRKLfl/w0+ZOomw0hec+UjYHRN6Wn2WC B07pf9aalMOPIEIhm3ZpJjUoUiaLc2Oh0Emsuq0IGNcnsATC/eO/CIHDE2JghE8+RcIF ucWgNjGR0189W47emrvsJrs4x2hnDED5oi5ApJpPnP7Tn44PxmMQswXox45eF7qQUARW qngRv+DmqH8aBM0C4jPlHkGYhYW1RLiZmQXNFQj5gDmT0mo2/a5EjvHFUOMQ2AEMnYrw z0FA== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=2L9JYSzARBFCFAncpekcNa31rHUDF9/m9r+5y91THK4=; b=pxd78P3rRdTGAWBJdp0cPwoCxwDLbalLIIIRNp1Bk417aSvKbu3ovwj1ZSg7WqIxVS LQHOoaAJ6vqijjdH6MKsooZFgD7PvyDE/qDwH+l/mbRmEp2whpXELWulW/vCOf450tvE r5EnGmXLveRKXxIigev8yjsForw+vTf961jTqefqicl3nTelX3y7A8mwL4zWT8DpTU7Q W3LBdQLhVC4BVF0Kg93BQSyA/fjmY+jeTkCLCg8SS4HvwwxsVVxUKK3VaIjWwssjrtVS bEw0YCTpv8fRyd+a0xloy9XySHcySMpe/wtS/X+HodIW+FAg9rEEtnTwzyqTu5+c4XWk 2b5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mail.ustc.edu.cn header.s=dkim header.b=FeOwuQ62; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd8si33032ejc.657.2021.09.15.07.06.45; Wed, 15 Sep 2021 07:07:13 -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; dkim=pass header.i=@mail.ustc.edu.cn header.s=dkim header.b=FeOwuQ62; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233699AbhIOODD (ORCPT + 99 others); Wed, 15 Sep 2021 10:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233582AbhIOODC (ORCPT ); Wed, 15 Sep 2021 10:03:02 -0400 Received: from ustc.edu.cn (email6.ustc.edu.cn [IPv6:2001:da8:d800::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2DC49C061574 for ; Wed, 15 Sep 2021 07:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ustc.edu.cn; s=dkim; h=Received:Date:From:To:Cc:Subject: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=2L9JYSzARBFCFAncpekcNa31rHUDF9/m9r +5y91THK4=; b=FeOwuQ62Uk/tfdPwutnlutV3ozdSAJacLK2CTSyRFeOTZ1qXfK 0ytSf8OCFafr9sSEALToAWnk3ts20VDuFMWsxx7ruxYB1fDBPf6WhmEJsuUp8LIc 140MZzSy3MhFs8StzHLZKTXQRdlC8xJtzIQ7ZnHpetHr/hS+i8ECxYYEc= Received: from xhacker (unknown [101.86.20.138]) by newmailweb.ustc.edu.cn (Coremail) with SMTP id LkAmygCX0qme_EFhlqQBAA--.880S2; Wed, 15 Sep 2021 22:01:02 +0800 (CST) Date: Wed, 15 Sep 2021 21:54:32 +0800 From: Jisheng Zhang To: Miles Chen Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , , , , Subject: Re: [PATCH] scripts/sorttable: riscv: fix undelcred identifier 'EM_RISCV' error Message-ID: <20210915215432.02a5e08e@xhacker> In-Reply-To: <20210913030625.4525-1-miles.chen@mediatek.com> References: <20210913030625.4525-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CM-TRANSID: LkAmygCX0qme_EFhlqQBAA--.880S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Cw18JrW5CFWkuFy7tFy8AFb_yoW8Jw43pa yYk345tFyrAF1xu3ZrCryrXF18Gw4vyw45GrsxWw18A3WFqFsYkr42yw1Y9FW5Wr97uryF krsFg34UGa1jk37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUyFb7Iv0xC_Cr1lb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41l42xK82IYc2Ij64vIr41l4I8I3I0E 4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGV WUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_ Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rV WrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_ GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8rcTPUUUUU== X-CM-SenderInfo: xmv2xttqjtqzxdloh3xvwfhvlgxou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > [1] https://lore.kernel.org/lkml/e8965b25-f15b-c7b4-748c-d207dda9c8e8@i2se.com/ > > Cc: Jisheng Zhang > Reported-by: Stefan Wahren > Fixes: 54fed35fd393 ("riscv: Enable BUILDTIME_TABLE_SORT") > Signed-off-by: Miles Chen Reviewed-by: Jisheng Zhang > --- > 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 *);