Re: [PATCH] Bluetooth: btintel_pcie: Fix context analysis errors on req_lock
From: Pauli Virtanen
Date: Thu Dec 03 2026 - 14:32:25 EST
Hi,
to, 2026-12-03 kello 13:55 -0500, Luiz Augusto von Dentz kirjoitti:
> On Thu, Dec 3, 2026 at 1:52 PM Pauli Virtanen <pav@xxxxxx> wrote:
> > to, 2026-12-03 kello 13:01 -0500, Luiz Augusto von Dentz kirjoitti:
> > > On Thu, Dec 3, 2026 at 12:53 PM Sasha Levin <sashal@xxxxxxxxxx> wrote:
> > > >
> > > > On Thu, Dec 03, 2026 at 11:16:40AM -0500, Luiz Augusto von Dentz wrote:
> > > > > Can you give some more context so I can try enabling it in our CI to
> > > > > avoid committing new code with this problem. (No need to respin just
> > > > > want a lead to enable this sort of errors in our CI).
> > > >
> > > > It just needs clang 23 or newer. CONFIG_WARN_CONTEXT_ANALYSIS depends on
> > > > that and defaults to y, and drivers/bluetooth and net/bluetooth already
> > > > have CONTEXT_ANALYSIS := y in their Makefiles. They're warnings unless
> > > > CONFIG_WERROR is set.
> > >
> > > By clang 23 you mean LLVM=1 as well? There is a ton of other errors if
> > > I enable CONFIG_WERROR so I assume this is just checking for new
> > > errors in which case we need some sort of history to compare to.
> >
> > There is LLVM build test (CheckKernelLLVM) with context analysis +
> > Werror enabled in the bluez CI.
>
> Is that using clang 23? Or do we need to update the container to use
> that version?
Yes, it is working:
https://lore.kernel.org/linux-bluetooth/6b0da550.18b9987f.3871c4.950b@xxxxxxxxxxxxx/
The only problem looks like the intel pcie driver (and possibly others)
is not enabled in the kernel config.
> > CONFIG_BT_INTEL_PCIE=y seems missing from bluez/doc/ci.config that the
> > kernel CI build tests use, so the build tests are probably not running
> > for this driver.
>
> I guess action-ci needs to be updated then.
--
Pauli Virtanen