Skip to content

Commit 64054eb

Browse files
Jeff JohnsonBartosz Golaszewski
authored andcommitted
gpio: add missing MODULE_DESCRIPTION() macros
On x86, make allmodconfig && make W=1 C=1 reports: WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpio/gpio-gw-pld.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpio/gpio-mc33880.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpio/gpio-pcf857x.o Add the missing invocations of the MODULE_DESCRIPTION() macro, including the one missing in gpio-pl061.c, which is not built for x86. Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Link: https://lore.kernel.org/r/20240606-md-drivers-gpio-v1-1-cb42d240ca5c@quicinc.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 90dd7de commit 64054eb

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

drivers/gpio/gpio-gw-pld.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,6 @@ static struct i2c_driver gw_pld_driver = {
130130
};
131131
module_i2c_driver(gw_pld_driver);
132132

133+
MODULE_DESCRIPTION("Gateworks I2C PLD GPIO expander");
133134
MODULE_LICENSE("GPL");
134135
MODULE_AUTHOR("Linus Walleij <linus.walleij@linaro.org>");

drivers/gpio/gpio-mc33880.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,6 @@ static void __exit mc33880_exit(void)
168168
module_exit(mc33880_exit);
169169

170170
MODULE_AUTHOR("Mocean Laboratories <info@mocean-labs.com>");
171+
MODULE_DESCRIPTION("MC33880 high-side/low-side switch GPIO driver");
171172
MODULE_LICENSE("GPL v2");
172173

drivers/gpio/gpio-pcf857x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,5 +438,6 @@ static void __exit pcf857x_exit(void)
438438
}
439439
module_exit(pcf857x_exit);
440440

441+
MODULE_DESCRIPTION("Driver for pcf857x, pca857x, and pca967x I2C GPIO expanders");
441442
MODULE_LICENSE("GPL");
442443
MODULE_AUTHOR("David Brownell");

drivers/gpio/gpio-pl061.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,5 @@ static struct amba_driver pl061_gpio_driver = {
438438
};
439439
module_amba_driver(pl061_gpio_driver);
440440

441+
MODULE_DESCRIPTION("Driver for the ARM PrimeCell(tm) General Purpose Input/Output (PL061)");
441442
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)