Skip to contentSkip to conversation

iio: adc: add MODULE_LICENSE to qcom-vadc-common.c

PATCH In review Daniel Axtens 2 participants 3 messages Dec 2, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: add MODULE_LICENSE to qcom-vadc-common.c

This fixes the following warning during an allmodconfig build:
WARNING: modpost: missing MODULE_LICENSE() in drivers/iio/adc/qcom-vadc-common.o

This matches the header at the top of the file.

---
 drivers/iio/adc/qcom-vadc-common.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/iio/adc/qcom-vadc-common.c +3 -0
index 47d24ae5462f..3b2c48ab44ff 100644
@@ -5,6 +5,7 @@
 #include <linux/math64.h>
 #include <linux/log2.h>
 #include <linux/err.h>
+#include <linux/module.h>
 
 #include "qcom-vadc-common.h"
 
@@ -229,3 +230,5 @@ int qcom_vadc_decimation_from_dt(u32 value)
 	return __ffs64(value / VADC_DECIMATION_MIN);
 }
 EXPORT_SYMBOL(qcom_vadc_decimation_from_dt);
+
+MODULE_LICENSE("GPL v2");
Signature · 1 line
2.11.0
maintainer
#1 lore raw
Quoted 6 lines · On Sat, 2 Dec 2017 23:22:09 +1100 Daniel Axtens <[email protected]> wrote:

This fixes the following warning during an allmodconfig build:
WARNING: modpost: missing MODULE_LICENSE() in drivers/iio/adc/qcom-vadc-common.o

This matches the header at the top of the file.

This is second or third patch for this one as well.

Please check the togreg (or testing) branch of iio.git on kernel.org.

Thanks,

Jonathan

Quoted 22 lines
---
 drivers/iio/adc/qcom-vadc-common.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/iio/adc/qcom-vadc-common.c +3 -0
index 47d24ae5462f..3b2c48ab44ff 100644
@@ -5,6 +5,7 @@
 #include <linux/math64.h>
 #include <linux/log2.h>
 #include <linux/err.h>
+#include <linux/module.h>
 
 #include "qcom-vadc-common.h"
 
@@ -229,3 +230,5 @@ int qcom_vadc_decimation_from_dt(u32 value)
 	return __ffs64(value / VADC_DECIMATION_MIN);
 }
 EXPORT_SYMBOL(qcom_vadc_decimation_from_dt);
+
+MODULE_LICENSE("GPL v2");
#2 lore raw

Hi Jonathan,

Quoted 6 lines
Quoted 3 lines · On Sat, 2 Dec 2017 23:22:09 +1100 Daniel Axtens <[email protected]> wrote:

This fixes the following warning during an allmodconfig build:
WARNING: modpost: missing MODULE_LICENSE() in drivers/iio/adc/qcom-vadc-common.o

Quoted 7 lines
Quoted 3 lines

This matches the header at the top of the file.

This is second or third patch for this one as well.

Please check the togreg (or testing) branch of iio.git on kernel.org.

Apologies - I don't think I have any other patches for iio, but if I do I will check that branch before sending.

Regards,
Daniel

Quoted 26 lines

Thanks,

Jonathan

Quoted 22 lines
---
 drivers/iio/adc/qcom-vadc-common.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/iio/adc/qcom-vadc-common.c +3 -0
index 47d24ae5462f..3b2c48ab44ff 100644
@@ -5,6 +5,7 @@
 #include <linux/math64.h>
 #include <linux/log2.h>
 #include <linux/err.h>
+#include <linux/module.h>
 
 #include "qcom-vadc-common.h"
 
@@ -229,3 +230,5 @@ int qcom_vadc_decimation_from_dt(u32 value)
 	return __ffs64(value / VADC_DECIMATION_MIN);
 }
 EXPORT_SYMBOL(qcom_vadc_decimation_from_dt);
+
+MODULE_LICENSE("GPL v2");