Skip to contentSkip to conversation

Fix MODULE_DESCRIPTION() for net (p3)

PATCH Applied Breno Leitao 6 participants 23 messages Jan 25, 2024 – Jan 30, 2024

Subsystems (20)
lore
Share & tools
lore
#0 lore raw

cover Fix MODULE_DESCRIPTION() for net (p3)

There are hundreds of network modules that misses MODULE_DESCRIPTION(), causing a warning when compiling with W=1. Example:

WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/arcnet/com90io.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/arcnet/arc-rimi.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/arcnet/com20020.o

This part3 of the patchset focus on the missing ethernet drivers, which is now warning free. This also fixes net/pcs and ieee802154.

Breno Leitao (10):
net: fill in MODULE_DESCRIPTION()s for encx24j600
net: fill in MODULE_DESCRIPTION()s for ocelot
net: fill in MODULE_DESCRIPTION()s for SMSC drivers
net: fill in MODULE_DESCRIPTION()s for Qualcom drivers
net: fill in MODULE_DESCRIPTION()s for dwmac-socfpga
net: fill in MODULE_DESCRIPTION()s for cpsw-common
net: fill in MODULE_DESCRIPTION()s for ec_bhf
net: fill in MODULE_DESCRIPTION()s for PCS drivers
net: fill in MODULE_DESCRIPTION()s for ieee802154
net: fill in MODULE_DESCRIPTION()s for arcnet

 drivers/net/arcnet/arcnet.c                         | 1 +
 drivers/net/ethernet/ec_bhf.c                       | 1 +
 drivers/net/ethernet/microchip/encx24j600-regmap.c  | 1 +
 drivers/net/ethernet/mscc/ocelot.c                  | 1 +
 drivers/net/ethernet/qualcomm/emac/emac.c           | 1 +
 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c  | 1 +
 drivers/net/ethernet/smsc/smc91x.c                  | 1 +
 drivers/net/ethernet/smsc/smsc911x.c                | 1 +
 drivers/net/ethernet/smsc/smsc9420.c                | 1 +
 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 1 +
 drivers/net/ethernet/ti/cpsw-common.c               | 1 +
 drivers/net/pcs/pcs-lynx.c                          | 1 +
 drivers/net/pcs/pcs-mtk-lynxi.c                     | 1 +
 drivers/net/pcs/pcs-xpcs.c                          | 1 +
 net/ieee802154/6lowpan/core.c                       | 1 +
 net/ieee802154/socket.c                             | 1 +
 16 files changed, 16 insertions(+)
Signature · 1 line
2.39.3
#1 lore raw

PATCH 1/10 net: fill in MODULE_DESCRIPTION()s for encx24j600

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Microchip ENCX24J600 helpers driver.

---
 drivers/net/ethernet/microchip/encx24j600-regmap.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/microchip/encx24j600-regmap.c +1 -0
index 5693784eec5b..2e0fe16a4082 100644
@@ -513,4 +513,5 @@ int devm_regmap_init_encx24j600(struct device *dev,
 }
 EXPORT_SYMBOL_GPL(devm_regmap_init_encx24j600);
 
+MODULE_DESCRIPTION("Microchip ENCX24J600 helpers");
 MODULE_LICENSE("GPL");
Signature · 1 line
2.39.3
#3 lore raw

PATCH 2/10 net: fill in MODULE_DESCRIPTION()s for ocelot

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Ocelot SoCs (VSC7514) helpers driver.

---
 drivers/net/ethernet/mscc/ocelot.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mscc/ocelot.c +1 -0
index 56ccbd4c37fe..2194f2a7ab27 100644
@@ -3078,4 +3078,5 @@ void ocelot_deinit_port(struct ocelot *ocelot, int port)
 }
 EXPORT_SYMBOL(ocelot_deinit_port);
 
+MODULE_DESCRIPTION("Microsemi Ocelot (VSC7514) Switch driver");
 MODULE_LICENSE("Dual MIT/GPL");
Signature · 1 line
2.39.3
reviewer
#4 lore raw

Re: [PATCH net 02/10] net: fill in MODULE_DESCRIPTION()s for ocelot

Quoted 14 lines · Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Ocelot SoCs (VSC7514) helpers driver.

---
 drivers/net/ethernet/mscc/ocelot.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mscc/ocelot.c +0 -0
