Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp608812pxb; Wed, 15 Sep 2021 09:06:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3YvI97of90ddB6zlOoFDRRYjxc+uYa29Y5L5cNBsGq3DC7QtbsZlazXGTw04nUertnBJd X-Received: by 2002:a6b:d915:: with SMTP id r21mr675440ioc.76.1631721999584; Wed, 15 Sep 2021 09:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631721999; cv=none; d=google.com; s=arc-20160816; b=TNrLL/fVr5BXPmWPcwcun40jV9kDM8gKxwt+6sHm7NfCCW/o1sox9xhOkQWwEfF9fX kIRKPsiCUQVcJegGG5Mv7CRSyCnhx12zreBIKHieNh35TFcuCVW0h/suAFjqtpCbheev iKBsY2Is9XARyQYD9pyIsRAYBj6xcQjagkzB5Sa8Hed2TWLyjJRcT/bQRlzdRbs3xMcW G9Mz2YVjmG/TOwbQZLpmvcsgaSqbnSjuZAf3NucMivc2toy88RHO9quMcDMEIhlB0Wq4 FyHFqIvR0CKok8aX3YC9P5fnnisfmFykWM5FICcBPBpIwARwJfgBRMuLXQV1iTtCTO4o hfig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=LdcHbBnWgBJkZLhfI91fatjdoluwa+ngRYImj4hNKsw=; b=MuLyeXMrgOKJNOHFhDSO0c84/0PlCznu/qnWsr/9rqN/BFiG4GH/r4PaCNxhYehSK2 JEVzSBbFHdzHgGmzyeoJXqhjpcz05RGP9p0gKNcijHWlz4BlrcwdIvfoca971BxV9Cyh upDbqOwexRJKFE1c0S9jksPgj200yzuiutppBeXk/MO8r8ug4133X7vPLL5u5e4/r85w FSHfAz3XgG6yTiB/zLBWp5MgOuaYU50EHp3eomgB2SYNna81QDq8gQY2cFhcUSyuXk1w XvKnjUB4bcmQcInR1qY2GwQ2S4y+QmeJgmhTxAD6RX/Fut5GrPy3oQoZ4LMmHub0xH8L sOwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Z2CECb+H; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=72QXXUVd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si274121iot.14.2021.09.15.09.06.24; Wed, 15 Sep 2021 09:06:39 -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=@suse.cz header.s=susede2_rsa header.b=Z2CECb+H; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=72QXXUVd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232481AbhIOQGu (ORCPT + 99 others); Wed, 15 Sep 2021 12:06:50 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:44990 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbhIOQGt (ORCPT ); Wed, 15 Sep 2021 12:06:49 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 073D222296; Wed, 15 Sep 2021 16:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1631721928; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LdcHbBnWgBJkZLhfI91fatjdoluwa+ngRYImj4hNKsw=; b=Z2CECb+HpdKgJoPke2KE6qM+CoCoBBotOugtyIC/nOe+NQrTpSmNnshRy78LREFhgDiQBv i8YcCivfhW5gDUYu38PbY4u0mo1kX3tUNRjThse906PqkMQNnfHcfbPqxBYO90Yd8JE9bc OYV403CIzF+YolxvC9bj31cvjhENQEM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1631721928; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LdcHbBnWgBJkZLhfI91fatjdoluwa+ngRYImj4hNKsw=; b=72QXXUVdo3RcUbY60/Jor7fuRCZ/SYVWCSP0x42vgHPBahWnRmsxeRai1WgHefivyjMSif 9DnJJu1IQaa8+mCA== Received: from lion.mk-sys.cz (unknown [10.100.200.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id CD662A3B90; Wed, 15 Sep 2021 16:05:26 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id B2BD7607E0; Wed, 15 Sep 2021 18:05:26 +0200 (CEST) Date: Wed, 15 Sep 2021 18:05:26 +0200 From: Michal Kubecek To: Jisheng Zhang Cc: Miles Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com Subject: Re: [PATCH] scripts/sorttable: riscv: fix undelcred identifier 'EM_RISCV' error Message-ID: <20210915160526.tittz3fewddjrqu3@lion.mk-sys.cz> References: <20210913030625.4525-1-miles.chen@mediatek.com> <20210915215432.02a5e08e@xhacker> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210915215432.02a5e08e@xhacker> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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://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 *); > > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek