Skip to content

Commit 35e6560

Browse files
M-Vaittinenbroonie
authored andcommitted
lib: linear_ranges: Add missing MODULE_LICENSE()
When linear_ranges is compiled as module we get warning about missing MODULE_LICENSE(). Fix it by adding MODULE_LICENSE("GPL") as is suggested by SPDX and EXPORTs. Signed-off-by: Matti Vaittinen <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 60ab7f4 commit 35e6560

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/linear_ranges.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/export.h>
1313
#include <linux/kernel.h>
1414
#include <linux/linear_range.h>
15+
#include <linux/module.h>
1516

1617
/**
1718
* linear_range_values_in_range - return the amount of values in a range
@@ -239,3 +240,6 @@ int linear_range_get_selector_high(const struct linear_range *r,
239240
return 0;
240241
}
241242
EXPORT_SYMBOL_GPL(linear_range_get_selector_high);
243+
244+
MODULE_DESCRIPTION("linear-ranges helper");
245+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)