index 56ccbd4c37fe..2194f2a7ab27 100644

drivers/net/ethernet/mscc/ocelot.c void ocelot_deinit_port(struct ocelot *ocelot, int port) · line 3081

Quoted 4 lines
drivers/net/ethernet/mscc/ocelot.c +1 -0
@@ -3078,4 +3078,5 @@ void ocelot_deinit_port(struct ocelot *ocelot, int port)
 }
 EXPORT_SYMBOL(ocelot_deinit_port);
 
+MODULE_DESCRIPTION("Microsemi Ocelot (VSC7514) Switch driver");

Hi Breno,

I really appreciate your work in this area.

WRT this patch, I could well be wrong, but I think this code is also used by Felix (VSC9959). If so the description might want tweaking.

Vladimir, can you shed some light on this?

Quoted 4 lines
drivers/net/ethernet/mscc/ocelot.c +0 -0
 MODULE_LICENSE("Dual MIT/GPL");
Signature · 1 line
2.39.3
maintainer
#5 lore raw

Re: [PATCH net 02/10] net: fill in MODULE_DESCRIPTION()s for ocelot

Quoted 22 lines · Simon Horman
Quoted 14 lines · Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Ocelot SoCs (VSC7514) helpers driver.

---
 drivers/net/ethernet/mscc/ocelot.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mscc/ocelot.c +0 -0
index 56ccbd4c37fe..2194f2a7ab27 100644

drivers/net/ethernet/mscc/ocelot.c void ocelot_deinit_port(struct ocelot *ocelot, int port) · line 3081

Quoted 4 lines
drivers/net/ethernet/mscc/ocelot.c +1 -0
@@ -3078,4 +3078,5 @@ void ocelot_deinit_port(struct ocelot *ocelot, int port)
 }
 EXPORT_SYMBOL(ocelot_deinit_port);
 
+MODULE_DESCRIPTION("Microsemi Ocelot (VSC7514) Switch driver");

Hi Breno,

Quoted 6 lines

I really appreciate your work in this area.

WRT this patch, I could well be wrong, but I think this code is also used by Felix (VSC9959). If so the description might want tweaking.

Vladimir, can you shed some light on this?

Thanks for pointing this out, Simon, you are correct. This would be better:

MODULE_DESCRIPTION("Microsemi Ocelot switch family library");

Also, the commit prefix for this driver should be "net: mscc: ocelot:
fill in MODULE_DESCRIPTION()".

#6 lore raw

PATCH 3/10 net: fill in MODULE_DESCRIPTION()s for SMSC drivers

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the SMSC 91x/911x/9420 Ethernet drivers.

---
 drivers/net/ethernet/smsc/smc91x.c   | 1 +
 drivers/net/ethernet/smsc/smsc911x.c | 1 +
 drivers/net/ethernet/smsc/smsc9420.c | 1 +
 3 files changed, 3 insertions(+)
drivers/net/ethernet/smsc/smc91x.c +1 -0
index 758347616535..78ff3af7911a 100644
@@ -98,6 +98,7 @@ static int watchdog = 1000;
 module_param(watchdog, int, 0400);
 MODULE_PARM_DESC(watchdog, "transmit timeout in milliseconds");
 
+MODULE_DESCRIPTION("SMC 91C9x/91C1xxx Ethernet driver");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:smc91x");
 
drivers/net/ethernet/smsc/smsc911x.c +1 -0
index 31cb7d0166f0..74f1ccc96459 100644
@@ -56,6 +56,7 @@
 #define SMSC_MDIONAME		"smsc911x-mdio"
 #define SMSC_DRV_VERSION	"2008-10-21"
 
+MODULE_DESCRIPTION("SMSC LAN911x/LAN921x Ethernet driver");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(SMSC_DRV_VERSION);
 MODULE_ALIAS("platform:smsc911x");
drivers/net/ethernet/smsc/smsc9420.c +1 -0
index e1c4a11c1f18..15cb96c2506d 100644
@@ -26,6 +26,7 @@
 #define DRV_DESCRIPTION		"SMSC LAN9420 driver"
 #define DRV_VERSION		"1.01"
 
+MODULE_DESCRIPTION("SMSC LAN9420 Ethernet driver");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(DRV_VERSION);
 
Signature · 1 line
2.39.3
#8 lore raw

