Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp298056lqh; Thu, 28 Mar 2024 02:18:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC1tS+3335VMSYKn+xpdxGrUcdE2UqpPpkxMY5casUD20fiA1FmPnPQJFfJlak+om4UK6RX67yvEAAzv91lbw+VbRy2ypH7FejW4XlNA== X-Google-Smtp-Source: AGHT+IGd2MXe+ULxoh6jNYlK724rnxmrn/mFxxg2shLng2uOuUeteYU6hY44TxoXvUBQ6KcYvE1s X-Received: by 2002:a17:906:bb08:b0:a44:1fcf:9b97 with SMTP id jz8-20020a170906bb0800b00a441fcf9b97mr1186337ejb.24.1711617523843; Thu, 28 Mar 2024 02:18:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711617523; cv=pass; d=google.com; s=arc-20160816; b=N+lIFBJALhM2+sGODTFnL9YykNGZ3izecjFDLvniL4zt90wuKCjQJkrMwJjGb48EXx ATU7e8+SUS8sT9PJPiYepxym2wf0PTjP+Sj53W1NYuwBVXElWkML65kv5/MVk/ptt6Sw xaBSdX74omHuC9eRK/Mw36nj3vAM/f+gk+aneHpOfvHWEYBxg/PPNfaYJVgnbq7xDIqe RE79XOi+DW5y1vdAnBjqHJ4vyTYdyQc6g1ZRAFIUAbisgPcO2FUCC92BJwnldC+r+MB4 IPKisOYCYzIUd2n80Ujlw+/MVDAPNSkfV4+EwOxzTwQypaXAepcIQKUPLg4y1WtsenUZ db5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JdlPi/D8q9gRz0rC7iT/EQjBcreVsogwectsXFf1ljg=; fh=vGUn9SDni5UVu8A2BhZWxGm0WeMcrq3r/aJ0CU/b/3o=; b=gDjqp1a7RuH1QU/bfsYs0OyyAHjaEMHhJXReyJIRHgc6wn/PVAJRAYDC+0RD/krh5G sVCD09XD3todnKwJjALipCxTawAUwvk762ERIU+WP9+H+3skwPo65SjbMOiFtvYr9KLo SQ2tEqOmdh+lP1JtwDxBSirZQ3iB3mbJx7xof9i1WrKrTlLBTVotnE+a1CUqCisKPjBR gmjMtmVmnIzJJ8/DEigQnAwmqVt9PbFjoL87G6jKj4fge06GoCRWV/Uebit9rIb3gB7E ZTiSF0I/2Pr6dJJEHpWfopmt5TOhcEEDN6IDmV9q8/Fx+lUK8GnazccjTZfEXaWyRiED OX6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ge8+E60J; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122651-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u26-20020a170906069a00b00a474b389b4dsi528698ejb.48.2024.03.28.02.18.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 02:18:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122651-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ge8+E60J; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122651-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 932B41F2445C for ; Thu, 28 Mar 2024 09:18:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85C916214E; Thu, 28 Mar 2024 09:18:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ge8+E60J" Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1B7941C62 for ; Thu, 28 Mar 2024 09:18:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711617511; cv=none; b=CdsWHl/N2923QGQpQt4PFWljVku0lB2+J11u0dKbUKmicc5E3vCyv1P6S3VuN8OjPZrDBqbRtY5diH5mapPA8R/JMVDe7s1Sm7Fq2B6dxqoePMHFP7sI7fplakw14aD79pGB+PUbaiI+v9ZkBEpBTYOqcIcEIz6SbP2bw+W7lWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711617511; c=relaxed/simple; bh=JdlPi/D8q9gRz0rC7iT/EQjBcreVsogwectsXFf1ljg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FX5n4bqouNAZLF56ApsqS+/BM1B/N2KF1212Q8KKQCFODS1G07LyWxiMT9CcfEvsogslNh3pXGtEvjQAzn0OhxDL3TOzJF3uhwpI1nEhP6DnJXCuYAyPG0dPdSpkKpZds44Gn3gBxmmF9cLm4eSKKomLWC2wHeIP7WeShVCibA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Ge8+E60J; arc=none smtp.client-ip=209.85.219.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-dbed0710c74so633588276.1 for ; Thu, 28 Mar 2024 02:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711617508; x=1712222308; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JdlPi/D8q9gRz0rC7iT/EQjBcreVsogwectsXFf1ljg=; b=Ge8+E60J8rUtUpEjf/SYxfz+LLF1ltrNfOwUG9itZ2RRzLSKLJ2iogWDjw5ubV2vs3 hFdW4nfCcibBd54P09d8/XzggdSF16IIkVIpakX/b/MmpsdHfgUhJw0x75fkrcw5RmnQ /7EcdXNLgTu4Yxdq9u4KAts/9VZnPeMYNrj1/KK7H5vN6W5A5y1C7cjg0NlqICwg6m5X g3dR8R3AYg1i6a+3WDdQjHa1NA4ecsMEPTA2RW+hjcTtJ4K/cLwx+wgxBON6L4w6IyKA P6YY5nk0PgPKPEwmarQ7FOlC8bysJ2CCgsB1nAEE+L494xyoWNzlRe5pXIVS74zPnTZn yZiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711617508; x=1712222308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JdlPi/D8q9gRz0rC7iT/EQjBcreVsogwectsXFf1ljg=; b=TfF/avbK+p3cDADT5hs9qFwuHh70apEiLefXvWtHqNC7IEDrKLUUtC9RTABTxPnweq R/hcojCMPH98OB96nloVE5TXGuIQC5Bq2hHfcDKv0adJhiwpv1WLgFxgIXUBg+DzGe8c GZtJvA6ayXuwKKwB84tDtmFyFuJlbBlCWnKMKYPG/3UnRkfd4V1jSWZsJBKB4esvGYAs jOOkJeqz8r0aDQuLoc1fFuhTpChZCqZCVTeHIHWCETepjbqPnhLMVHJBWu+rz/KKdnJ5 n1iRZDZ2kAHg+XWXVtp6BfPhqkWJb7k6UvpZjKObIFmeUiSF3AQ/IB2bZ4PtBfn3FXHY frMw== X-Forwarded-Encrypted: i=1; AJvYcCUjbt8A0uYIyvuvSgBYVlRiHqkjTaIFi2OaQkxZQ5pVvwzz31TyrmG7nvEdgeQeZnt5+bqgAwG7rZDv3udeNt1PsxStaOQkjE5Ynhtu X-Gm-Message-State: AOJu0Yz2LeUI5V0EZTVV7rgRevEFYMtpqOUPMaU+d3LN3MiYQK+kG4Rv TdQvLMcw3V/0gCFRIBAw6ZaAs18kGjn8ydfrhNg0pn3OG+TTD/38ViJICQuSD3mBGprTeaMGk6j lQ+Osv+ZiSiodkYoov2sthiRUmlgV+TUe4zA0pQ== X-Received: by 2002:a25:9091:0:b0:dca:e4fd:b6d6 with SMTP id t17-20020a259091000000b00dcae4fdb6d6mr2028363ybl.61.1711617507999; Thu, 28 Mar 2024 02:18:27 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240326144741.3094687-1-arnd@kernel.org> <20240326144741.3094687-2-arnd@kernel.org> In-Reply-To: <20240326144741.3094687-2-arnd@kernel.org> From: Linus Walleij Date: Thu, 28 Mar 2024 10:18:17 +0100 Message-ID: Subject: Re: [PATCH 01/12] kbuild: make -Woverride-init warnings more consistent To: Arnd Bergmann Cc: linux-kbuild@vger.kernel.org, Masahiro Yamada , Harry Wentland , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , Jani Nikula , Lucas De Marchi , Oded Gabbay , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jakub Kicinski , Paolo Abeni , Andrew Jeffery , Joel Stanley , Alexei Starovoitov , Daniel Borkmann , Andrew Morton , Nathan Chancellor , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 26, 2024 at 3:49=E2=80=AFPM Arnd Bergmann wro= te: > From: Arnd Bergmann > > 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. > > 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. > > 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. > > 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. > > Fixes: 2cd3271b7a31 ("kbuild: avoid duplicate warning options") > Signed-off-by: Arnd Bergmann Neat! Reviewed-by: Linus Walleij Yours, Linus Walleij