kernel: update nvmem subsystem to the latest upstream
[openwrt/staging/dedeckeh.git] / target / linux / generic / backport-5.10 / 809-v5.19-0002-nvmem-sunplus-ocotp-staticize-sp_otp_v0.patch
1 From 1066f8156351fcd997125257cea47cf805ba4f6d Mon Sep 17 00:00:00 2001
2 From: Krzysztof Kozlowski <krzk@kernel.org>
3 Date: Mon, 21 Mar 2022 12:03:25 +0100
4 Subject: [PATCH] nvmem: sunplus-ocotp: staticize sp_otp_v0
5
6 The "sp_otp_v0" file scope variable is not used outside, so make it
7 static to fix warning:
8
9 drivers/nvmem/sunplus-ocotp.c:74:29: sparse:
10 sparse: symbol 'sp_otp_v0' was not declared. Should it be static?
11
12 Reported-by: kernel test robot <lkp@intel.com>
13 Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
14 Link: https://lore.kernel.org/r/20220321110326.44652-2-krzk@kernel.org
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 ---
17 drivers/nvmem/sunplus-ocotp.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/drivers/nvmem/sunplus-ocotp.c
21 +++ b/drivers/nvmem/sunplus-ocotp.c
22 @@ -71,7 +71,7 @@ struct sp_ocotp_data {
23 int size;
24 };
25
26 -const struct sp_ocotp_data sp_otp_v0 = {
27 +static const struct sp_ocotp_data sp_otp_v0 = {
28 .size = QAC628_OTP_SIZE,
29 };
30