Skip to contentSkip to conversation

iio: accel: kxsd9-i2c: add missing MODULE_AUTHOR/DESCRIPTION/LICENSE

PATCH In review Jesse Chan 2 participants 2 messages Nov 20, 2017 – Nov 25, 2017 IIO

lore
Share & tools
lore

Jesse Chan

author
#0 lore raw

PATCH 1/1 iio: accel: kxsd9-i2c: add missing MODULE_AUTHOR/DESCRIPTION/LICENSE

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

WARNING: modpost: missing MODULE_LICENSE() in drivers/iio/accel/kxsd9-i2c.o see include/linux/module.h for more information

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

MODULE_DESCRIPTION and MODULE_AUTHOR are also added.

---
 drivers/iio/accel/kxsd9-i2c.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/iio/accel/kxsd9-i2c.c +4 -0
index 98fbb628d5bd..40f82ada6a52 100644
@@ -63,3 +63,7 @@ static struct i2c_driver kxsd9_i2c_driver = {
 	.id_table	= kxsd9_i2c_id,
 };
 module_i2c_driver(kxsd9_i2c_driver);
+
+MODULE_AUTHOR("Linus Walleij <[email protected]>");
+MODULE_DESCRIPTION("Kionix KXSD9 I2C driver");
+MODULE_LICENSE("GPL v2");
Signature · 1 line
2.14.1
maintainer
#1 lore raw
Quoted 9 lines · On Mon, 20 Nov 2017 12:55:18 -0800 Jesse Chan <[email protected]> wrote:

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

WARNING: modpost: missing MODULE_LICENSE() in drivers/iio/accel/kxsd9-i2c.o see include/linux/module.h for more information

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

MODULE_DESCRIPTION and MODULE_AUTHOR are also added.

Linus sent patches fixing the license and description the other day. Also wise to actually cc Linus!

Right now they are only publicly visible in the testing branch of iio.git on kernel.org as I'll be rebasing once rc1 is out...

Thanks,

Jonathan

Quoted 18 lines
---
 drivers/iio/accel/kxsd9-i2c.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/iio/accel/kxsd9-i2c.c +4 -0
index 98fbb628d5bd..40f82ada6a52 100644
@@ -63,3 +63,7 @@ static struct i2c_driver kxsd9_i2c_driver = {
 	.id_table	= kxsd9_i2c_id,
 };
 module_i2c_driver(kxsd9_i2c_driver);
+
+MODULE_AUTHOR("Linus Walleij <[email protected]>");
+MODULE_DESCRIPTION("Kionix KXSD9 I2C driver");
+MODULE_LICENSE("GPL v2");