projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
660c619
)
gpio: sim: Declare gpio_sim_hog_config_item_ops static
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 7 Mar 2022 16:38:40 +0000
(18:38 +0200)
committer
Bartosz Golaszewski
<brgl@bgdev.pl>
Tue, 8 Mar 2022 08:41:21 +0000
(09:41 +0100)
Compiler is not happy:
warning: symbol 'gpio_sim_hog_config_item_ops' was not declared. Should it be static?
Fixes:
cb8c474e79be
("gpio: sim: new testing module")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-sim.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-sim.c
b/drivers/gpio/gpio-sim.c
index
153fe79
..
bb9bb59
100644
(file)
--- a/
drivers/gpio/gpio-sim.c
+++ b/
drivers/gpio/gpio-sim.c
@@
-1322,7
+1322,7
@@
static void gpio_sim_hog_config_item_release(struct config_item *item)
kfree(hog);
}
-struct configfs_item_operations gpio_sim_hog_config_item_ops = {
+st
atic st
ruct configfs_item_operations gpio_sim_hog_config_item_ops = {
.release = gpio_sim_hog_config_item_release,
};