Fix MODULE_DESCRIPTION() for net (p2)
Subsystems (11)
v2 cover Fix MODULE_DESCRIPTION() for net (p2)
There are hundreds of network modules that misses MODULE_DESCRIPTION(), causing a warnning 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 part2 of the patchset focus on the drivers/net/ethernet drivers. There are still some missing warnings in drivers/net/ethernet that will be fixed in an upcoming patchset.
Changelog:
---------
V1:
* https://lore.kernel.org/all/[email protected]/
V2:
* Limit the patchset to 10 patches.
* Rewrite the following module description:
* fec
* bgmac
* Added acknowledge in the following driver:
* litex
Breno Leitao (10):
net: fill in MODULE_DESCRIPTION()s for 8390
net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac
net: fill in MODULE_DESCRIPTION()s for liquidio
net: fill in MODULE_DESCRIPTION()s for ep93xxx_eth
net: fill in MODULE_DESCRIPTION()s for nps_enet
net: fill in MODULE_DESCRIPTION()s for enetc
net: fill in MODULE_DESCRIPTION()s for fec
net: fill in MODULE_DESCRIPTION()s for fsl_pq_mdio
net: fill in MODULE_DESCRIPTION()s for litex
net: fill in MODULE_DESCRIPTION()s for rvu_mbox
drivers/net/ethernet/8390/8390.c | 1 + drivers/net/ethernet/8390/8390p.c | 1 + drivers/net/ethernet/8390/apne.c | 1 + drivers/net/ethernet/8390/hydra.c | 1 + drivers/net/ethernet/8390/stnic.c | 1 + drivers/net/ethernet/8390/zorro8390.c | 1 + drivers/net/ethernet/broadcom/bcm4908_enet.c | 1 + drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c | 1 + drivers/net/ethernet/broadcom/bgmac-bcma.c | 1 + drivers/net/ethernet/broadcom/bgmac-platform.c | 1 + drivers/net/ethernet/broadcom/bgmac.c | 1 + drivers/net/ethernet/cavium/liquidio/lio_core.c | 1 + drivers/net/ethernet/cirrus/ep93xx_eth.c | 1 + drivers/net/ethernet/ezchip/nps_enet.c | 1 + drivers/net/ethernet/freescale/enetc/enetc.c | 1 + drivers/net/ethernet/freescale/fec_main.c | 1 + drivers/net/ethernet/freescale/fsl_pq_mdio.c | 1 + drivers/net/ethernet/litex/litex_liteeth.c | 1 + drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 1 + 19 files changed, 19 insertions(+)
Signature · 1 line
2.39.3
PATCH v2 1/10 net: fill in MODULE_DESCRIPTION()s for 8390
W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to all the good old 8390 modules and drivers.
--- drivers/net/ethernet/8390/8390.c | 1 + drivers/net/ethernet/8390/8390p.c | 1 + drivers/net/ethernet/8390/apne.c | 1 + drivers/net/ethernet/8390/hydra.c | 1 + drivers/net/ethernet/8390/stnic.c | 1 + drivers/net/ethernet/8390/zorro8390.c | 1 + 6 files changed, 6 insertions(+)
drivers/net/ethernet/8390/8390.c +1 -0
@@ -100,4 +100,5 @@ static void __exit ns8390_module_exit(void)module_init (ns8390_module_init);module_exit (ns8390_module_exit);#endif /* MODULE */ +MODULE_DESCRIPTION ("National Semiconductor 8390 core driver" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/8390/8390p.c +1 -0
@@ -102,4 +102,5 @@ static void __exit NS8390p_cleanup_module(void)module_init (NS8390p_init_module);module_exit (NS8390p_cleanup_module); +MODULE_DESCRIPTION ("National Semiconductor 8390 core for ISA driver" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/8390/apne.c +1 -0
@@ -610,4 +610,5 @@ static int init_pcmcia(void)return 1 ; } +MODULE_DESCRIPTION ("National Semiconductor 8390 Amiga PCMCIA ethernet driver" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/8390/hydra.c +1 -0
@@ -270,4 +270,5 @@ static void __exit hydra_cleanup_module(void)module_init (hydra_init_module);module_exit (hydra_cleanup_module); +MODULE_DESCRIPTION ("Zorro-II Hydra 8390 ethernet driver" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/8390/stnic.c +1 -0
@@ -296,4 +296,5 @@ static void __exit stnic_cleanup(void)module_init (stnic_probe);module_exit (stnic_cleanup); +MODULE_DESCRIPTION ("National Semiconductor DP83902AV ethernet driver" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/8390/zorro8390.c +1 -0
@@ -443,4 +443,5 @@ static void __exit zorro8390_cleanup_module(void)module_init (zorro8390_init_module);module_exit (zorro8390_cleanup_module); +MODULE_DESCRIPTION ("Zorro NS8390-based ethernet driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.3
PATCH v2 2/10 net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Broadcom iProc GBit driver.
--- drivers/net/ethernet/broadcom/bcm4908_enet.c | 1 + drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c | 1 + drivers/net/ethernet/broadcom/bgmac-bcma.c | 1 + drivers/net/ethernet/broadcom/bgmac-platform.c | 1 + drivers/net/ethernet/broadcom/bgmac.c | 1 + 5 files changed, 5 insertions(+)
drivers/net/ethernet/broadcom/bcm4908_enet.c +1 -0
@@ -793,5 +793,6 @@ static struct platform_driver bcm4908_enet_driver = { };module_platform_driver (bcm4908_enet_driver); +MODULE_DESCRIPTION ("Broadcom BCM4908 Gigabit Ethernet driver" );MODULE_LICENSE ("GPL v2" );MODULE_DEVICE_TABLE (of, bcm4908_enet_of_match);
drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c +1 -0
@@ -260,4 +260,5 @@ void bcma_mdio_mii_unregister(struct mii_bus *mii_bus)EXPORT_SYMBOL_GPL (bcma_mdio_mii_unregister);MODULE_AUTHOR ("Rafał Miłecki" ); +MODULE_DESCRIPTION ("Broadcom iProc GBit BCMA MDIO helpers" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/broadcom/bgmac-bcma.c +1 -0
@@ -362,4 +362,5 @@ module_init(bgmac_init) module_exit(bgmac_exit) MODULE_AUTHOR("Rafał Miłecki"); +MODULE_DESCRIPTION ("Broadcom iProc GBit BCMA interface driver" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/broadcom/bgmac-platform.c +1 -0
@@ -298,4 +298,5 @@ static struct platform_driver bgmac_enet_driver = { };module_platform_driver (bgmac_enet_driver); +MODULE_DESCRIPTION ("Broadcom iProc GBit platform interface driver" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/broadcom/bgmac.c +1 -0
@@ -1626,4 +1626,5 @@ int bgmac_enet_resume(struct bgmac *bgmac)EXPORT_SYMBOL_GPL (bgmac_enet_resume);MODULE_AUTHOR ("Rafał Miłecki" ); +MODULE_DESCRIPTION ("Broadcom iProc GBit driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.3
Re: [PATCH net v2 02/10] net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac
Quoted 4 lines · Breno Leitao
W=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to the Broadcom iProc GBit driver.Signed-off-by Breno Leitao <[email protected]>
Signature · 1 line
Florian
PATCH v2 3/10 net: fill in MODULE_DESCRIPTION()s for liquidio
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Cavium Liquidio.
--- drivers/net/ethernet/cavium/liquidio/lio_core.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/cavium/liquidio/lio_core.c +1 -0
@@ -27,6 +27,7 @@#include "octeon_network.h" MODULE_AUTHOR ("Cavium Networks, <[email protected]>" ); +MODULE_DESCRIPTION ("Cavium LiquidIO Intelligent Server Adapter Core" );MODULE_LICENSE ("GPL" );/* OOM task polling interval */
Signature · 1 line
2.39.3
PATCH v2 4/10 net: fill in MODULE_DESCRIPTION()s for ep93xxx_eth
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Cirrus EP93xx ethernet driver.
--- drivers/net/ethernet/cirrus/ep93xx_eth.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/cirrus/ep93xx_eth.c +1 -0
@@ -868,5 +868,6 @@ static struct platform_driver ep93xx_eth_driver = {module_platform_driver (ep93xx_eth_driver); +MODULE_DESCRIPTION ("Cirrus EP93xx Ethernet driver" );MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:ep93xx-eth" );
Signature · 1 line
2.39.3
PATCH v2 5/10 net: fill in MODULE_DESCRIPTION()s for nps_enet
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the EZchip NPS ethernet driver.
--- drivers/net/ethernet/ezchip/nps_enet.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/ezchip/nps_enet.c +1 -0
@@ -661,4 +661,5 @@ static struct platform_driver nps_enet_driver = {module_platform_driver (nps_enet_driver);MODULE_AUTHOR ("EZchip Semiconductor" ); +MODULE_DESCRIPTION ("EZchip NPS Ethernet driver" );MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.3
PATCH v2 6/10 net: fill in MODULE_DESCRIPTION()s for enetc
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the NXP ENETC Ethernet driver.
--- drivers/net/ethernet/freescale/enetc/enetc.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/enetc/enetc.c +1 -0
@@ -3216,4 +3216,5 @@ void enetc_pci_remove(struct pci_dev *pdev) }EXPORT_SYMBOL_GPL (enetc_pci_remove); +MODULE_DESCRIPTION ("NXP ENETC Ethernet driver" );MODULE_LICENSE ("Dual BSD/GPL" );
Signature · 1 line
2.39.3
PATCH v2 7/10 net: fill in MODULE_DESCRIPTION()s for fec
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the FEC (MPC8xx) Ethernet controller.
--- drivers/net/ethernet/freescale/fec_main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/fec_main.c +1 -0
@@ -4769,4 +4769,5 @@ static struct platform_driver fec_driver = {module_platform_driver (fec_driver); +MODULE_DESCRIPTION ("NXP Fast Ethernet Controller (FEC) driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.3
RE: [PATCH net v2 07/10] net: fill in MODULE_DESCRIPTION()s for fec
Quoted 31 lines
-----Original Message-----
From: Breno Leitao <[email protected]>
Sent: 2024年1月24日 3:03
To: [email protected]; [email protected]; [email protected]; [email protected]; Wei Fang <[email protected]>; Shenwei Wang <[email protected]>; Clark Wang <[email protected]>; dl-linux-imx <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: [PATCH net v2 07/10] net: fill in MODULE_DESCRIPTION()s for fecW=1 builds now warn if module is built without a
MODULE_DESCRIPTION(). Add descriptions to the FEC (MPC8xx) Ethernet controller.Signed-off-by Breno Leitao <[email protected]>--- drivers/net/ethernet/freescale/fec_main.c | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/freescale/fec_main.c +1
-1@@ -4769,4 +4769,5 @@ static struct platform_driver fec_driver = {module_platform_driver (fec_driver); +MODULE_DESCRIPTION ("NXP Fast Ethernet Controller (FEC) driver" );MODULE_LICENSE ("GPL" ); --
Quoted 1 line
2.39.3
Thanks!
PATCH v2 8/10 net: fill in MODULE_DESCRIPTION()s for fsl_pq_mdio
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Freescale PQ MDIO driver.
--- drivers/net/ethernet/freescale/fsl_pq_mdio.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/fsl_pq_mdio.c +1 -0
@@ -531,4 +531,5 @@ static struct platform_driver fsl_pq_mdio_driver = {module_platform_driver (fsl_pq_mdio_driver); +MODULE_DESCRIPTION ("Freescale PQ MDIO helpers" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.3
PATCH v2 9/10 net: fill in MODULE_DESCRIPTION()s for litex
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the LiteX Liteeth Ethernet device.
--- drivers/net/ethernet/litex/litex_liteeth.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/litex/litex_liteeth.c +1 -0
@@ -318,4 +318,5 @@ static struct platform_driver liteeth_driver = {module_platform_driver (liteeth_driver);MODULE_AUTHOR ("Joel Stanley <[email protected]>" ); +MODULE_DESCRIPTION ("LiteX Liteeth Ethernet driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.3
PATCH v2 10/10 net: fill in MODULE_DESCRIPTION()s for rvu_mbox
In reply to Breno LeitaoW=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the Marvel RVU mbox driver.
--- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/marvell/octeontx2/af/mbox.c +1 -0
@@ -413,4 +413,5 @@ const char *otx2_mbox_id2name(u16 id)EXPORT_SYMBOL (otx2_mbox_id2name);MODULE_AUTHOR ("Marvell." ); +MODULE_DESCRIPTION ("Marvell RVU NIC Mbox helpers" );MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.3
This series was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 23 Jan 2024 11:03:21 -0800 you wrote:
There are hundreds of network modules that misses
MODULE_DESCRIPTION(), causing a warnning 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,v2,01/10] net: fill in MODULE_DESCRIPTION()s for 8390
https://git.kernel.org/netdev/net/c/f5e414167be7 - [net,v2,02/10] net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac https://git.kernel.org/netdev/net/c/39535d7ff6c1 - [net,v2,03/10] net: fill in MODULE_DESCRIPTION()s for liquidio https://git.kernel.org/netdev/net/c/bb567fbbbbb4 - [net,v2,04/10] net: fill in MODULE_DESCRIPTION()s for ep93xxx_eth https://git.kernel.org/netdev/net/c/53c83e2d3648 - [net,v2,05/10] net: fill in MODULE_DESCRIPTION()s for nps_enet https://git.kernel.org/netdev/net/c/27881ca8c8e1 - [net,v2,06/10] net: fill in MODULE_DESCRIPTION()s for enetc https://git.kernel.org/netdev/net/c/07c42d237567 - [net,v2,07/10] net: fill in MODULE_DESCRIPTION()s for fec https://git.kernel.org/netdev/net/c/2e8757648855 - [net,v2,08/10] net: fill in MODULE_DESCRIPTION()s for fsl_pq_mdio https://git.kernel.org/netdev/net/c/8183c470c176 - [net,v2,09/10] net: fill in MODULE_DESCRIPTION()s for litex https://git.kernel.org/netdev/net/c/07d1e0ce8743 - [net,v2,10/10] net: fill in MODULE_DESCRIPTION()s for rvu_mbox https://git.kernel.org/netdev/net/c/bdc6734115d7
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html