From patchwork Tue Mar 7 07:59:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 65316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2305371wrd; Tue, 7 Mar 2023 00:08:35 -0800 (PST) X-Google-Smtp-Source: AK7set9gshc1jpWk+VkbLRbc63D4u+wvKkkMmkVmsLAbgO88RVO8dRCMSdHejMLiUvdUdHh9ukjx X-Received: by 2002:a17:90b:3b4b:b0:237:39b1:7c88 with SMTP id ot11-20020a17090b3b4b00b0023739b17c88mr14534232pjb.35.1678176515555; Tue, 07 Mar 2023 00:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678176515; cv=none; d=google.com; s=arc-20160816; b=D3IVgASJNVbcFnOeufFsocdIqO0IQEEdzKu2H0zBUstUWdV1zSMOI4TflUefD/gzla vLUq58RDM2pP3i+TPSDvLBbQEJhiwTXx1W9Ux7J+Ilmc1YqzNdNkkGHTSPluu/6oeTw8 S9QVH0VeKiz5FQuEWzKNESlOVppS/O33hbUNcGoFQDJhe6DS1B//oKlGiyEfE5ZicTho ZpF9EXHvts5DEC53CtOwisPH1JfWNraPFqcpGTur5q4GiPDxKYL2J+jRslJTO3WcUbtA zq6r/2gFC4Z0yp37ud8ypvS4SyU5pNEU3fTdBhPRmOGGfGWrv8qDmFczqfLsf5PoBL3K dL2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=HMJ5Q4GjlDEznv5pX+auMiHTWhuF7KXeb8uNWQvGUvg=; b=GL+XndFhXL/DCBlQPdcEeKB9isyFRzF28gh8J5TgLWesUaCYWZmG7ZCW/NjxX72Pad WArZ7ALRtlFec/fX5wtQiukaFI1ze0dEKHW9vxONpO0xivTMu6bjsqupUv/i/7yw9Aqd Dq67dUPYfqNK0wSj6y5taLuNzw5CWzG87yKN2Lv9ps+3EJH4HsWBvrVc1Q6TlcUbdHGy Nlik4tjHpxkyxBLcEHgvq5fUVDwRYMYdB3KBNxzUEifnJ3nx3MGjcXDdLJAwXqNrlBXJ K58j3wU6f8wyPw7IchiaJ35z/V51CZ4rumR1Yl4RnXQqT0PEpT8L9dUmNZ8FWf4l+1Xv fI0Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a17090a71c200b0023448df0ee9si11615976pjs.3.2023.03.07.00.08.22; Tue, 07 Mar 2023 00:08:35 -0800 (PST) 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 S229754AbjCGH7S (ORCPT + 99 others); Tue, 7 Mar 2023 02:59:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjCGH7P (ORCPT ); Tue, 7 Mar 2023 02:59:15 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9ACE3B854; Mon, 6 Mar 2023 23:59:10 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxUOXN7gZkU0QJAA--.11695S3; Tue, 07 Mar 2023 15:59:09 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxTL7K7gZkSsRNAA--.4529S2; Tue, 07 Mar 2023 15:59:07 +0800 (CST) From: Tiezhu Yang To: Huacai Chen , WANG Xuerui , Arnd Bergmann , Andrew Morton , Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH v3 RESEND] checksyscalls: Ignore fstat to silence build warning on LoongArch Date: Tue, 7 Mar 2023 15:59:00 +0800 Message-Id: <1678175940-20872-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxTL7K7gZkSsRNAA--.4529S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7KF47Aw4DtF4kGrWfGw4DJwb_yoW8GF47p3 WSya40qr95GF18uw1293W3try7Awn3ArnrGFy5urs8AFZ8tan5tr9ava98GrnFvayxKa45 WrWkua47XFyqgFDanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bS8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAa w2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2 jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262 kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km 07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r 1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWU JVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1U YxBIdaVFxhVjvjDU0xZFpf9x07j7BMNUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759695617730208938?= X-GMAIL-MSGID: =?utf-8?q?1759695617730208938?= 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 Reviewed-by: Arnd Bergmann --- This warning still exists when build 6.3-rc1, it looks like not so good, just resend the patch (2022-08-30): https://lore.kernel.org/lkml/1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn/ 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 }