Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5167301rdb; Sat, 16 Sep 2023 05:54:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlG0WAgp/5JJQOX2IlIsnSiwpUkRTqAcGbZERGX031IRR7Hri0n022nfs/zHOiW/XHD7WD X-Received: by 2002:a05:6a00:c8d:b0:68f:b8ca:b11 with SMTP id a13-20020a056a000c8d00b0068fb8ca0b11mr4254808pfv.11.1694868884502; Sat, 16 Sep 2023 05:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694868884; cv=none; d=google.com; s=arc-20160816; b=uJ2aRGD9KqFW5cbV0AUD8+A+dJ30hvNmiu2R9iqsl3AOp4017G3cHoIEdw0tIGSsU1 JMAGusbPtgERGVfT/ekezIzPxGo/3IGVxZTVbg3XnVQlI1LsY8DDUYoojK7WJkW8nt7V /HlwjsAEu9bWYUljxhsv2XCvTlsD9tcesLZSw0/elrj4YT4Z2ud1GTS/rS6U1ao05xco lIe4fCswT4T7fYXt9n6oEBw3eIIOob5p1N034mWe5ieBKmRRtWDMLEqKqT69q0H6DkHr xQZudRvISG6pcQKf8YlWgAWrVYQ0lBeP+vS0yKRGswLuQ1ql4V0M6FEnCCidoSwIklLD baSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=iAYuSgDOA9caU3I0eEAZttOP6Ne6ugH+0cwpSNDzdms=; fh=DEjmHyUZlOLtUnHquRBP0iwVDCFHHGux38TrUzqD/MY=; b=YY3DO/Q2q9LzjfaQZMLbYbsmmyfwZCe26JZaXbzZJ951XIKemZSliaDeJIL6I7wua2 cAKE4ndVtmkdXNfw9BqJH14qPeYt9+hFYbrHIxpUNFnK5ZTzsbRyZjyH0v575UWny2xN Mh854nSwsmPaC8FX9F2GKv6C9GilKXhqRv8fvCwDUB7aMkeSs/6sBScQN2USGbfF6RJm /Cq5vU1xUk+E+jAwtr5J6ScDyiLHZLOQ13/suVSA4cqBMyau8edmVSn5GHrgzZqAUIKX wdiZPe9GWRMLCfgpjDVo8sir36XmGiaoYZOha4H/JaO7gJhZEkgi3GBVA5YsX0N47H4X sKyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=mU1ZZoYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l2-20020a635702000000b0057777451a91si5000057pgb.581.2023.09.16.05.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 05:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=mU1ZZoYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 34BBB825D10B; Sat, 16 Sep 2023 03:21:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238798AbjIPKVE (ORCPT + 99 others); Sat, 16 Sep 2023 06:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238970AbjIPKUf (ORCPT ); Sat, 16 Sep 2023 06:20:35 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1D9CEB for ; Sat, 16 Sep 2023 03:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1694859630; bh=iAYuSgDOA9caU3I0eEAZttOP6Ne6ugH+0cwpSNDzdms=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=mU1ZZoYzx/9XgXN0F9K+2cPlA8LkQPdmq3MOGtGIRVACZaBedTR89H/bVQkPvLCFF UYvsjJN/PKLAl+ofDEnIIxxbw4uDDCMD1S20/CdBfeWG04TtsHQ0sVsj2wlaELPMVG /fVXEUdV6Kj2XzNWWHhRmuQkRJBYS+iYQBG5IoMA= Received: from [127.0.0.1] (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 08FCE659AC; Sat, 16 Sep 2023 06:20:28 -0400 (EDT) Message-ID: <72f7104b8097d5f894f069528a0e1a2b0f7e210d.camel@xry111.site> Subject: Re: [PATCH] LoongArch: Fix some build warnings with -W1 option From: Xi Ruoyao To: bibo mao , Huacai Chen Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Date: Sat, 16 Sep 2023 18:20:27 +0800 In-Reply-To: <4597fd85-8aff-fb6f-295b-e5b4b3ac092e@loongson.cn> References: <20230916092330.971630-1-maobibo@loongson.cn> <1918be3c-3560-bd3d-6518-c5e49319b1d6@loongson.cn> <4597fd85-8aff-fb6f-295b-e5b4b3ac092e@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 16 Sep 2023 03:21:42 -0700 (PDT) On Sat, 2023-09-16 at 18:17 +0800, bibo mao wrote: > > What is a -W1 option?=C2=A0 At least GCC 13 does not recognize it. > >=20 > > And generally you cannot randomly add warning options building the > > kernel and expect a clean result.=C2=A0 I don't think we should "fix" > > breakages caused by custom warnings at all, unless the warning indicate= s > > a real issue. > it is W=3D1 option:), and it is reported by lkp tool like this: Get it, then the subject should just say "W=3D1" instead of "-W1". --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University