PATCH 4/10 net: fill in MODULE_DESCRIPTION()s for Qualcom drivers

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Qualcom rmnet and emac drivers.

---
 drivers/net/ethernet/qualcomm/emac/emac.c          | 1 +
 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 1 +
 2 files changed, 2 insertions(+)
drivers/net/ethernet/qualcomm/emac/emac.c +1 -0
index 3270df72541b..4c06f55878de 100644
@@ -771,5 +771,6 @@ static struct platform_driver emac_platform_driver = {
 
 module_platform_driver(emac_platform_driver);
 
+MODULE_DESCRIPTION("Qualcomm EMAC Gigabit Ethernet driver");
 MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:qcom-emac");
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +1 -0
index 5b69b9268c75..f3bea196a8f9 100644
@@ -520,4 +520,5 @@ static void __exit rmnet_exit(void)
 module_init(rmnet_init)
 module_exit(rmnet_exit)
 MODULE_ALIAS_RTNL_LINK("rmnet");
+MODULE_DESCRIPTION("Qualcomm RmNet MAP driver");
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.3
#10 lore raw

PATCH 5/10 net: fill in MODULE_DESCRIPTION()s for dwmac-socfpga

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the STMicro DWMAC for Altera SOCs.

---
 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +1 -0
index ba2ce776bd4d..68f85e4605cb 100644
@@ -585,4 +585,5 @@ static struct platform_driver socfpga_dwmac_driver = {
 };
 module_platform_driver(socfpga_dwmac_driver);
 
+MODULE_DESCRIPTION("Altera SOC DWMAC Specific Glue layer");
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.3
#12 lore raw

PATCH 6/10 net: fill in MODULE_DESCRIPTION()s for cpsw-common

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the TI CPSW switch module.

---
 drivers/net/ethernet/ti/cpsw-common.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/ti/cpsw-common.c +1 -0
index 26dc906eae90..57fe936bb177 100644
@@ -90,4 +90,5 @@ int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr)
 }
 EXPORT_SYMBOL_GPL(ti_cm_get_macid);
 
+MODULE_DESCRIPTION("TI CPSW Switch common module");
 MODULE_LICENSE("GPL");
Signature · 1 line
2.39.3
#14 lore raw

PATCH 7/10 net: fill in MODULE_DESCRIPTION()s for ec_bhf

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Beckhoff CX5020 EtherCAT Ethernet driver.

---
 drivers/net/ethernet/ec_bhf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/ec_bhf.c +1 -0
index c2c5c589a5e3..44af1d13d931 100644
@@ -590,5 +590,6 @@ module_pci_driver(pci_driver);
 module_param(polling_frequency, long, 0444);
 MODULE_PARM_DESC(polling_frequency, "Polling timer frequency in ns");
 
+MODULE_DESCRIPTION("Beckhoff CX5020 EtherCAT Ethernet driver");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Dariusz Marcinkiewicz <[email protected]>");
Signature · 1 line
2.39.3
#16 lore raw

PATCH 8/10 net: fill in MODULE_DESCRIPTION()s for PCS drivers

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Lynx, XPCS and LynxI PCS drivers.

---
 drivers/net/pcs/pcs-lynx.c      | 1 +
 drivers/net/pcs/pcs-mtk-lynxi.c | 1 +
 drivers/net/pcs/pcs-xpcs.c      | 1 +
 3 files changed, 3 insertions(+)
drivers/net/pcs/pcs-lynx.c +1 -0
index dc3962b2aa6b..853b8c138718 100644
@@ -398,4 +398,5 @@ void lynx_pcs_destroy(struct phylink_pcs *pcs)
 }
 EXPORT_SYMBOL(lynx_pcs_destroy);
 
+MODULE_DESCRIPTION("NXP Lynx PCS phylink library");
 MODULE_LICENSE("Dual BSD/GPL");
drivers/net/pcs/pcs-mtk-lynxi.c +1 -0
index 8501dd365279..4f63abe638c4 100644
@@ -303,4 +303,5 @@ void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs)
 }
 EXPORT_SYMBOL(mtk_pcs_lynxi_destroy);
 
+MODULE_DESCRIPTION("MediaTek SGMII library for LynxI");
 MODULE_LICENSE("GPL");
