Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp133676pxk; Fri, 11 Sep 2020 02:32:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR2Apm8AkXA+7CO3QA1KB6V71ulVZuufjYgtWUv+t2muZvNWRR312Q68hdQ2+ZqkI/enUp X-Received: by 2002:aa7:dc16:: with SMTP id b22mr1023018edu.252.1599816721385; Fri, 11 Sep 2020 02:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599816721; cv=none; d=google.com; s=arc-20160816; b=0T3//eiCW2aWW3sI+kABd39vpE5lRL/KFKxAC4Ou1HwU33HUBFEDokerhxlld70oUa CkUT3eN1qjr7NQZ6fR9fYKRiLBKULCmsNzwWwnx61xOrjMp+WN2+GC/4O4T1RUU19wZz /3HvfaytaXefV9qkdnOUVRUNuYFqY3J/edMUuf7iwUlE5IkYB91QE4lT9wyIQ+aKgrs6 EZMCHNaBzKOOJfL2jqFO5znwdjzxJX+AgAvSEk/IcKmdatNnbibdEa4RbwmJ/7056i4I 0xZcwVAtkL/TT86tVEbA8fACFBEgoQ7FQIQmCa1FQS85OhZ9Csxqj2+sh4GAzgaNTL4t S+nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=4eZPvAv3U0ei+14UtDDh27zONnmUsYhV4QCkXaiv95U=; b=PkL0Ka1BFSGp5+4+XMayXN45XUs0VZweG2lOJgKIqfeVVFAJTL2CO9d8So4Zptbi32 pummWcwcWQQchkt6WpPXKwdY1e/JkUU2fBqTiws/QMeBUUvvMj0Zv1cfIy7NUEwZTfmf UXBKdQKZjOVgAiYu/Ulg8AdQ2TGo2ydTJzjmilU8iM+hJrw1lcpLyBdS5lbFUM5/lvPT ykhnxnCvIrgTelGrC56TyQhtO48O8fSglZ93m6nAzpbXhMiv9oNm/Tp8Th+DM5UKUdQs m6KsbTyHi6sXPqPMdpF+w9GapaNt8yQOONIs/CPAPb29sITirXNRV5WN7Mjhu0/Im385 ywSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=cVg7pVYo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dfH6sYtj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v26si870917eja.287.2020.09.11.02.31.38; Fri, 11 Sep 2020 02:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=cVg7pVYo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dfH6sYtj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725787AbgIKJaq (ORCPT + 99 others); Fri, 11 Sep 2020 05:30:46 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:54049 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgIKJao (ORCPT ); Fri, 11 Sep 2020 05:30:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C4D665C0143; Fri, 11 Sep 2020 05:30:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 11 Sep 2020 05:30:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=4eZPvAv3U0ei+14UtDDh27zONnm UsYhV4QCkXaiv95U=; b=cVg7pVYoHtQ+hvwb8cQNsrps9G+IF7pfPQK1slBQDA3 Sqnfc6mEd9yCy7mCj8OT27z6uydy8YS+CN9RNql7puGeDfxmu+B8KgxfdzyKp5H4 ygqfEBhL3749W7eFNkiNxGUk5Thv7u7/Ibf6IGSCSWGXfn/O9Kpo/JiXdf9u/96u FMig7f7cdI+LMJjDaZsJa8hUd7J9hrSN3AzgJaO7McVkCAj0cF7LcaGhShTnfP9X I3ubBZz3YkmBF74ZmevyMUzMCHLalm7f5mCt4cE313bvsWL0IrmA1yzKCpEKYK/Y /ajWu/Kf454TjtlLVnjLoQWa4oFaTKgJxi1nSEq/7/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=4eZPvA v3U0ei+14UtDDh27zONnmUsYhV4QCkXaiv95U=; b=dfH6sYtjoYu1rDC3NGm9lm M58DQ6AeSrVF6hJM2j+RArhBSzI78eEtW3N1o++2CudQMGd4EFE8m1iaOS8vCvg+ s28ZWb853EHp2j8ZcWgmsOuP2zxQWwRscRAJDGLr2GN1kXxn5cI1R77nxKZV+l7W ZB9Bd9IGj/PxLDFgYx3GLIl2xTyR2dhtSIFCk2gXYHQckO5K4/gLe+dF1kT9QPWq gkTk6fY94LdMZHqswXoDLV2m+PGWExUASlZb58qAG7iWVXI+/LQXyoCBe1BMK/2Z LSJzz5SYIA1K/UgHUEtY9pPCOAC/f4zoFadBUGbKCWIOVGPcvw6OFpiwCPf9hJ6w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehledgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepveegudetkeethfetgffgtdekkefghefhffefgeduleehgeehieeuveefgedv ieegnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepledtrdekledrieekrd ejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehm rgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id B14243280059; Fri, 11 Sep 2020 05:30:41 -0400 (EDT) Date: Fri, 11 Sep 2020 11:30:39 +0200 From: Maxime Ripard To: Nathan Chancellor Cc: Eric Anholt , Dave Stevenson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] drm/vc4: Fix bitwise OR versus ternary operator in vc4_plane_mode_set Message-ID: <20200911093039.ki55jtui5z5pftax@gilmour.lan> References: <20200910171831.4112580-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4mr3dssagjsp7qtp" Content-Disposition: inline In-Reply-To: <20200910171831.4112580-1-natechancellor@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4mr3dssagjsp7qtp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 10, 2020 at 10:18:32AM -0700, Nathan Chancellor wrote: > Clang warns: >=20 > drivers/gpu/drm/vc4/vc4_plane.c:901:27: warning: operator '?:' has lower > precedence than '|'; '|' will be evaluated first > [-Wbitwise-conditional-parentheses] > fb->format->has_alpha ? > ~~~~~~~~~~~~~~~~~~~~~ ^ > drivers/gpu/drm/vc4/vc4_plane.c:901:27: note: place parentheses around > the '|' expression to silence this warning > fb->format->has_alpha ? > ~~~~~~~~~~~~~~~~~~~~~ ^ > drivers/gpu/drm/vc4/vc4_plane.c:901:27: note: place parentheses around > the '?:' expression to evaluate it first > fb->format->has_alpha ? > ~~~~~~~~~~~~~~~~~~~~~~^ > 1 warning generated. >=20 > Add the parentheses as that was clearly intended, otherwise > SCALER5_CTL2_ALPHA_PREMULT won't be added to the list. >=20 > Fixes: c54619b0bfb3 ("drm/vc4: Add support for the BCM2711 HVS5") > Link: https://github.com/ClangBuiltLinux/linux/issues/1150 > Signed-off-by: Nathan Chancellor Applied, thanks! Maxime --4mr3dssagjsp7qtp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX1tDvwAKCRDj7w1vZxhR xX0EAP47LWuq4yevIMaFjUP73PiNl7Exoby6G4mj8QuRY4gduQEAhkTXFPSjmzvw gZ5q4Rxbxl+PYtOOngPfqyuIAelmZw4= =WjzN -----END PGP SIGNATURE----- --4mr3dssagjsp7qtp--