Commit a8642cd1 authored by Tom Rix's avatar Tom Rix Committed by Greg Kroah-Hartman

nvmem: layouts: sl28vpd: set varaiable sl28vpd_layout storage-class-specifier to static

smatch reports
drivers/nvmem/layouts/sl28vpd.c:144:21: warning: symbol
  'sl28vpd_layout' was not declared. Should it be static?

This variable is only used in one file so it should be static.
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230404172148.82422-41-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b13e4b6
...@@ -141,7 +141,7 @@ static const struct of_device_id sl28vpd_of_match_table[] = { ...@@ -141,7 +141,7 @@ static const struct of_device_id sl28vpd_of_match_table[] = {
}; };
MODULE_DEVICE_TABLE(of, sl28vpd_of_match_table); MODULE_DEVICE_TABLE(of, sl28vpd_of_match_table);
struct nvmem_layout sl28vpd_layout = { static struct nvmem_layout sl28vpd_layout = {
.name = "sl28-vpd", .name = "sl28-vpd",
.of_match_table = sl28vpd_of_match_table, .of_match_table = sl28vpd_of_match_table,
.add_cells = sl28vpd_add_cells, .add_cells = sl28vpd_add_cells,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment