Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3099533rwe; Mon, 29 Aug 2022 05:58:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7D5b74dgS92ARgZQziHxnhEEABQwldhvkxkan3nHzRLAAp+1qH6RdhtOoeJwYdFBIQBWli X-Received: by 2002:a17:906:c10:b0:6f4:6c70:b00f with SMTP id s16-20020a1709060c1000b006f46c70b00fmr13970130ejf.660.1661777905184; Mon, 29 Aug 2022 05:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661777905; cv=none; d=google.com; s=arc-20160816; b=xMkqHZ9aKhCGtWrXNG2TOJpsa+K/bmZWr1m+I/c8CuPVGFqSjGe9oFGqGDPoSHJMcm 62urmCrO3Om58Mg5aYZdnxIAD4+aNJFiQHRGMhXecBrArukYQ0Atd08T4VsNjMwnglde gpbIpu+Ee3VNZ4v+/W+z3DQiQmBoWsVZIK0nsTksZthYyWYmb2TomlXTMrXo4Tt8Uwvo J+EYd4fQ+3Bj6k0LbQ1fa1wLRHKAUrWrBtywjo8eyuViRFgbt3ro/T7NaNiMvWDZSoeW 7Tf/QrOLGrkSYl6/ONjl+gVtk43LAT+2SXdRYlZkUoiY6L/jP2Rmr9KKClcZNuv6Iuhn eTQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=OMyRTkiqC719sf4sZbkRI86tZB1Sd8j4wBhlvt4F4SI=; b=AtsFMKnzhnes32sofG4/U8ElN6+LqGO1sJSgS0c6NBevLzaBINJ5oLoUtvbVyL36Vg vQL6eqfAZtRwpxNzibNPv1zdeEa2wOzncPsw5BklILrZ8rTAKwSYa2YVFMNaigcCY1Zi hSlY+DF+JeiCttBj4unoCkno5s812dNnZ4+0UGrWLDewIYCzdFtkVIaLWbyeL43uAoBo XKiPUK7hI+cxLo9WeedL0vbeHCsElXMPSAI7oXBmMgQNIkSZPG1w9WKGQqG+yXbEgvhi /CsIHghDxhpUiW5eOdtdyspQ5Fh2+7fDyjA+vEtWQslLA7RM1o0jc6UpinICzoSvf2XG vZ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (expired) header.i=@arndb.de header.s=fm1; dkim=neutral (expired) header.i=@messagingengine.com header.s=i56a14606.fm1; 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 dy16-20020a05640231f000b0044756d7defdsi5658675edb.613.2022.08.29.05.58.00; Mon, 29 Aug 2022 05:58:25 -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; dkim=neutral (expired) header.i=@arndb.de header.s=fm1; dkim=neutral (expired) header.i=@messagingengine.com header.s=i56a14606.fm1; 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 S229692AbiH2MDM (ORCPT + 99 others); Mon, 29 Aug 2022 08:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230381AbiH2MCr (ORCPT ); Mon, 29 Aug 2022 08:02:47 -0400 X-Greylist: delayed 500 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 29 Aug 2022 04:47:53 PDT Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CEDA86B5F for ; Mon, 29 Aug 2022 04:47:53 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 1527F2B05EEF; Mon, 29 Aug 2022 07:37:20 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Mon, 29 Aug 2022 07:37:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1661773040; x=1661773640; bh=OMyRTkiqC7 19sf4sZbkRI86tZB1Sd8j4wBhlvt4F4SI=; b=djdXAjrf2FDh2lMocp0uzSwn0k vv3WIr66kctkK7I7YsnCXg6NOqSPzcesj+fUCR3kqqYLYL/8HSThBQyOCvdc6TX8 8tfLuqAzcAiSXp6LbcfSAga8AbLg/bemzQHVa4OZj50GmrlYuxY78WfShJhhB6KO vOMIkcHLgkye10U16kGHKQz5XlSu1pNyiQaaXfxzlpwpvJQ/SDH0CV9/Bb+PuqF5 frVdyDON+pNT7ibK1HpQGlogkMeqeDD+ph1k+JYy4u8o/IzVmQ06Gz5GZG/3TV++ d1uKtQLnMpWgGVusqGpScyRwF/pcHMtTJ+mrNmCHydrlmxVsMZ5UhwDvX8Mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= i56a14606.fm1; t=1661773040; x=1661773640; bh=OMyRTkiqC719sf4sZb kRI86tZB1Sd8j4wBhlvt4F4SI=; b=MQ5q7kZKw3xR/ZW2MdtR7eRZrpjpkg6c6g 28o85Nsq9TApie72c9Xg6wIKg7nloQcEZ+flto5/fPgvYxqOYkyaw1yMjVLzIviV tpOU1QT4tcRStfoz8nRI+YySPVmdTARUyxioWiV6c7sqcNhUTRxh5xTN1mvRwmGW 2z3gc7V4nm6X9c4dKynDg9W8g7dHf7gTfsfOz8e6qX2bd/QAXqBrHhjOZZGDdQCa Xmj7X3HrWuc53diaNlgVqXQ6PmO6qb1eaKq7T+y0aFeCqLCIWTLX0nlvGFgal1ph w1rH7ibX2eyUB7c+sWaC8hTxvg7EkwFQBszW5e5fd/HZhGyo/3Dw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekuddggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 45828B60083; Mon, 29 Aug 2022 07:37:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a Mime-Version: 1.0 Message-Id: In-Reply-To: <1661766931-7277-1-git-send-email-yangtiezhu@loongson.cn> References: <1661766931-7277-1-git-send-email-yangtiezhu@loongson.cn> Date: Mon, 29 Aug 2022 13:36:46 +0200 From: "Arnd Bergmann" To: "Tiezhu Yang" , "Huacai Chen" , "WANG Xuerui" Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] LoongArch: Fix warning: #warning syscall fstat not implemented Content-Type: text/plain X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_LOW,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 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 Arnd