Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: build failure in the final build
@ 2026-11-23 17:45 Mark Brown
  2026-11-23 18:29 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2026-11-23 17:45 UTC (permalink / raw)
  To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-phy, Linux Kernel Mailing List, Linux Next Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 1531 bytes --]

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.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 112 bytes --]

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the final build
  2026-11-23 17:45 linux-next: build failure in the final build Mark Brown
@ 2026-11-23 18:29 ` Krzysztof Kozlowski
  2026-11-23 18:37   ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23 18:29 UTC (permalink / raw)
  To: Mark Brown, Vinod Koul, Neil Armstrong, Manivannan Sadhasivam,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Krishna Kurapati,
	Greg Kroah-Hartman
  Cc: linux-phy, Linux Kernel Mailing List, Linux Next Mailing List

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.

Greg, that's commit in your tree, how about dropping
b28eecc89399e5371483f03fecded33a26a8e655? Authors probably built only
defconfig and thought they are done...

That commit was not reviewed by Phy maintainer, so it should not go via USB.

Honestly, I do not understand why author - Krishna - combined there PHY
and USB in one spot.

Best regards,
Krzysztof

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the final build
  2026-11-23 18:29 ` Krzysztof Kozlowski
@ 2026-11-23 18:37   ` Mark Brown
  2026-11-23 18:42     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2026-11-23 18:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Krishna Kurapati,
	Greg Kroah-Hartman, linux-phy, Linux Kernel Mailing List,
	Linux Next Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 1035 bytes --]

On Mon, Nov 23, 2026 at 07:29:57PM +0100, Krzysztof Kozlowski wrote:
> On 23/11/2026 18:45, Mark Brown wrote:

> > 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.

b28eecc89399e (include: linux: phy: Add phy attribute "type" and associated helpers)

> Greg, that's commit in your tree, how about dropping
> b28eecc89399e5371483f03fecded33a26a8e655? Authors probably built only
> defconfig and thought they are done...

The PHY driver is bool and depends on ARCH_QCOM too which doesn't help,
people would need to do a specifically arm/arm64 all*config to hit
issues.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 112 bytes --]

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the final build
  2026-11-23 18:37   ` Mark Brown
@ 2026-11-23 18:42     ` Krzysztof Kozlowski
  2026-11-23 18:58       ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23 18:42 UTC (permalink / raw)
  To: Mark Brown
  Cc: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Krishna Kurapati,
	Greg Kroah-Hartman, linux-phy, Linux Kernel Mailing List,
	Linux Next Mailing List

On 23/11/2026 19:37, Mark Brown wrote:
>> Greg, that's commit in your tree, how about dropping
>> b28eecc89399e5371483f03fecded33a26a8e655? Authors probably built only
>> defconfig and thought they are done...
> 
> The PHY driver is bool and depends on ARCH_QCOM too which doesn't help,
> people would need to do a specifically arm/arm64 all*config to hit
> issues.

Sorry, but that's trivial in this particular case. Whenever one touches
subsystem wide stuff, author should AT LEAST build that subsystem, which
is trivial:

ARCH=arm/arm64 ... make allyesconfig -j12 drivers/phy/

Followed by W=1 clang build. This is bare minimum and is fast. We do not
speak here about full allyesconfig build, which requires some build
machine, but basic build which my laptop did in 10 seconds (I mean, 10
seconds to spot the error).

Author simply did not built the code they touched (by touching subsystem
header).

Best regards,
Krzysztof

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the final build
  2026-11-23 18:42     ` Krzysztof Kozlowski
@ 2026-11-23 18:58       ` Mark Brown
  2026-11-23 19:01         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2026-11-23 18:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Krishna Kurapati,
	Greg Kroah-Hartman, linux-phy, Linux Kernel Mailing List,
	Linux Next Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 1192 bytes --]

On Mon, Nov 23, 2026 at 07:42:04PM +0100, Krzysztof Kozlowski wrote:
> On 23/11/2026 19:37, Mark Brown wrote:

> > The PHY driver is bool and depends on ARCH_QCOM too which doesn't help,
> > people would need to do a specifically arm/arm64 all*config to hit
> > issues.

> Sorry, but that's trivial in this particular case. Whenever one touches
> subsystem wide stuff, author should AT LEAST build that subsystem, which
> is trivial:

> ARCH=arm/arm64 ... make allyesconfig -j12 drivers/phy/

> Followed by W=1 clang build. This is bare minimum and is fast. We do not
> speak here about full allyesconfig build, which requires some build
> machine, but basic build which my laptop did in 10 seconds (I mean, 10
> seconds to spot the error).

Yeah, the issue here being you have to specifically do arm64 - I know my
coverage builds tend to be on x86_64 since my development is on arm64
so it's much more likely to actually turn something up.  It would be
helpful to have better compile test coverage for these drivers to help
avoid such issues, the easier it is to get the code built the better.

> Author simply did not built the code they touched (by touching subsystem
> header).

Clearly.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 112 bytes --]

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the final build
  2026-11-23 18:58       ` Mark Brown
@ 2026-11-23 19:01         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23 19:01 UTC (permalink / raw)
  To: Mark Brown
  Cc: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Krishna Kurapati,
	Greg Kroah-Hartman, linux-phy, Linux Kernel Mailing List,
	Linux Next Mailing List

On 23/11/2026 19:58, Mark Brown wrote:
> helpful to have better compile test coverage for these drivers to help
> avoid such issues, the easier it is to get the code built the better.

I'll fix the missing compile test for that driver.

Best regards,
Krzysztof

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-23 19:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 17:45 linux-next: build failure in the final build Mark Brown
2026-11-23 18:29 ` Krzysztof Kozlowski
2026-11-23 18:37   ` Mark Brown
2026-11-23 18:42     ` Krzysztof Kozlowski
2026-11-23 18:58       ` Mark Brown
2026-11-23 19:01         ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox