Fix MODULE_DESCRIPTION() for net (p3)
Subsystems (20)
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
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
@@ -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
Re: [PATCH net 01/10] net: fill in MODULE_DESCRIPTION()s for encx24j600
Quoted 4 lines · Breno Leitao
W=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to the Microchip ENCX24J600 helpers driver.Signed-off-by Breno Leitao <[email protected]>
PATCH 2/10 net: fill in MODULE_DESCRIPTION()s for ocelot
In reply to Breno LeitaoW=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
@@ -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
Simon Horman
reviewerRe: [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.Signed-off-by Breno Leitao <[email protected]>Reviewed-by Horatiu Vultur <[email protected]>--- drivers/net/ethernet/mscc/ocelot.c | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/mscc/ocelot.c +0
-0
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
-0MODULE_LICENSE ("Dual MIT/GPL" );Signature · 1 line
2.39.3
Vladimir Oltean
maintainerRe: [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.Signed-off-by Breno Leitao <[email protected]>Reviewed-by Horatiu Vultur <[email protected]>--- drivers/net/ethernet/mscc/ocelot.c | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/mscc/ocelot.c +0
-0drivers/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()".
PATCH 3/10 net: fill in MODULE_DESCRIPTION()s for SMSC drivers
In reply to Breno LeitaoW=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
@@ -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
@@ -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
@@ -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
Re: [PATCH net 03/10] net: fill in MODULE_DESCRIPTION()s for SMSC drivers
Quoted 4 lines · 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.Signed-off-by Breno Leitao <[email protected]>
PATCH 4/10 net: fill in MODULE_DESCRIPTION()s for Qualcom drivers
In reply to Breno LeitaoW=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
@@ -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
@@ -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
Re: [PATCH net 04/10] net: fill in MODULE_DESCRIPTION()s for Qualcom drivers
Quoted 5 lines · Breno Leitao
W=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to the Qualcom rmnet and emac drivers.Signed-off-by Breno Leitao <[email protected]>
PATCH 5/10 net: fill in MODULE_DESCRIPTION()s for dwmac-socfpga
In reply to Breno LeitaoW=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
@@ -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
Re: [PATCH net 05/10] net: fill in MODULE_DESCRIPTION()s for dwmac-socfpga
Quoted 4 lines · Breno Leitao
W=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to the STMicro DWMAC for Altera SOCs.Signed-off-by Breno Leitao <[email protected]>
PATCH 6/10 net: fill in MODULE_DESCRIPTION()s for cpsw-common
In reply to Breno LeitaoW=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
@@ -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
Re: [PATCH net 06/10] net: fill in MODULE_DESCRIPTION()s for cpsw-common
Quoted 5 lines · Breno Leitao
W=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to the TI CPSW switch module.Signed-off-by Breno Leitao <[email protected]>Reviewed-by Roger Quadros <[email protected]>
PATCH 7/10 net: fill in MODULE_DESCRIPTION()s for ec_bhf
In reply to Breno LeitaoW=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
@@ -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
Re: [PATCH net 07/10] net: fill in MODULE_DESCRIPTION()s for ec_bhf
Quoted 4 lines · Breno Leitao
W=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to the Beckhoff CX5020 EtherCAT Ethernet driver.Signed-off-by Breno Leitao <[email protected]>
PATCH 8/10 net: fill in MODULE_DESCRIPTION()s for PCS drivers
In reply to Breno LeitaoW=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
@@ -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
@@ -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
@@ -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
Re: [PATCH net 08/10] net: fill in MODULE_DESCRIPTION()s for PCS drivers
Quoted 4 lines · 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.Signed-off-by Breno Leitao <[email protected]>
Andrew
PATCH 9/10 net: fill in MODULE_DESCRIPTION()s for ieee802154
In reply to Breno LeitaoW=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
@@ -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
@@ -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
PATCH 10/10 net: fill in MODULE_DESCRIPTION()s for arcnet
In reply to Breno LeitaoW=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
@@ -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
Re: [PATCH net 10/10] net: fill in MODULE_DESCRIPTION()s for arcnet
Quoted 4 lines · Breno Leitao
W=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to arcnet module.Signed-off-by Breno Leitao <[email protected]>
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()indrivers/net/arcnet/com90io.o
WARNING: modpost: missingMODULE_DESCRIPTION()indrivers/net/arcnet/arc-rimi.o
WARNING: modpost: missingMODULE_DESCRIPTION()indrivers/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
Jakub Kicinski
maintainerQuoted 2 lines · On Mon, 29 Jan 2024 12:20:28 +0000 [email protected] wrote:
This series was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
🧘