From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 B73F326A0DA for ; Tue, 25 Feb 2025 14:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740492786; cv=none; b=HSi4bmqjawIkBPGFpCZgKItur8FMTOur/3GKFfK15aLNn1YEsoWHukwck0PdVWhmZTJtZL+RrVqr6EpKz4IP+rr28+tBiPmh9DMjRi87KRrlB5X0z0foxvyB5xbYFMElZ1r9JZaw4bDvNevtDKuFoeQ8JhwhCGA2YKHEQTngz/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740492786; c=relaxed/simple; bh=PYf63rhqlg/chZOT8GhwTctxmuRCcI63sCYIcCez/8U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rNtMeWn343EyGa44k76mHrBwcmuc23feyzEfwKKoLQ0GQgGFMCXrjrP9F9Tef9uYi13n9TvyYDKYzUsUQj+/SB3sLYkSAAnMq3Uz0HQSePuv09oTUO2eytOYn4BYB/X3Qe1kaib9hxUsGMO6+PFl2EzdsAWTRwFhWbxnWHag2dY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=L34uO6r/; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="L34uO6r/" Received: by mail.gandi.net (Postfix) with ESMTPSA id 382DA441A0; Tue, 25 Feb 2025 14:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1740492777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=camQ4hVJd9PIINUG4lm5DWjwsMW9lCso6fLvApRD17I=; b=L34uO6r/kxO1kT14Gon9v/Xb8uNGSPBLtBZTTHEj7mj9fYLO9UQuGqZJSpr6S6tJJE5X3K uMDQ2QHWaEYBmRfMY6h5z5C9qGsuvmk226PeyVeQRFz5z9mUxXKhSN6l/JFppMgDK0E7xH dbqLghVInKOX/DVcpMU0DKNHSCz5M8ESAwd+VJ/NrtNirdFTqyDWliDSUOh7QIkzNEC+gQ 9uLoqu6g7gdb4TSDaVzFJtw44S0bMcsRVrPjUc1EwRZcGdr7wSTok+qy2Y01R0XRD9cAVt TcCZCG1Ptqcy0rOHAygANr68VncVEYBDindzntgyDtTNOrgNF3D91C51PvUWPw== Date: Tue, 25 Feb 2025 15:12:54 +0100 From: Louis Chauvet To: Jim Cromie , linux-kernel@vger.kernel.org, jbaron@akamai.com, gregkh@linuxfoundation.org, ukaszb@chromium.org Cc: intel-gfx-trybot@lists.freedesktop.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Subject: Re: [PATCH 15/63] checkpatch: add an exception to the do-while wrapper advice Message-ID: <270e6d31-c4e2-4c23-98f1-3ebb2d946e63@bootlin.com> Mail-Followup-To: Jim Cromie , linux-kernel@vger.kernel.org, jbaron@akamai.com, gregkh@linuxfoundation.org, ukaszb@chromium.org, intel-gfx-trybot@lists.freedesktop.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn References: <20250125064619.8305-1-jim.cromie@gmail.com> <20250125064619.8305-16-jim.cromie@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250125064619.8305-16-jim.cromie@gmail.com> X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdekudeludcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggugfgjsehtkeertddttddunecuhfhrohhmpefnohhuihhsucevhhgruhhvvghtuceolhhouhhishdrtghhrghuvhgvthessghoohhtlhhinhdrtghomheqnecuggftrfgrthhtvghrnhepudeiffduffeivdejgfejheeuudekkedvjeeuffegfefghfffkeelgffgieevudejnecuffhomhgrihhnpegsohhothhlihhnrdgtohhmnecukfhppeeltddrkeelrdduieefrdduvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledtrdekledrudeifedruddvjedphhgvlhhopehlohhuihhsqdgthhgruhhvvghtqdhlrghpthhophdpmhgrihhlfhhrohhmpehlohhuihhsrdgthhgruhhvvghtsegsohhothhlihhnrdgtohhmpdhnsggprhgtphhtthhopedukedprhgtphhtthhopehjihhmrdgtrhhomhhivgesghhmrghilhdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjsggrrhhonhesrghkrghmrghirdgtohhmpdhrtghpthhtohepghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnr dhorhhgpdhrtghpthhtohepuhhkrghsiigssegthhhrohhmihhumhdrohhrghdprhgtphhtthhopehinhhtvghlqdhgfhigqdhtrhihsghotheslhhishhtshdrfhhrvggvuggvshhkthhophdrohhrghdprhgtphhtthhopegurhhiqdguvghvvghlsehlihhsthhsrdhfrhgvvgguvghskhhtohhprdhorhhgpdhrtghpthhtoheprghmugdqghhfgieslhhishhtshdrfhhrvggvuggvshhkthhophdrohhrgh X-GND-Sasl: louis.chauvet@bootlin.com Le 25/01/2025 à 07:45, Jim Cromie a écrit : > Several new DYNDBG_CLASSMAP_* macros (added in following commits) > expand to multi-statement declarations, like module_param_named does. > They are invoked in file-scope, not in function scope, and cannot be > wrapped by a do-while, so add an exception by name for them. > > cc: Andy Whitcroft > cc: Joe Perches > cc: Dwaipayan Ray > cc: Lukas Bulwahn > Signed-off-by: Jim Cromie Reviewed-by: Louis Chauvet > --- > scripts/checkpatch.pl | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 9eed3683ad76..4a93b2ede8cd 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -5963,6 +5963,7 @@ sub process { > MODULE_PARM_DESC| > DECLARE_PER_CPU| > DEFINE_PER_CPU| > + DYNDBG_CLASSMAP| > __typeof__\(| > union| > struct| -- Louis Chauvet, Bootlin Embedded Linux and Kernel engineering https://bootlin.com