Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5127195rdb; Sat, 16 Sep 2023 04:17:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhWzvZ4euQR1WHxyjuZwsTLiWb4bWF06N+BumtREto+sZ/9Y1DhR+4nPSY8odPp+I+mmOz X-Received: by 2002:aca:1319:0:b0:3ab:8431:8037 with SMTP id e25-20020aca1319000000b003ab84318037mr4488306oii.32.1694863070867; Sat, 16 Sep 2023 04:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694863070; cv=none; d=google.com; s=arc-20160816; b=XAaLWeSj6eeZHQrvPGwp8LU+dkYPWWPXEUQZWis311F3THLs01V7MhwTJpo/PbDgIy vkH2Q3lq/CRX9WPKgYqjxw0cdEaz1QPAA/ssXsKQk0qm9Q4uYF3ldFvbLE57+AAkV8LS p1QKikxCEV3a6ExSmFAyDYPayQBbo5LwDCLcMKDQ5hDsGbMFm3hRAcLs3lX6pPDZG/4K r7qavRrUIqabyWrICj3pCLygt02KTGn+x42LV5yoA11ZIK/XgItWalFhUJB8SsrQe9mY 7NAGrf/4VPKdmRZh8LBAP/PZpbVp2IKzpfBX7bV8OOVmWEfYErUWPuXYuXNoHDTzCWLQ EZBQ== 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=rdmnttKjAwDvBMkNanUt0YI/ThxHuSgnUW7QJAtI/I8=; fh=DEjmHyUZlOLtUnHquRBP0iwVDCFHHGux38TrUzqD/MY=; b=SQCUcs8dw5hKZrB5tUAHCduUHwdFVyaDCm+aZMgyFsqG0rH+SbmwBQofPgb1ID+ha6 CA35Sb0+VLBKn/mNQqRb6i7drQfkl6mW9QwEVR/GmYDyiOAeso32o54sja9qc5m0NYYQ 0SR0pYwQF+LLwGR26jGqTBwhbwKq5Y4ojK3qBVwQwApccZw8IlsyI5h5rNQ4klqd5CcU knFRxIIvOqFBX8v/+MbTq21hw3lxPMEPMiZmi2k9BlHFH4dt3aFKMASlMAg5ZnCQ1J82 xmMlvkeW55VRp1o5QChUzhB1n2/5ZRHgvOm/UBE2yZpK3/+9G9kXAya3yFlDdWbKKJmx jQiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=kMy7lu55; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c9-20020a631c09000000b00565e5916ab6si4649345pgc.598.2023.09.16.04.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 04:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=kMy7lu55; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 915A983B81AB; Sat, 16 Sep 2023 03:09:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234129AbjIPKIe (ORCPT + 99 others); Sat, 16 Sep 2023 06:08:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238885AbjIPKIK (ORCPT ); Sat, 16 Sep 2023 06:08:10 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DCB9CD5 for ; Sat, 16 Sep 2023 03:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1694858881; bh=i7BQ6PsUSCvZwBxpAKXqxkBHRfKHAYqC55VhKt2+QOQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=kMy7lu555CQjwOwnViDvu+MFd0fbAWE9pdQjuVPZix9CUg1Y6v8ZWQ2fV6aMd8Yo/ 5fm3O72dfu4tDwXCIsP4mKx7eGFGcy6f+t85M5V54Hfn/ooc+FBQc4830YoM29LpUb lVBZ3WBSj3jWJF8rMo/sx5FF6RMZJloiIc8LXatc= 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) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 5D4BE659AC; Sat, 16 Sep 2023 06:08:00 -0400 (EDT) Message-ID: 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:07:58 +0800 In-Reply-To: <1918be3c-3560-bd3d-6518-c5e49319b1d6@loongson.cn> References: <20230916092330.971630-1-maobibo@loongson.cn> <1918be3c-3560-bd3d-6518-c5e49319b1d6@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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Sat, 16 Sep 2023 03:09:04 -0700 (PDT) On Sat, 2023-09-16 at 17:56 +0800, bibo mao wrote: >=20 >=20 > =E5=9C=A8 2023/9/16 17:42, Huacai Chen =E5=86=99=E9=81=93: > > Hi, Bibo, > >=20 > > On Sat, Sep 16, 2023 at 5:23=E2=80=AFPM Bibo Mao = wrote: > > >=20 > > > There are some building warnings when building LoongArch kernel > > > with -W1 option as following, this patch fixes these building > > > warnings. > > Don't touch asm-offsets.c now, because it is being refactored by the co= mmunity. > Well, I will bypass this file and send the next version. >=20 > Do you think that is it deserved to add -Wno-override-init option > to remove compiling warning about file syscall.c? I am not sure about it. What is a -W1 option? At least GCC 13 does not recognize it. And generally you cannot randomly add warning options building the kernel and expect a clean result. I don't think we should "fix" breakages caused by custom warnings at all, unless the warning indicates a real issue. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University