Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp99572lqf; Tue, 26 Mar 2024 16:03:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVldFjJkubwogGsbFhwcSO964aWpITbK5amTjudL310w0MAq4j2rAGuaT5R3HIhaDFtzAtrD6YB6a7AJDlu5jwB+46skhA9FnePv64CCg== X-Google-Smtp-Source: AGHT+IFy6Abwf38l3mxUtYTa0vVy1EAaRREwVcQ4B33LQLIq6L/69oP64r+CESPm6X8VN3Miud6d X-Received: by 2002:a05:6a00:2e29:b0:6ea:9329:58bb with SMTP id fc41-20020a056a002e2900b006ea932958bbmr4096812pfb.15.1711494237844; Tue, 26 Mar 2024 16:03:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711494237; cv=pass; d=google.com; s=arc-20160816; b=Hljr7DDpwdbX4Fr9LRLZwvBOA4Xyovo0KE9V/ZiKWDxSXuTPbZsUWsGI01FOL9fQvt pKdjzUvmeMa9ulzIrlzpOOcaWsAV9z0JMQlBb2ecACsoLUgS80Fm0mrHrCdwJPW7NpoG k4YdLTBstZ8M1ov2iXYyaQSDAosgVTds0j7Zo9Drq7hCNwigzPyWpk0OCLCOvceUQOAn TtL5t3HPxpfWjXTKTDfyGk/NQ8/d+dIk4Dw7ePnI69l+yDXYHP9E6dQKe6ZkgkI+oclm Px3wOV2oId6+VYpnArEQFNtl2D/8IUYUEYk5KFXfumDzyO9YgjLW/Ub/+kyrrgE7ngmG i+pQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=tz3fNHh1K/JnaN3rWzXOsduTzNNjTpy00qDhmUkVo8k=; fh=PcFLS33LE7YLnid1TPV/b1M2ll1lSQnro/y1VPgrX30=; b=KBtUQEX2O93l79JTgh7QGCR0/JReiVCR2jkhzior4VTS9km22m3hk1HvqCrZrqxIMl CNqqhsF+1bTf4o1sWQGYBxi4pa3z2wvS90lQpieSVg7bpBttZTpdXW+vVLkWXrqpOyNF QK9os7CMY1a/vdEf9TrgqHDQ0vi2GEOgnOrJTF/ZQ9F/Y7RpVWf64GoGPu+sYC+Uat8U UC5rHf3qeAI6cVtzdNhak8CXwupP9c8vzpe07hX8lWSgwhMpz6jqdM2sJAW0++sjXTnp yZs9k9FuswkRyCGtXYkd0Iy/N57x+jBIE91mpxOF+oTat69y1eyGBG4vgw72j2SyOMDJ fLFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=eIfMHGsP; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-120119-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120119-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bm5-20020a056a00320500b006e6f8e9ab72si7839420pfb.116.2024.03.26.16.03.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 16:03:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120119-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=eIfMHGsP; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-120119-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120119-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2A846300032 for ; Tue, 26 Mar 2024 23:03:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A7E113DDDC; Tue, 26 Mar 2024 23:03:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b="eIfMHGsP" Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7D976FE16; Tue, 26 Mar 2024 23:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.29.241.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711494193; cv=none; b=HJBu7tbEnrFPwaQPzVdzTKBmbWsi6f9tNkAEWFx/edOYNIdQ3AW3uGFaT7XYxCue17glmYoIiazHuYbf/8NTg7twzG959f2dkqPCjEUSVgRge7otOVEvmGYNCMpuoAAoMI06SrGBlnJN+p2C14Z+9RS1dtCwDODsMipNH/QdbCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711494193; c=relaxed/simple; bh=iTn6EPmsN8OMOA4hJKWthraMCB2c+E5xZHjJCKAza/I=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=jA+ExowZtAYckGW/AgpMNmLpaQgoa1J2uf0idmOI9nnPxTckf1Ng6m4TXhBVWdecfpKFzQT94BPl+b+yMMPo6+4deh8hDEM4uSt4PQltEcxEAdsd3Yl6SLLsd9RDIt8YIYRdbCYxrfEZh85ZNIzfMAdV0ta1HL8wFJc7UxsdoDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au; spf=pass smtp.mailfrom=codeconstruct.com.au; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b=eIfMHGsP; arc=none smtp.client-ip=203.29.241.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeconstruct.com.au Received: from [192.168.68.112] (ppp118-210-177-226.adl-adc-lon-bras34.tpg.internode.on.net [118.210.177.226]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id DC391200DB; Wed, 27 Mar 2024 07:02:56 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1711494183; bh=tz3fNHh1K/JnaN3rWzXOsduTzNNjTpy00qDhmUkVo8k=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=eIfMHGsPNwHmXwNNstH9IMj4w2lyPGURp6LMbwLrjHmlPyWfu99sWNZIhMk2gO6uz RgeTjJOiQM0pv47zQxIswraW0rFx3ZPiwJSHKORRHDpqe3US9RXTYofm+LfhboiiTX 0/2nDinsXDMjMsSQxs2l6/VHxtwFkD9IKm5EvxniqkwLV0JMXkRE5RjbJG83+NbtCN qcam/A+94EU+rkbVi8UIoPMWSMl+z844LZNWJnywiVy85Sxc2rC3fDh+0d1MeyeTmc pAYFOzZm0LtzVIwBEgEJ5JYODCCsjCp/BnFptrq5B4iieSj8Tq3llCMFTW9l5/tOpw Z5xqzSAoUof7Q== Message-ID: Subject: Re: [PATCH 01/12] kbuild: make -Woverride-init warnings more consistent From: Andrew Jeffery To: Arnd Bergmann , linux-kbuild@vger.kernel.org, Masahiro Yamada , Harry Wentland , Alex Deucher , Christian =?ISO-8859-1?Q?K=F6nig?= , Jani Nikula , Lucas De Marchi , Oded Gabbay , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jakub Kicinski , Paolo Abeni , Linus Walleij , Joel Stanley , Alexei Starovoitov , Daniel Borkmann , Andrew Morton , Nathan Chancellor Cc: Nicolas Schier , Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org, llvm@lists.linux.dev Date: Wed, 27 Mar 2024 09:32:36 +1030 In-Reply-To: <20240326144741.3094687-2-arnd@kernel.org> References: <20240326144741.3094687-1-arnd@kernel.org> <20240326144741.3094687-2-arnd@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-03-26 at 15:47 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann >=20 > The -Woverride-init warn about code that may be intentional or not, > but the inintentional ones tend to be real bugs, so there is a bit of > disagreement on whether this warning option should be enabled by default > and we have multiple settings in scripts/Makefile.extrawarn as well as > individual subsystems. >=20 > Older versions of clang only supported -Wno-initializer-overrides with > the same meaning as gcc's -Woverride-init, though all supported versions > now work with both. Because of this difference, an earlier cleanup of > mine accidentally turned the clang warning off for W=3D1 builds and only > left it on for W=3D2, while it's still enabled for gcc with W=3D1. >=20 > There is also one driver that only turns the warning off for newer > versions of gcc but not other compilers, and some but not all the > Makefiles still use a cc-disable-warning conditional that is no > longer needed with supported compilers here. >=20 > Address all of the above by removing the special cases for clang > and always turning the warning off unconditionally where it got > in the way, using the syntax that is supported by both compilers. >=20 > Fixes: 2cd3271b7a31 ("kbuild: avoid duplicate warning options") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/drm/amd/display/dc/dce110/Makefile | 2 +- > drivers/gpu/drm/amd/display/dc/dce112/Makefile | 2 +- > drivers/gpu/drm/amd/display/dc/dce120/Makefile | 2 +- > drivers/gpu/drm/amd/display/dc/dce60/Makefile | 2 +- > drivers/gpu/drm/amd/display/dc/dce80/Makefile | 2 +- > drivers/gpu/drm/i915/Makefile | 6 +++--- > drivers/gpu/drm/xe/Makefile | 4 ++-- > drivers/net/ethernet/renesas/sh_eth.c | 2 +- > drivers/pinctrl/aspeed/Makefile | 2 +- For the Aspeed change: Acked-by: Andrew Jeffery Thanks!