Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3765200rwe; Mon, 29 Aug 2022 20:14:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR7eUuMmOTQExMBHqBHvj5N6k/JyrbBJXFnNBO65ohlfpOAyx+qScdeeHbF50xbuRGiiMJz0 X-Received: by 2002:a17:90b:4f4e:b0:1f5:8a65:9192 with SMTP id pj14-20020a17090b4f4e00b001f58a659192mr21053271pjb.224.1661829260838; Mon, 29 Aug 2022 20:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661829260; cv=none; d=google.com; s=arc-20160816; b=IlIhLJpXmMylnaksvzsqktKzzsC4kXZ2qQzDCYJj8MOhRZhnbI6pBEvDZs2/anmqwA jDt4z22ObLYX2Xs91y9Lphe6TGFjs63F1Fub2n0kuyi0T030WfOFNhKzbatwKh+Y+UmT OPL2hzlxphf76lvBvH87CWf66o5M3gSeLefX3fF83dXrxdVz67ENLbFU7UJRcEkCOdic qxyTLbZwNNFWo/KMPonWN4+BDbkVKBgxQAOJVAti8zkCcCbSwfGl+tW16eJVV2izGJ0E vy9kFH0tqrEtM6qAbvM1RGlW+xyUqIGYbV5gAMfJ8kRMTQ0q2ClplEFt15pONwIefMyc P4tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GYaxllK62gg9u8lv8Nn2Mo4VgJVwDznToQw3L65RUsQ=; b=B1j45UGlbckseLLHYTOj4gaU0MtLCXiewnLPFK0kCJ9+LZQ9gOVNZu88kCS649ROTU n7XYUeiJ8br7b3/5WRH8rgFz5YgC49sK2HQ9WY0Pb+5YNrr0k+OTihdW1WCOuX7rMSr/ 6pA3CpXTLE7PyR5J5Sg9KqygG5DpLQR6g7FZwpwQ5+5kZEYCGSaEIKBuoG5OhtqdiFOs 3CtSaUukLiwWH4BOVCkySWXS8KrjduOz2wi3y2yOg1JBeNRtCOPSwYPUcj5vT60gnTpK Z+mQMvmm4Fk5Qd1XAlcsz10r0YfAWX0D/9a53v8z/zKlrSoyqSU4DntWbDLve6Sta8Pm hkXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=mJ8W4cnQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020a17090ad79400b001fdf2a477fasi1987945pju.24.2022.08.29.20.14.10; Mon, 29 Aug 2022 20:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=mJ8W4cnQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiH3CzI (ORCPT + 99 others); Mon, 29 Aug 2022 22:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiH3CzG (ORCPT ); Mon, 29 Aug 2022 22:55:06 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE13827FD7 for ; Mon, 29 Aug 2022 19:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1661828095; bh=jicVVKpBA+cgvSfNxC/C7jbvEsQZylNBRPCAz8Pbepc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mJ8W4cnQ35S5Y3Ib7frUpIObfVTiRs0QTvpSjGzeUwZBQq4wQHx+2gacfT/u25gPW CfA2ZKvh6TiukvTS/DJqKJuPYx7RXNDcEzBDE24V5OmxeneVc+LWDi9WxnCEL7QGoB Oj30PCKsjroReFVXxejCy7JLQ4TDHbpqfFiYYRPk= Received: from [100.100.57.219] (unknown [220.248.53.61]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 966A2600D4; Tue, 30 Aug 2022 10:54:55 +0800 (CST) Message-ID: <6563ce1b-7637-3402-be54-0e7acf4f86ca@xen0n.name> Date: Tue, 30 Aug 2022 10:54:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Thunderbird/106.0a1 Subject: Re: [PATCH v2] checksyscalls: Ignore fstat to silence build warning on LoongArch Content-Language: en-US To: Tiezhu Yang , Huacai Chen , Arnd Bergmann Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org References: <1661827800-8463-1-git-send-email-yangtiezhu@loongson.cn> From: WANG Xuerui In-Reply-To: <1661827800-8463-1-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/8/30 10:50, Tiezhu Yang wrote: > fstat is replaced by statx on the new architecture, so an exception > is added to the checksyscalls script to silence the following build > warning on LoongArch: > > CALL scripts/checksyscalls.sh > :569:2: warning: #warning syscall fstat not implemented [-Wcpp] > > Suggested-by: WANG Xuerui > Suggested-by: Arnd Bergmann > Signed-off-by: Tiezhu Yang > --- > > Hi Xuerui and Arnd, > > Thank you for your reviews and suggestions. > > v2: > -- Change scripts/checksyscalls.sh > -- Modify patch subject and commit message > > scripts/checksyscalls.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh > index f33e61a..c0a093c 100755 > --- a/scripts/checksyscalls.sh > +++ b/scripts/checksyscalls.sh > @@ -114,7 +114,6 @@ cat << EOF > #define __IGNORE_truncate > #define __IGNORE_stat > #define __IGNORE_lstat > -#define __IGNORE_fstat > #define __IGNORE_fcntl > #define __IGNORE_fadvise64 > #define __IGNORE_newfstatat > @@ -253,6 +252,7 @@ cat << EOF > #define __IGNORE_vserver > > /* 64-bit ports never needed these, and new 32-bit ports can use statx */ > +#define __IGNORE_fstat This should not belong here, because some 64-bit ports apparently need fstat. Instead it should be its own block with some explanation like "Newer ports are not required to provide fstat in favor of statx". > #define __IGNORE_fstat64 > #define __IGNORE_fstatat64 > EOF Otherwise LGTM, thanks! -- WANG "xen0n" Xuerui Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/