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

Input: add missing MODULE_DESCRIPTION() macros

On x86, make allmodconfig && make W=1 C=1 reports:
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/input/touchscreen/cyttsp_i2c_common.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/input/misc/soc_button_array.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/input/matrix-keymap.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/input/vivaldi-fmap.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/input/tests/input_test.o

Add the missing invocation of the MODULE_DESCRIPTION() macro to all
files which have a MODULE_LICENSE().

This includes drivers/input/misc/sgi_btns.c which, although it did not
produce a warning with the x86 allmodconfig configuration, may cause
this warning with other configurations when either CONFIG_SGI_IP22 or
CONFIG_SGI_IP32 is enabled.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://lore.kernel.org/r/20240609-md-drivers-input-v1-1-a2f394e0f9d8@quicinc.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Jeff Johnson and committed by
Dmitry Torokhov
e17fb91c 4654c4cc

+6
+1
drivers/input/matrix-keymap.c
··· 199 199 } 200 200 EXPORT_SYMBOL(matrix_keypad_build_keymap); 201 201 202 + MODULE_DESCRIPTION("Helpers for matrix keyboard bindings"); 202 203 MODULE_LICENSE("GPL");
+1
drivers/input/misc/sgi_btns.c
··· 128 128 }; 129 129 module_platform_driver(sgi_buttons_driver); 130 130 131 + MODULE_DESCRIPTION("SGI Indy/O2 volume button interface driver"); 131 132 MODULE_LICENSE("GPL");
+1
drivers/input/misc/soc_button_array.c
··· 620 620 }; 621 621 module_platform_driver(soc_button_driver); 622 622 623 + MODULE_DESCRIPTION("Windows-compatible SoC Button Array driver"); 623 624 MODULE_LICENSE("GPL");
+1
drivers/input/tests/input_test.c
··· 179 179 kunit_test_suite(input_test_suite); 180 180 181 181 MODULE_AUTHOR("Javier Martinez Canillas <javierm@redhat.com>"); 182 + MODULE_DESCRIPTION("KUnit test for the input core"); 182 183 MODULE_LICENSE("GPL");
+1
drivers/input/touchscreen/cyttsp_i2c_common.c
··· 81 81 EXPORT_SYMBOL_GPL(cyttsp_i2c_write_block_data); 82 82 83 83 84 + MODULE_DESCRIPTION("Cypress TrueTouch(TM) Standard Product (TTSP) I2C touchscreen driver"); 84 85 MODULE_LICENSE("GPL"); 85 86 MODULE_AUTHOR("Cypress");
+1
drivers/input/vivaldi-fmap.c
··· 36 36 } 37 37 EXPORT_SYMBOL_GPL(vivaldi_function_row_physmap_show); 38 38 39 + MODULE_DESCRIPTION("Helpers for ChromeOS Vivaldi keyboard function row mapping"); 39 40 MODULE_LICENSE("GPL");