drivers/net/pcs/pcs-xpcs.c +1 -0
index 31f0beba638a..52a7757ee419 100644
@@ -1456,4 +1456,5 @@ struct dw_xpcs *xpcs_create_mdiodev(struct mii_bus *bus, int addr,
 }
 EXPORT_SYMBOL_GPL(xpcs_create_mdiodev);
 
+MODULE_DESCRIPTION("Synopsys DesignWare XPCS library");
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.39.3
#18 lore raw

PATCH 9/10 net: fill in MODULE_DESCRIPTION()s for ieee802154

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to ieee802154 modules.

---
 net/ieee802154/6lowpan/core.c | 1 +
 net/ieee802154/socket.c       | 1 +
 2 files changed, 2 insertions(+)
net/ieee802154/6lowpan/core.c +1 -0
index 2c087b7f17c5..e643f52663f9 100644
@@ -280,5 +280,6 @@ static void __exit lowpan_cleanup_module(void)
 
 module_init(lowpan_init_module);
 module_exit(lowpan_cleanup_module);
+MODULE_DESCRIPTION("IPv6 over Low power Wireless Personal Area Network IEEE 802.15.4 core");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS_RTNL_LINK("lowpan");
net/ieee802154/socket.c +1 -0
index 00302e8b9615..990a83455dcf 100644
@@ -1137,4 +1137,5 @@ module_init(af_ieee802154_init);
 module_exit(af_ieee802154_remove);
 
 MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("IEEE 802.15.4 socket interface");
 MODULE_ALIAS_NETPROTO(PF_IEEE802154);
Signature · 1 line
2.39.3
#19 lore raw

PATCH 10/10 net: fill in MODULE_DESCRIPTION()s for arcnet

In reply to Breno Leitao

W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to arcnet module.

---
 drivers/net/arcnet/arcnet.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/arcnet/arcnet.c +1 -0
index d9e052c49ba1..166bfc3c8e6c 100644
@@ -108,6 +108,7 @@ static int go_tx(struct net_device *dev);
 
 static int debug = ARCNET_DEBUG;
 module_param(debug, int, 0);
+MODULE_DESCRIPTION("ARCnet core driver");
 MODULE_LICENSE("GPL");
 
 static int __init arcnet_init(void)
Signature · 1 line
2.39.3
#21 lore raw
In reply to Breno Leitao
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 25 Jan 2024 11:34:10 -0800 you wrote:

There are hundreds of network modules that misses MODULE_DESCRIPTION(), causing a warning when compiling with W=1. Example:

WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/arcnet/com90io.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/arcnet/arc-rimi.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/arcnet/com20020.o

[...]

Here is the summary with links:
- [net,01/10] net: fill in MODULE_DESCRIPTION()s for encx24j600

    https://git.kernel.org/netdev/net-next/c/dec836ed69d1
  - [net,02/10] net: fill in MODULE_DESCRIPTION()s for ocelot
    https://git.kernel.org/netdev/net-next/c/1c870c63d7d2
  - [net,03/10] net: fill in MODULE_DESCRIPTION()s for SMSC drivers
    https://git.kernel.org/netdev/net-next/c/9ba4295b2eab
  - [net,04/10] net: fill in MODULE_DESCRIPTION()s for Qualcom drivers
    https://git.kernel.org/netdev/net-next/c/66c164633bb0
  - [net,05/10] net: fill in MODULE_DESCRIPTION()s for dwmac-socfpga
    https://git.kernel.org/netdev/net-next/c/23f487f70c73
  - [net,06/10] net: fill in MODULE_DESCRIPTION()s for cpsw-common
    https://git.kernel.org/netdev/net-next/c/3e4620c89148
  - [net,07/10] net: fill in MODULE_DESCRIPTION()s for ec_bhf
    https://git.kernel.org/netdev/net-next/c/ad979679d64b
  - [net,08/10] net: fill in MODULE_DESCRIPTION()s for PCS drivers
    https://git.kernel.org/netdev/net-next/c/be884c15de37
  - [net,09/10] net: fill in MODULE_DESCRIPTION()s for ieee802154
    https://git.kernel.org/netdev/net-next/c/6aa89bf8ac9a
  - [net,10/10] net: fill in MODULE_DESCRIPTION()s for arcnet
    https://git.kernel.org/netdev/net-next/c/d06aa0eb0a70

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html