Re: linux-next: build failure in the final build
From: Uwe Kleine-König
Date: Tue Nov 24 2026 - 03:46:17 EST
On Mon, Nov 23, 2026 at 07:29:57PM +0100, Krzysztof Kozlowski wrote:
> On 23/11/2026 18:45, Mark Brown wrote:
> > Hi all,
> >
> > Today's -next has a build failure in the final build for arm64
> > allyesconfig:
> >
> > In file included from /tmp/next/build/include/linux/phy/phy.h:25,
> > from /tmp/next/build/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:15:
> > /tmp/next/build/include/dt-bindings/phy/phy.h:15:33: error: expected identifier before numeric constant
> > 15 | #define PHY_TYPE_PCIE 2
> > | ^
> > /tmp/next/build/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:47:9: note: in expansion of macro 'PHY_TYPE_PCIE'
> > 47 | PHY_TYPE_PCIE = 1,
> > | ^~~~~~~~~~~~~
> > /tmp/next/build/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:127:27: error: 'PHY_TYPE_PCIE_GEN2' undeclared here (not in a function); did you mean 'PHY_TYPE_PCIE'?
> > 127 | .phy_type = PHY_TYPE_PCIE_GEN2,
> > | ^~~~~~~~~~~~~~~~~~
> > | PHY_TYPE_PCIE
> > /tmp/next/build/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:135:27: error: 'PHY_TYPE_PCIE_GEN3' undeclared here (not in a function); did you mean 'PHY_TYPE_PCIE'?
> > 135 | .phy_type = PHY_TYPE_PCIE_GEN3,
> > | ^~~~~~~~~~~~~~~~~~
> > | PHY_TYPE_PCIE
> >
> > I did not specifically identify the commit that triggered this, it will
> > be some include file reorganisation which causes PHY_TYPE_PCIE from the
> > DT headers to become visible to the driver, clearly there is a
> > namespacing issue going on here. I have ignored this for today.
>
> Commit b28eecc89399e5371483f03fecded33a26a8e655 was not really built and
> exposed all drivers to DT bindings headers. Referencing other headers,
> including bindings, from kernel-wide headers is another suboptimal
> choice here.
If drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c was more defensive
and added a driver-specific prefix to its version of PHY_TYPE_PCIE, that
would help, too.
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature