Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3774462rwe; Mon, 29 Aug 2022 20:31:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7oYz6Cc8iyYyAHufnM1P75yZb0dR9a/tZfxGqrLvXRuMWFIffx3hy+JdmiaQP/5h94chMn X-Received: by 2002:a17:902:bf48:b0:174:6e4a:e745 with SMTP id u8-20020a170902bf4800b001746e4ae745mr13554602pls.30.1661830271682; Mon, 29 Aug 2022 20:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661830271; cv=none; d=google.com; s=arc-20160816; b=oG2Z4irQ/v1atvjC/wJuTololfM5uS22dmdRjuCFG7aTYwQbqIN7bJzPOWqn9VfkSl Fl9SUd01dWhg1IEUcoHT5YGW/uF3d4vM09biu1rb+mTYMvphOBRamvIJCZmn9EfkCyIj viAopKuJ0Z2iEw//3+M06cFCU2JZOssCieLsmr5zfQwgBELCvScZBqMG2afX1kcGmZV6 Id4r00au6BLfwI9OGg5TzoT7hs1YxoRJ27k6rN2sQNtN1PCL18aKlBox0lta1qjJoIeA 95tnMh1+iOd9vRyywH95RgdCjNzhk8i62RlcIrGJuYJh0egKgiwk/KeZdlWngT6ih9Pk o2FQ== 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=99amJegabLRdyjHFghhudOATEo7WMp8S/qqybj8QVZ4=; b=GwgS4jWJ5jOyV8cyxIDtnxhoSLOCOLqP74vMXZCLKMcOMCKBmQ1JCdgxFNggwYfqQu drqdNXYWFA2kXrdRx+/njQns+c8XEzXbjvAKrStRe0UtuQ1Rutid5rsLD0Su2U6LZACf s+pgT1HwgGbRFNivPdzUdWOaofM190/s6eLwPB31gENkeTJwIhm4yZ+ynruQ88urfrRY GRLzhZYMdYyq0RZcP7uuIyLpQKrtKuGDX9TA4TeNk7Vh9+PA74spSpEErgEevjwuKUCg 0SnbBNoit+/FcDScruUcHeDU3hcaelzgiyOO+l9wpSB+VdHP9PdxtoYcS6c4/bciLu7i QgWg== 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 d11-20020a170902aa8b00b00172f376ea35si9982493plr.107.2022.08.29.20.31.01; Mon, 29 Aug 2022 20:31:11 -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 S230096AbiH3D1X (ORCPT + 99 others); Mon, 29 Aug 2022 23:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiH3D1O (ORCPT ); Mon, 29 Aug 2022 23:27:14 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4896BA5C55 for ; Mon, 29 Aug 2022 20:27:09 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxnmuGgw1juzAMAA--.40357S2; Tue, 30 Aug 2022 11:27:03 +0800 (CST) From: Tiezhu Yang To: Huacai Chen , WANG Xuerui , Arnd Bergmann Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch Date: Tue, 30 Aug 2022 11:27:01 +0800 Message-Id: <1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxnmuGgw1juzAMAA--.40357S2 X-Coremail-Antispam: 1UD129KBjvJXoW7KF47Aw4DtF4kGrWfGw4DJwb_yoW8GF43p3 Waya4jqrykGF18Ww1293W8tryxuw4rCr17GFy5urs8ZFn8Ka18trySva98KrnFqaySqa4U WrWkZ347XF1UuFDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUk2b7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4 vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVAC Y4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJV W8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc2xSY4AK67AK6r48MxAI w28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr 4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxG rwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8Jw CI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2 z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUy8nYDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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. 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 } -- 2.1.0