Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3094780rwb; Sat, 8 Oct 2022 21:48:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Zqyba9ht4F4p5hCUitpQVwKduXsXi7/xf+En7gN6aXfTfdqIwEdvka6VQ8G8lnXqKK5r/ X-Received: by 2002:a17:90b:2d85:b0:20a:d20e:a5fe with SMTP id sj5-20020a17090b2d8500b0020ad20ea5femr13622434pjb.96.1665290900391; Sat, 08 Oct 2022 21:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665290900; cv=none; d=google.com; s=arc-20160816; b=QhLAdsVPuW0Ovgv7BX25pZsGuLMcQ1AjS/eU2CKjyRi6TY9NDSejCqhe5cnXJFw0MY OtKAJz6nyfpPNybv+U3oz3JF3/YU8H12D/UgXRd2xQNPWD4KwPbj9fFohjUbvoIaIC4i hMIoqLKmZEnbLEtmdcvcdXBZPR6xW5UnPyc0HWmRnTW/iwuukVvUerNaAFEB6FO1IWno yKsC4hd5NZmedI66//Nip9xjdHfLcOkJb0zUqojIcGKLOm2ZE4NUv3IigEZC2RS3Vh7y RGtCIN5Gm5d/YzJGTe7uy/zaCopWmY2bzMn/EEy2BnEIpk1v4t5hUZIhc/4KoWgRQmtl dmDg== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=eXjbs0KCDeBIGcSPCebGxqVuDQ1ko8BtGCOZgBVZTDI=; b=njFkG4K/xvsZQ1BsEOzCOIRJzDfI/7dVSG4jTrIZCcz23z6TJsaKaiykcuS/JpeLOd 4s96DSNU/ToH89s1OiMZtiJbYkavIyhVUTYkP59TG9vkkaqPDvfCmZmaOCjA5s0t+UWA jgGqdInN5G8fhF+2iu0E2xDXwMLra0ejN2P9dlsGX+UGEd8kMUAX5F35O/Kg92nH0bgL J9WfC/W1ooOCQXZLGZD+uFSdIe5smmtebw6DBsrSrkh2Uyumeh9Y3J+dHKl8DRaYaKTC lsgdtLZNmntyM4wDQ5B9w0WI1JHX1eYMRXEBzLovwZ3/yqD1qe+m5xwjZOyVNk4kSCsQ uJKw== ARC-Authentication-Results: i=1; mx.google.com; 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 x13-20020aa79acd000000b00560f0fe840asi7317404pfp.157.2022.10.08.21.47.52; Sat, 08 Oct 2022 21:48: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; 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 S229569AbiJIEeJ (ORCPT + 99 others); Sun, 9 Oct 2022 00:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJIEeI (ORCPT ); Sun, 9 Oct 2022 00:34:08 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44F222AE23 for ; Sat, 8 Oct 2022 21:34:04 -0700 (PDT) Received: from [10.130.0.135] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_2s1T0JjdhUpAA--.16714S3; Sun, 09 Oct 2022 12:33:58 +0800 (CST) Subject: Re: [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch To: Huacai Chen , WANG Xuerui , Arnd Bergmann References: <1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn> Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton From: Tiezhu Yang Message-ID: Date: Sun, 9 Oct 2022 12:33:57 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8Dx_2s1T0JjdhUpAA--.16714S3 X-Coremail-Antispam: 1UD129KBjvJXoW7urW8XF17JFW8Xw1rZryfCrg_yoW8Aw1kp3 WSka40vrWkGF18u3ZF93W8tryxZw13CFn7KFn8urZ8AF90ga1ktrySva98GFnFq3ySga4U Wr4kXa47WF1jkFDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvFb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Gr0_Cr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l c2xSY4AK67AK6r45MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I 0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWU AVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcV CY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAF wI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvj xUyHKuUUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS 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 08/30/2022 11:27 AM, 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] Hi all, The above warning still exists when build the latest loongarch-next. Do you know which tree this patch will go through? Could you please pick it up via your tree in this merge window? https://lore.kernel.org/lkml/1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn/ Thanks, Tiezhu > > Suggested-by: WANG Xuerui > Suggested-by: Arnd Bergmann > Signed-off-by: Tiezhu Yang > --- > > Hi Xuerui and Arnd, > > Thank you for your reviews and suggestions. > > v3: > -- Move the definition to its own block with some explanation > > v2: > -- Change scripts/checksyscalls.sh > -- Modify patch subject and commit message > > scripts/checksyscalls.sh | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh > index f33e61a..1e5d2ee 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 > @@ -255,6 +254,9 @@ cat << EOF > /* 64-bit ports never needed these, and new 32-bit ports can use statx */ > #define __IGNORE_fstat64 > #define __IGNORE_fstatat64 > + > +/* Newer ports are not required to provide fstat in favor of statx */ > +#define __IGNORE_fstat > EOF > } > >