Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1036823ybi; Wed, 19 Jun 2019 12:15:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6/jlgOCHjh8tUT2VTONJA8FphoVwIN5DvG1BzxcakSFujcimpZPF2EvN4eNdsABStt7Jt X-Received: by 2002:a17:902:2aa8:: with SMTP id j37mr77135428plb.316.1560971732731; Wed, 19 Jun 2019 12:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560971732; cv=none; d=google.com; s=arc-20160816; b=Tbx5ONct2XLbibNojP/nojDgiThHpOdrCse/iM89g1HIYEpNTLWYTQyaG3OX2IpYzA wCtJy0kb/CVxu2Lo67gcqP4TLhu6L/g6mGSj8BTYxegyojuuWX7LK2o0wuDBadgIBytl KnhKKKn8wiEAlVl6vn4RO9jB8yJDdrOpHJvpt/UxwW5IYyPIC5Fz7tssWbSCGs7bBkQq +ij6dAx/6jdj43tkMn9DUTjOpOqJeYZI1Jn8vYWON711ySTg+WEywilQ41R2cuZO2Mb8 MFxBunD3DEPSZfcm+qioeOeHTDTR3gY9r10N/ct1BhmGBokyVhsAKcVR55IIvgD4Im+m IHfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ib3Elwu0KclQyP3cycuxmXbQ4naSfm0BlMVLX1InLZw=; b=qX6IbDIWuIom/bEW7Wq560kfIsUgTRVfKFWBqCx5n3Hl2kvQZbS/Kab7zwiNfk0D7T 3VsnrIk/nLDeT2x8jMySnAlegjhqRBvcGHPZyNJZpiQ7ietx9m1AN6LRBKIZLqbuJCSn YqzFmMMydY+u5wJlt2TuHq/Y584BVEoae3r8mtMK+Nn6u4GmVUmsrJnM/1VK2epun4+W vk0Oh0xm31p0yLPpFqTtF8Y2zU9edf0lTQTR7VZlaC85GlvtHe8au5U90x+t2G7zKQc+ uD1qxmmvUGRjR9KndLEX208hFIPF6c9yL7Vrcp2SmHjM9CFsghwBYhinnrR8soHOsrBs 6vlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=QQ6gJxUT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si1990690pjs.35.2019.06.19.12.15.16; Wed, 19 Jun 2019 12:15:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=QQ6gJxUT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730390AbfFSTOR (ORCPT + 99 others); Wed, 19 Jun 2019 15:14:17 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:36188 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726380AbfFSTOR (ORCPT ); Wed, 19 Jun 2019 15:14:17 -0400 Received: by mail-ua1-f67.google.com with SMTP id v20so595800uao.3 for ; Wed, 19 Jun 2019 12:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ib3Elwu0KclQyP3cycuxmXbQ4naSfm0BlMVLX1InLZw=; b=QQ6gJxUTW/Vjrclz3KenY0TkBWCxnFk+KURlFWhpls7ntpL6pJ8MX2SdeFYx4Aklq/ DudSWR/uOS3VYS3IlVIGvEDRduFT3XEv9OhRdMAxyhFjtml2fkV2Bm56Ki4BPjlTnvc7 mLTwzTOaXr2svneSWQkzb82jUkoP65Y38rQWPtAOoe+1sUAAgBkLsPlkUJIt2f3aq8wv xE+N8bn0d0K1xrUZ6D2A0xJ9LDspwtWJ/xUYjpBwRX1rzQ2ifxV9fzblurIKhBrnKW3t CsKqx/mwrD5iLFKKt8QTv0uISIziU2OSUkDk6tu4AqBYedKvQ5tO25TOfFkEeEhkcsLz e9Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ib3Elwu0KclQyP3cycuxmXbQ4naSfm0BlMVLX1InLZw=; b=Dgfby3p8cHJX4tga4ubxwkAnRMNbVpUdA6afNYpfusSGQFrg4MQTLcN3tWaUdjbvRz wppHVUOpixjIGJOTvEZpSI+uCN++bKRmPH8lfAHqs/P0lePqbRB7JWN8hT2Z8U98Gm9S jpDt+IsWObzlaxWRCpI1lxozLouOB//vtC77P5iA5Mw46DL/wgmFLEjNdh/4T87qls3Q TGgS1bwAE7qQumYo/mQyFxMxcaXz+SfzQzuAhnLgqCJwVITF7I3nYoDtdlwGxkYWloIf Nxp7g5pMKXNdwIBzOVh+XxiNY7p+x4RNRGQOHc5uQzcBvXrv1pZe5cUNL6gjGQLZDwgt ZKQg== X-Gm-Message-State: APjAAAXshnkf05raZflvK1auUojrukpYGy7KLFVt24DLx3tuRiWIqmwp 4mtPWUMNIGB4uQ/upJb2+v+E/2YHL8V0kIX7CcPUag== X-Received: by 2002:ab0:7384:: with SMTP id l4mr5662598uap.8.1560971656192; Wed, 19 Jun 2019 12:14:16 -0700 (PDT) MIME-Version: 1.0 References: <20190619161913.102998-1-natechancellor@gmail.com> In-Reply-To: <20190619161913.102998-1-natechancellor@gmail.com> From: Sean Paul Date: Wed, 19 Jun 2019 15:13:40 -0400 Message-ID: Subject: Re: [PATCH] drm/msm/dsi: Add parentheses to quirks check in dsi_phy_hw_v3_0_lane_settings To: Nathan Chancellor Cc: Rob Clark , linux-arm-msm , dri-devel , freedreno@lists.freedesktop.org, LKML , clang-built-linux@googlegroups.com, kbuild test robot , Jeffrey Hugo Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 12:19 PM Nathan Chancellor wrote: > > Clang warns: > > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: warning: logical not is > only applied to the left hand side of this bitwise operator > [-Wlogical-not-parentheses] > if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > ^ ~ > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: note: add parentheses > after the '!' to evaluate the bitwise operator first > if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > ^ > ( ) > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: note: add parentheses > around left hand side expression to silence this warning > if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > ^ > ( ) > 1 warning generated. > > Add parentheses around the bitwise AND so it is evaluated first then > negated. > > Fixes: 3dbbf8f09e83 ("drm/msm/dsi: Add old timings quirk for 10nm phy") > Link: https://github.com/ClangBuiltLinux/linux/547 This link is broken, could you please fix it up? The rest is: Reviewed-by: Sean Paul > Reported-by: kbuild test robot > Reviewed-by: Jeffrey Hugo > Signed-off-by: Nathan Chancellor > --- > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c > index eb28937f4b34..47403d4f2d28 100644 > --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c > +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c > @@ -77,7 +77,7 @@ static void dsi_phy_hw_v3_0_lane_settings(struct msm_dsi_phy *phy) > tx_dctrl[i]); > } > > - if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > + if (!(phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK)) { > /* Toggle BIT 0 to release freeze I/0 */ > dsi_phy_write(lane_base + REG_DSI_10nm_PHY_LN_TX_DCTRL(3), 0x05); > dsi_phy_write(lane_base + REG_DSI_10nm_PHY_LN_TX_DCTRL(3), 0x04); > -- > 2.22.0 >