Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91AD0C3DA6E for ; Mon, 8 Jan 2024 10:39:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09C2E10E218; Mon, 8 Jan 2024 10:39:55 +0000 (UTC) X-Greylist: delayed 575 seconds by postgrey-1.36 at gabe; Mon, 08 Jan 2024 10:39:53 UTC Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9CB4810E218 for ; Mon, 8 Jan 2024 10:39:53 +0000 (UTC) Received: from omf01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D7EBAA1119; Mon, 8 Jan 2024 10:30:15 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA id EFB036000C; Mon, 8 Jan 2024 10:30:11 +0000 (UTC) Message-ID: <15fdb3f8cb4c0e580678920fd8b9c1a86ecfcd8d.camel@perches.com> Subject: Re: [PATCH v7 3/9] drm/plane: Add drm_for_each_primary_visible_plane macro From: Joe Perches To: Jocelyn Falempe , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn Date: Mon, 08 Jan 2024 02:30:11 -0800 In-Reply-To: References: <20240104160301.185915-1-jfalempe@redhat.com> <20240104160301.185915-4-jfalempe@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Rspamd-Queue-Id: EFB036000C X-Rspamd-Server: rspamout02 X-Stat-Signature: 54o1c551gfa9kzoanzy9osan4as3pusi X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/oyzSdTV1H4jd3pXaQIhyCk+9Y13h1AB8= X-HE-Tag: 1704709811-843503 X-HE-Meta: U2FsdGVkX18cG6AAMJBzOgp2TM4dFWLV05l1AvYCZKAJLd3oNkSZhxTVJZ4lck+34xkgwcmo1VHgan4OMBnDvLe9fUAilWxpSIbV5htPZiUeVQGc1T2m2iCN0EI+7dryyHcX7kRHyoebHL6HfXKb0QR8OCcxUzbWV2XL2kcA9Qht8lWlOKwf92Hp/CoVykzL+mb3iYXPKPrXvw1BO9aORJowzfBDmtAzPTinAC+XSzYsd666nJ9iKOLyXrv2EZvABkzreq9j9PrBF/6akF4O1YyCBkd90Dr12UtRXgurBt8qYyhz3z+9MZWy/nfn7R/+ X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bluescreen_avenger@verizon.net, javierm@redhat.com, mripard@kernel.org, gpiccoli@igalia.com, noralf@tronnes.org, dri-devel@lists.freedesktop.org, tzimmermann@suse.de, airlied@redhat.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, 2024-01-08 at 11:24 +0100, Jocelyn Falempe wrote: > Hi checkpatch maintainers, >=20 > This patch gives me the following checkpatch error: >=20 > ERROR: Macros with complex values should be enclosed in parentheses > #30: FILE: include/drm/drm_plane.h:959: > +#define drm_for_each_primary_visible_plane(plane, dev) \ > + list_for_each_entry((plane), &(dev)->mode_config.plane_list, head) \ > + for_each_if((plane)->type =3D=3D DRM_PLANE_TYPE_PRIMARY && \ > + (plane)->state && \ > + (plane)->state->fb && \ > + (plane)->state->visible) >=20 > total: 1 errors, 0 warnings, 21 lines checked >=20 > I think this requirement cannot work when you use list_for_each kind of= =20 > macros. > Do you have any suggestion ? >=20 checkpatch is a brainless regex script. Ignore it when it's stupid.