Skip to contentSkip to conversation

net: phy: cortina: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE

PATCH Applied Jesse Chan 2 participants 2 messages Nov 20, 2017 – Nov 23, 2017

Subsystems (3)
lore
Share & tools
lore

Jesse Chan

author
#0 lore raw

PATCH 1/1 net: phy: cortina: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE

This change resolves a new compile-time warning
when built as a loadable module:

WARNING: modpost: missing MODULE_LICENSE() in drivers/net/phy/cortina.o see include/linux/module.h for more information

This adds the license as "GPL", which matches the header of the file.

MODULE_DESCRIPTION and MODULE_AUTHOR are also added.

---
 drivers/net/phy/cortina.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/phy/cortina.c +4 -0
index 72f4228a63bb..9442db221834 100644
@@ -116,3 +116,7 @@ static struct mdio_device_id __maybe_unused cortina_tbl[] = {
 };
 
 MODULE_DEVICE_TABLE(mdio, cortina_tbl);
+
+MODULE_DESCRIPTION("Cortina EDC CDR 10G Ethernet PHY driver");
+MODULE_AUTHOR("NXP");
+MODULE_LICENSE("GPL");
Signature · 1 line
2.14.1
maintainer Applied
#1 lore raw

From: Jesse Chan <[email protected]>
Date: Mon, 20 Nov 2017 12:57:42 -0800

Quoted 11 lines

This change resolves a new compile-time warning
when built as a loadable module:

WARNING: modpost: missing MODULE_LICENSE() in drivers/net/phy/cortina.o see include/linux/module.h for more information

This adds the license as "GPL", which matches the header of the file.

MODULE_DESCRIPTION and MODULE_AUTHOR are also added.

Applied, thanks.