diff mbox series

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

Message ID 20171120205742.87508-1-jc@linux.com
State Accepted
Commit 0cc03504c9f1b9c9da819094db37507c69ee9145
Headers show
Series net: phy: cortina: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE | expand

Commit Message

Jesse Chan Nov. 20, 2017, 8:57 p.m. UTC
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.

Signed-off-by: Jesse Chan <jc@linux.com>

---
 drivers/net/phy/cortina.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.14.1

Comments

David Miller Nov. 23, 2017, 4:24 p.m. UTC | #1
From: Jesse Chan <jc@linux.com>

Date: Mon, 20 Nov 2017 12:57:42 -0800

> 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.

> 

> Signed-off-by: Jesse Chan <jc@linux.com>


Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index 72f4228a63bb..9442db221834 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -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");