Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp47087lqf; Tue, 26 Mar 2024 13:56:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbCBprCOLR8T04jhO9pz6j0kN5TYq46PE0duh3xr25WliEMbnsgH81H+VDiCwDtbRaSdIF8cv/qMykntZlRePdESq9yq2dtCCSS0EM+g== X-Google-Smtp-Source: AGHT+IGw9gPG3xp9Jh5CluVbKBeMSNVPDUAxUY5jlDBFbNPJwIpN5PQXkgDvmWXLq4nZIbpq3cXU X-Received: by 2002:a05:6a21:8ccc:b0:1a3:af50:18bd with SMTP id ta12-20020a056a218ccc00b001a3af5018bdmr4474259pzb.28.1711486609171; Tue, 26 Mar 2024 13:56:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711486609; cv=pass; d=google.com; s=arc-20160816; b=CVmwDFCyfCgKwbbzeXp2DDg4v5uVW+9S8kKeF0LSZGgQC8z0HNPZts0HOeluI0dv7T cCFS8+yLEG6VVyho4GYljNd2dOR+69EbNxMvB8+Q8uO3NDgHzAqiYMvSokbiIXGuqPHr 3EFkDB/FFwlM85Yy9r+vWjmCTS7Jd8AYiKNaLnGVHJde708bq09+GSLamK09WOVR8UUl 8aeMr12WlX6Ieqr4NFCQzjuUMKhKSAx0umx+DaMdHhbtOoasM511NE3Cm2ipPlRigxN5 HyMf1dwQXVPRe5LUofpSSAC0quTXCr7h/6vH+ZezZEcRntnQBtHK0OQCkCEQaFSt//bW FnLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=bTK7qxB/DzZvcacQ3ARgA6AoDzT5XFaivWWd8YVHcDs=; fh=NIRs4HDtcPS/MAWNwJjOBRLT3fVlSY3ig5GYeVbf/QU=; b=oybAP4fkuVZlIXxGUqP08NPxMnEPdVAqXL9n00Bv/EmU4z8l3lwvgQ8NyQ1l0OthGo twqjsXsho53sfWu4Rr+SErbxcgpZ0ob6dk0NZUTHakfoaENRa42K6y05gL669ZDvFWIS YOO9i9YIgek5ZcrKlEvhdC26IJ05rcCKwJ6cnieZbgE3oPL0VmLRV0tBgDXtilVOZiS+ hFra+hptfx30GEOmqUkWRL4xzQr4O3fVotkzITrVhDgKuaHV0D61kesDoEEBJUjRSwE0 ZIiHCDOk8qDGSlnTTq6MDGXOTzHRlIhzMKgJN+PKLFzb/znGXKaWUK2QPyaHSOn/2r7v fjJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=WlOtjyaZ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=oTYV8adQ; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-119962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x17-20020a634851000000b005dc3e74657csi6746855pgk.478.2024.03.26.13.56.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=WlOtjyaZ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=oTYV8adQ; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-119962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 C623932787B for ; Tue, 26 Mar 2024 20:56:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CBF813D635; Tue, 26 Mar 2024 20:56:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="WlOtjyaZ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="oTYV8adQ" Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 A44A612C7FF; Tue, 26 Mar 2024 20:56:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711486581; cv=none; b=n0H4jbt+v3h9VHuac52zXXKvPD4riyIZCrdL97sW7XuEi2Q1h0FCOvwnjJNBfm8qLFvR4GmRlyjy500Yg5XPjGoXpZwSeTneO6Gq9eY3DDAi4/fcFm9VKIkFko1bhu034cgtZpEkaRBXjg0+46ME8BP9bsmTliM7rdwHhT2tXR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711486581; c=relaxed/simple; bh=Olz4AkNkzYVK19w+Jh6klcHV6fbs+XGQtH12Ue6EbtA=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=Gejj+PHDoJ261zFF/+liw9o/R62sP6a4rd175No5dgw8qi7NrqYVi+wbxNFA2BNXr7THYuelVsCIx0T66TcS0fYu9mancmrvgukgBOyCyn0ev/ch45Az3yFqKLKW9AvtZRqOjyiC5LTlqkyN4M7QWxkTbZg2Z6T/MMINC3J9S4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=WlOtjyaZ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=oTYV8adQ; arc=none smtp.client-ip=103.168.172.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id C0777138014E; Tue, 26 Mar 2024 16:56:17 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 26 Mar 2024 16:56:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1711486577; x=1711572977; bh=bTK7qxB/Dz ZvcacQ3ARgA6AoDzT5XFaivWWd8YVHcDs=; b=WlOtjyaZiklsRi4cCh1jYIRpIM pLVHILPIPgQ/oogUIpqoqYnwK1W+6v8z0OA+zU38ovpQrKeC5G+uoNavTn26eOcw Rx9zFSqTneqsXKVF54y5rwO2vHU/viQNr11OsBlahezKkGRdxR1vhDu/HNpjHWZH Hw8/5n6K5X+u1wgp5XcZivytgK6eq1An+lKKX426vYBoEHRjKtJ2g5tzqxxS1pN5 GnkBq5GRV0kmxf1/iX6DMkND5yOLsrsoGUtnkkew0BYhBhDf12kqBMhkcdMKdzRv 1ZZvx0c+58bG33DpLg54XvIvoERfC3DtCU/rHLAyGy1/fVXzvUpuuDc60MwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1711486577; x=1711572977; bh=bTK7qxB/DzZvcacQ3ARgA6AoDzT5 XFaivWWd8YVHcDs=; b=oTYV8adQxdjRh9Snl2cz1eHQHqctI5puzvhK2J/F+mJ8 7tl0gvwKM0afyXZkz8C6MXAAifZckQygqw5ORc7w0qpS1TPlbO+w9G7jd3heTiCC r8I6RrrlNvFIk91tWPjbL747c8kuc3cUPm9wPnAItnHcvIkE5C+9ExKz8Ajn6gg4 XtFClsZhAv7KlA2mcHHBjgSBHAdbPX7syjzicTpPVslBt7hIXn/nym+aa8280ApW IeFHW75gBBPdbNdhp32G4czj+aGTUaSrQiNUAlmapyxtBNnRSxScoAW/oimlmTKi uS/mrXXVeAnS/EwrWwW0shCoI/5h1CnBk3kKJ1UCxw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddufedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 658BDB6008D; Tue, 26 Mar 2024 16:56:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-328-gc998c829b7-fm-20240325.002-gc998c829 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: <87jzlohhbc.fsf@intel.com> References: <20240326144741.3094687-1-arnd@kernel.org> <20240326144741.3094687-2-arnd@kernel.org> <87jzlohhbc.fsf@intel.com> Date: Tue, 26 Mar 2024 21:55:46 +0100 From: "Arnd Bergmann" To: "Jani Nikula" , "Arnd Bergmann" , linux-kbuild@vger.kernel.org, "Masahiro Yamada" , "Harry Wentland" , "Alex Deucher" , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Lucas De Marchi" , "Oded Gabbay" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "Jakub Kicinski" , "Paolo Abeni" , "Andrew Jeffery" , "Linus Walleij" , "Joel Stanley" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrew Morton" , "Nathan Chancellor" Cc: "Nicolas Schier" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Netdev , linux-mm@kvack.org, llvm@lists.linux.dev Subject: Re: [PATCH 01/12] kbuild: make -Woverride-init warnings more consistent Content-Type: text/plain On Tue, Mar 26, 2024, at 21:24, Jani Nikula wrote: > On Tue, 26 Mar 2024, Arnd Bergmann wrote: >> From: Arnd Bergmann >> index 475e1e8c1d35..0786eb0da391 100644 >> --- a/drivers/net/ethernet/renesas/sh_eth.c >> +++ b/drivers/net/ethernet/renesas/sh_eth.c >> @@ -50,7 +50,7 @@ >> * the macros available to do this only define GCC 8. >> */ >> __diag_push(); >> -__diag_ignore(GCC, 8, "-Woverride-init", >> +__diag_ignore_all("-Woverride-init", >> "logic to initialize all and then override some is OK"); > > This is nice because it's more localized than the per-file > disable. However, we tried to do this in i915, but this doesn't work for > GCC versions < 8, and some defconfigs enabling -Werror forced us to > revert. See commit 290d16104575 ("Revert "drm/i915: use localized > __diag_ignore_all() instead of per file""). It works now. The original __diag_ignore_all() only did it for gcc-8 and above because that was initially needed to suppress warnings that got added in that version, but this was always a mistake. 689b097a06ba ("compiler-gcc: Suppress -Wmissing-prototypes warning for all supported GCC") made it work correctly. Arnd