Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3774165rwe; Mon, 29 Aug 2022 20:30:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ayBQ4+ebFAnI3W8AqGoKLppiOrQUiwDZ4CVl841AZ0H2HNZktgN98OGDnzYLN6Nr51A0L X-Received: by 2002:a17:902:9341:b0:172:775e:9573 with SMTP id g1-20020a170902934100b00172775e9573mr19710257plp.128.1661830236312; Mon, 29 Aug 2022 20:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661830236; cv=none; d=google.com; s=arc-20160816; b=OWELCjwkZ8WSI5fw9XSrgDDWUVJPjK5xBXbD+bx3gqAj9jtyOzGYURhkZ+jNqckKy4 jHQ1TJbJagoAAZhtAb8/sMgeDndLZNpnlkBXuEFTyv04FAx2WFcR+1DWBt/mComTGZg9 BKtiEYOf5PDKGe3D0TA3wqu5TzVFjYXbjQ4ymtWsfc4hEWdZIKJObNVCchUc3Y83nCvw rhhSQCifh693eKHsJ4eolFl3o9OsIDKldca/WkQTb2QeOO6LjdV5mJBX2XevJulChe+b Kf4Mne41j04TFYqBdMJivK6LYEQCbMXAJ+tV28au73ipRI8mcfQ3vaIIlW0svHjjLBRZ RwkA== 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=V0fbIpC2VD+b1KTM5kIABq97ftbQL4nJtv5rLRU2/J8=; b=CJvL/t1+JZ0EIT5EAEDih+Lw3KipqMs1WAyJzKIi4M2idBAF/ndg+qSz9LGLt++skH QejQjqVX6myLnVsfnLAy5TwAF/tZ5Ztfjf9RUATZwjqDsdg6NfnHbwhlPxPJZ8uEKK+y 3O4oaw43bVK5n6rdsSjKBfDG7DObNnXoeR9ZiUTqamXdtGnQlBaGBnLNiQHyza0QTK+x vTo9R172JU+YujRfT2J5U4UqXtKpgRSFEBKxf+yREHGxE3FKeI/S5DQAbKzueXyv3a3/ Ojy3mbcJeGTcmyfz3Ybe9zRZDmJbuDlsX+9Gme1U1eVqmAKjOEEHysaINoDxLeuIPNf5 S5KQ== 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 f21-20020a056a00239500b005108171fe28si11448828pfc.162.2022.08.29.20.30.24; Mon, 29 Aug 2022 20:30:36 -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 S229808AbiH3CuM (ORCPT + 99 others); Mon, 29 Aug 2022 22:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiH3CuK (ORCPT ); Mon, 29 Aug 2022 22:50:10 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07C972AC48 for ; Mon, 29 Aug 2022 19:50:07 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxnmvZeg1jUSwMAA--.40278S2; Tue, 30 Aug 2022 10:50:01 +0800 (CST) From: Tiezhu Yang To: Huacai Chen , WANG Xuerui , Arnd Bergmann Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2] checksyscalls: Ignore fstat to silence build warning on LoongArch Date: Tue, 30 Aug 2022 10:50:00 +0800 Message-Id: <1661827800-8463-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxnmvZeg1jUSwMAA--.40278S2 X-Coremail-Antispam: 1UD129KBjvJXoW7KF47Aw4DtF4kGrWfGw4DJwb_yoW8JFyrp3 WSka4jqrykGF18uw1293W8try7uw1rZF17GFy5urs8ZFn8Ka1ktrySvFZ8GrnFq3yIga4U WFWkZ34xXFyUuFDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkFb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVWxJr0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xv F2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r 4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY02Avz4vE14v_Gr1l42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07bOa9fUUUUU= 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. 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 #define __IGNORE_fstat64 #define __IGNORE_fstatat64 EOF -- 2.1.0