Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: holtekff: move MODULE_* parameters out of #ifdef block

If you compile with:
CONFIG_HID_HOLTEK=m
CONFIG_HOLTEK_FF is not set

You get the following warning:
WARNING: modpost: missing MODULE_LICENSE() in drivers/hid/hid-holtekff.o
see include/linux/module.h for more information

Fix this by moving the module info out of the #ifdef CONFIG_HOLTEK_FF
block and into the un-guarded part of the file.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Acked-by: Anssi Hannula <anssi.hannula@iki.fi>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Daniel Axtens and committed by
Jiri Kosina
56075f60 542134c0

+4 -4
+4 -4
drivers/hid/hid-holtekff.c
··· 32 32 33 33 #ifdef CONFIG_HOLTEK_FF 34 34 35 - MODULE_LICENSE("GPL"); 36 - MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>"); 37 - MODULE_DESCRIPTION("Force feedback support for Holtek On Line Grip based devices"); 38 - 39 35 /* 40 36 * These commands and parameters are currently known: 41 37 * ··· 219 223 .probe = holtek_probe, 220 224 }; 221 225 module_hid_driver(holtek_driver); 226 + 227 + MODULE_LICENSE("GPL"); 228 + MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>"); 229 + MODULE_DESCRIPTION("Force feedback support for Holtek On Line Grip based devices");