[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240917162443.GQ167971@kernel.org>
Date: Tue, 17 Sep 2024 17:24:43 +0100
From: Simon Horman <horms@...nel.org>
To: Wei Huang <wei.huang2@....com>
Cc: linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, netdev@...r.kernel.org,
Jonathan.Cameron@...wei.com, helgaas@...nel.org, corbet@....net,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, alex.williamson@...hat.com, gospo@...adcom.com,
michael.chan@...adcom.com, ajit.khaparde@...adcom.com,
somnath.kotur@...adcom.com, andrew.gospodarek@...adcom.com,
manoj.panicker2@....com, Eric.VanTassell@....com,
vadim.fedorenko@...ux.dev, bagasdotme@...il.com,
bhelgaas@...gle.com, lukas@...ner.de, paul.e.luse@...el.com,
jing2.liu@...el.com
Subject: Re: [PATCH V5 2/5] PCI/TPH: Add Steering Tag support
On Tue, Sep 17, 2024 at 05:14:10PM +0100, Simon Horman wrote:
> On Tue, Sep 17, 2024 at 09:31:00AM -0500, Wei Huang wrote:
> >
> >
> > On 9/17/24 02:32, Simon Horman wrote:
> > > On Mon, Sep 16, 2024 at 03:51:00PM -0500, Wei Huang wrote:
> > ...
> > >> + val = readl(vec_ctrl);
> > >> + mask = PCI_MSIX_ENTRY_CTRL_ST_LOWER | PCI_MSIX_ENTRY_CTRL_ST_UPPER;
> > >> + val &= ~mask;
> > >> + val |= FIELD_PREP(mask, (u32)tag);
> > >
> > > Hi Wei Huang,
> > >
> > > Unfortunately clang-18 (x86_64, allmodconfig, W=1, when applied to net-next)
> > > complains about this. I think it is because it expects FIELD_PREP to be
> > > used with a mask that is a built-in constant.
> >
> > I thought I fixed it, but apparently not enough for clang-18. I will
> > address this problem, along with other comments from you and Bjorn (if any).
> >
> > BTW there is another code in drivers/gpu/drm/ using a similar approach.
>
> Thanks,
>
> I will run some checks over drivers/gpu/drm/ and let you know if they find
> anything.
FWIIW, I did try compiling all the .c files under drivers/gpu/drm/ with
clang-18, and it did not flag this problem.
Powered by blists - more mailing lists