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
  2026-11-23 21:26 ` Sasha Levin
  0 siblings, 2 replies; 8+ 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] 8+ 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
  2026-11-23 21:26 ` Sasha Levin
  1 sibling, 1 reply; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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
  2026-11-23 21:38           ` Krishna Kurapati
  0 siblings, 1 reply; 8+ 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] 8+ 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 21:26 ` Sasha Levin
  1 sibling, 0 replies; 8+ messages in thread
From: Sasha Levin @ 2026-11-23 21:26 UTC (permalink / raw)
  To: Mark Brown
  Cc: Krzysztof Kozlowski, 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 Mon, Nov 23, 2026 at 05:45:01PM +0000, 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.

I sent a fix for the driver yesterday. It renames the driver's enum
values so they don't clash with the dt-bindings ones:

  https://lore.kernel.org/all/20261122152857.1113943-1-sashal@kernel.org/

-- 
Thanks,
Sasha

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

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

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



On Tue, Nov 24, 2026 at 12:31 AM Krzysztof Kozlowski <krzk@kernel.org> 
wrote:
>
> 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.
>

Apologies. I didn't build it for allyesconfig. I did uncover this issue 
recently when testing on a different branch where the said driver was 
enabled. I was planning on sending a proper fix along with v9.  There 
were some fresh comments that came up from maintainer Vinod last week [1].

I was planning on doing two things:
1) Fix up the build error when sending v9.
2) Send on top of phy next [2].

I will take care not to let such things happen from next time from my 
end. Sorry for the inconvenience caused.

As per mixing phy and usb patches, I know that usb subsystem prefers not 
mixing up usb patches with others, but in this case, I thought that we 
must send a complete series instead of sending 4 phy patches and then 
sending a separate usb patch marking the dependency on phy patches. In 
that case, I would have had to send usb patch once phy patch was in 
linux next so that no build error would come up when Greg would have 
picked usb patch into his tree. Let me know what is preferable in this case.

In case Vinod is fine with the implementation and comments replied to on 
[1], then this series need not be reverted and the build error can be 
fixed by Sasha's patch sent today [3]. Else, Greg, please do help revert 
the series from usb tree. I will rebase v9 on top of phy next after 
addressing the comments from Vinod.

[1]: 
https://lore.kernel.org/all/6ed0793c-76ce-4d04-af5f-8987311c5c0f@oss.qualcomm.com/
[2]: 
https://lore.kernel.org/all/6851ca2b-775e-44d7-b437-d04fd4ea4f21@oss.qualcomm.com/
[3]: https://lore.kernel.org/all/20261122152857.1113943-1-sashal@kernel.org/

Regards,
Krishna

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

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

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

Thread overview: 8+ 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
2026-11-23 21:38           ` Krishna Kurapati
2026-11-23 21:26 ` Sasha Levin

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