HID: holtekff: move MODULE_* parameters out of #ifdef block
PATCH 1/1 HID: holtekff: move MODULE_* parameters out of #ifdef block
If you compile with:CONFIG_HID_HOLTEK=mCONFIG_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.
--- drivers/hid/hid-holtekff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/hid/hid-holtekff.c +4 -4
@@ -32,10 +32,6 @@#ifdef CONFIG_HOLTEK_FF -MODULE_LICENSE ("GPL" ); -MODULE_AUTHOR ("Anssi Hannula <[email protected]>" ); -MODULE_DESCRIPTION ("Force feedback support for Holtek On Line Grip based devices" ); -/* * These commands and parameters are currently known: *
@@ -223,3 +219,7 @@ static struct hid_driver holtek_driver = { .probe = holtek_probe, };module_hid_driver (holtek_driver); + +MODULE_LICENSE ("GPL" ); +MODULE_AUTHOR ("Anssi Hannula <[email protected]>" ); +MODULE_DESCRIPTION ("Force feedback support for Holtek On Line Grip based devices" );
Signature · 1 line
2.11.0
Hi,
Daniel Axtens kirjoitti 2017-11-26 06:34:
Quoted 4 lines
If you compile with:
CONFIG_HID_HOLTEK=mCONFIG_HOLTEK_FFis not set
Quoted 8 lines
You get the following warning:
WARNING: modpost: missingMODULE_LICENSE()indrivers/hid/hid-holtekff.oseeinclude/linux/module.hfor more informationFix this by moving the module info out of the #ifdef
CONFIG_HOLTEK_FFblock and into the un-guarded part of the file.Signed-off-by Daniel Axtens <[email protected]>
Thanks!
Quoted 29 lines
--- drivers/hid/hid-holtekff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/hid/hid-holtekff.c +0
-4@@ -32,10 +32,6 @@#ifdef CONFIG_HOLTEK_FF -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Anssi Hannula <[email protected]>"); -MODULE_DESCRIPTION("Force feedback support for Holtek On Line Grip based devices"); -/* * These commands and parameters are currently known: *
drivers/hid/hid-holtekff.c +4
-0@@ -223,3 +219,7 @@ static struct hid_driver holtek_driver = { .probe = holtek_probe, };module_hid_driver (holtek_driver); + +MODULE_LICENSE ("GPL" ); +MODULE_AUTHOR ("Anssi Hannula <[email protected]>" ); +MODULE_DESCRIPTION("Force feedback support for Holtek On Line Gripbased devices");
Signature · 1 line
Anssi Hannula
Quoted 8 lines · Daniel Axtens
If you compile with:
CONFIG_HID_HOLTEK=mCONFIG_HOLTEK_FFis not setYou get the following warning:
WARNING: modpost: missingMODULE_LICENSE()indrivers/hid/hid-holtekff.oseeinclude/linux/module.hfor more information
Quoted 5 lines
Fix this by moving the module info out of the #ifdef
CONFIG_HOLTEK_FFblock and into the un-guarded part of the file.Signed-off-by Daniel Axtens <[email protected]>---
Cheers,
Benjamin
Quoted 29 lines
drivers/hid/hid-holtekff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/hid/hid-holtekff.c +4
-4@@ -32,10 +32,6 @@#ifdef CONFIG_HOLTEK_FF -MODULE_LICENSE ("GPL" ); -MODULE_AUTHOR ("Anssi Hannula <[email protected]>" ); -MODULE_DESCRIPTION ("Force feedback support for Holtek On Line Grip based devices" ); -/* * These commands and parameters are currently known: * @@ -223,3 +219,7 @@ static struct hid_driver holtek_driver = { .probe = holtek_probe, };module_hid_driver (holtek_driver); + +MODULE_LICENSE ("GPL" ); +MODULE_AUTHOR ("Anssi Hannula <[email protected]>" ); +MODULE_DESCRIPTION ("Force feedback support for Holtek On Line Grip based devices" );Signature · 1 line
2.11.0
Quoted 4 lines · Daniel Axtens
If you compile with:
CONFIG_HID_HOLTEK=mCONFIG_HOLTEK_FFis not set
Quoted 8 lines
You get the following warning:
WARNING: modpost: missingMODULE_LICENSE()indrivers/hid/hid-holtekff.oseeinclude/linux/module.hfor more informationFix this by moving the module info out of the #ifdef
CONFIG_HOLTEK_FFblock and into the un-guarded part of the file.Signed-off-by Daniel Axtens <[email protected]>
Applied to for-4.15/upstream-fixes. Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs