Skip to content

Commit

Permalink
gpio: sim: Declare gpio_sim_hog_config_item_ops static
Browse files Browse the repository at this point in the history
Compiler is not happy:

  warning: symbol 'gpio_sim_hog_config_item_ops' was not declared. Should it be static?

Fixes: cb8c474 ("gpio: sim: new testing module")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
  • Loading branch information
Andy Shevchenko authored and Bartosz Golaszewski committed Mar 8, 2022
1 parent 660c619 commit a9a5b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
static struct configfs_item_operations gpio_sim_hog_config_item_ops = {
.release = gpio_sim_hog_config_item_release,
};

Expand Down

0 comments on commit a9a5b72

Please sign in to comment.