Skip to content

W=1 by default for Ethernet PHY subsystem

Andrew Lunn linux-kbuild netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scripts: Makefile.extrawarn: Add W=1 warnings to a symbolscripts/Makefile.extrawarn+18 -150 replies
2/2net: phylib: Enable W=1 by defaultdrivers/net/mdio/Makefile drivers/net/pcs/Makefile drivers/net/phy/Makefile+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC/RFT 0/2] W=1 by default for Ethernet PHY subsystem

There is a movement to make the code base compile clean with W=1. Some subsystems are already clean. In order to keep them clean, we need developers to build new code with W=1 by default in these subsystems.

This patchset refactors the core Makefile warning code to allow the additional warnings W=1 adds available to any Makefile. The Ethernet PHY subsystem Makefiles then make use of this to make W=1 the default for this subsystem.

RFT since i've only tested with x86 and arm with a modern gcc. Is the code really clean for older compilers? For clang?

Andrew Lunn (2):
scripts: Makefile.extrawarn: Add W=1 warnings to a symbol
net: phylib: Enable W=1 by default

 drivers/net/mdio/Makefile  |  3 +++
 drivers/net/pcs/Makefile   |  3 +++
 drivers/net/phy/Makefile   |  3 +++
 scripts/Makefile.extrawarn | 33 ++++++++++++++++++---------------
 4 files changed, 27 insertions(+), 15 deletions(-)
Signature · 1 line
2.28.0