Commit 1066f815 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman

nvmem: sunplus-ocotp: staticize sp_otp_v0

The "sp_otp_v0" file scope variable is not used outside, so make it
static to fix warning:

  drivers/nvmem/sunplus-ocotp.c:74:29: sparse:
    sparse: symbol 'sp_otp_v0' was not declared. Should it be static?
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20220321110326.44652-2-krzk@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6bd0ffea
...@@ -71,7 +71,7 @@ struct sp_ocotp_data { ...@@ -71,7 +71,7 @@ struct sp_ocotp_data {
int size; int size;
}; };
const struct sp_ocotp_data sp_otp_v0 = { static const struct sp_ocotp_data sp_otp_v0 = {
.size = QAC628_OTP_SIZE, .size = QAC628_OTP_SIZE,
}; };
......
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