Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3224044rwe; Mon, 29 Aug 2022 07:55:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4NgyasmuIjZg53TWQuLHlpTxARBplDfVh0YD84ep5mf6jphKpi/2pz8Iz4bk3QaX3hbhWR X-Received: by 2002:a17:907:628a:b0:72f:678d:6047 with SMTP id nd10-20020a170907628a00b0072f678d6047mr13728393ejc.456.1661784919550; Mon, 29 Aug 2022 07:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661784919; cv=none; d=google.com; s=arc-20160816; b=zafg1G6LG2WO9O3mJlb5qKF3BhBqbUWXQ5TkVsMz+hZSExB6Ptifl8vgTirfTXj7hw 9+6P9dr/cfTX38u+73ei/icMHOQmws7WDRAY0ra8V5jRDhQ2q8SrPFCPdwmVw+3e7r1z 30A7fneQr5wfAuK7uCjIOTfkOoj4k7bAcGNuoEW3BRkPJ+azS96v6u2XQSjO959xREV4 VZ6ErcKIZgVF5dfzbpfofWue+zoWTf/owq9W99bd+KWgEjXXf1VDj1kPdiVWOgRQT4Zq FRtgMtktm+t95pitYdU7RqR7BIKVoWOky0FVHGL9SP9t5YbgOfv4mWaz+DdB3OcmTJ/q 9CJA== 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; bh=/HhVt/AIguUCIiRiKjrtf4mJ5LlHXBFoL0h0Wuzdyt4=; b=GJY5mEZ2xoomNC1N2Vlzveo0A/vXsBbFSGPzRjDJx1poyua15uPx42xliyuMIS50Z1 Y47eA4fHXQYWJyM4IsdePqV3Hpneh1JhYERZfeWRJU8gv2kFU8kRuzcUpjQ2JcVkACTW 5NhLeCYRjS+7uZ22DK42nZXxi/IlNKHIrKqTW+ocfVRm+Ukm2i/Dx2C5qINL5QCE3jVD dxul/QrwKL9Tm5Umh/iyDYVKhiPnw/aKaIt67Eij6TUHrIW5fCfPxl8Z0XEiJW1Fyuiy gLxRw/pdH0oKrvoveIUZsXJcEzsKNuR4szH9zpYFJDpOY2Y/FBXCJm8gLYsej3puC9VI eP8A== 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 j22-20020a17090643d600b007306f35b498si5861024ejn.711.2022.08.29.07.54.53; Mon, 29 Aug 2022 07:55:19 -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 S230114AbiH2Oec (ORCPT + 99 others); Mon, 29 Aug 2022 10:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbiH2Oea (ORCPT ); Mon, 29 Aug 2022 10:34:30 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C10E791084 for ; Mon, 29 Aug 2022 07:34:25 -0700 (PDT) Received: from [192.168.68.105] (unknown [111.19.45.114]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxnmtnzgxjVeoLAA--.39136S3; Mon, 29 Aug 2022 22:34:17 +0800 (CST) Message-ID: <4ff2a310-c8ba-ccf2-8d51-5181b83685c7@loongson.cn> Date: Mon, 29 Aug 2022 22:34:17 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH] LoongArch: Fix warning: #warning syscall fstat not implemented Content-Language: en-US To: Arnd Bergmann , Huacai Chen , WANG Xuerui Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org References: <1661766931-7277-1-git-send-email-yangtiezhu@loongson.cn> From: Tiezhu Yang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8BxnmtnzgxjVeoLAA--.39136S3 X-Coremail-Antispam: 1UD129KBjvdXoWrZFyxJrWDCw1kXF1UAF4DXFb_yoW3trb_J3 srursru3ykAr1xA3ZIyF1DZFy8K3y5Wa4UZr4UWrW7Aw10v39YgrnI9ry8XF17Aanagrn8 u3yYvF1UWF15ZjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2xYjsxI4VWxJwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z2 80aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAK zVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx 8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU2_HUDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 8/29/22 19:36, Arnd Bergmann wrote: > On Mon, Aug 29, 2022, at 11:55 AM, Tiezhu Yang wrote: > >> CALL scripts/checksyscalls.sh >> :569:2: warning: #warning syscall fstat not implemented [-Wcpp] > >> @@ -1,4 +1,5 @@ >> /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ >> +#define __ARCH_WANT_NEW_STAT >> #define __ARCH_WANT_SYS_CLONE >> #define __ARCH_WANT_SYS_CLONE3 > > The correct fix is to change scripts/checksyscalls.sh, > making it always define __IGNORE_fstat > Hi Arnd, Thank you very much. I read the commit message in the commit 82b355d161c9 ("y2038: Remove newstat family from default syscall set"), I am not quite sure whether we should check __ARCH_WANT_NEW_STAT first, like this: #ifndef __ARCH_WANT_NEW_STAT #define __IGNORE_fstat #endif Thanks, Tiezhu