38cfccd5ef9b292e1802b7e7bcbf2a66b72593a6
[openwrt/staging/xback.git] /
1 From eebc6573ad940b62a87776db3917e912b4f52d78 Mon Sep 17 00:00:00 2001
2 From: Tom Rix <trix@redhat.com>
3 Date: Sun, 11 Jun 2023 15:03:05 +0100
4 Subject: [PATCH] nvmem: imx-ocotp: set varaiable imx_ocotp_layout
5 storage-class-specifier to static
6
7 smatch reports
8 drivers/nvmem/imx-ocotp.c:599:21: warning: symbol
9 'imx_ocotp_layout' was not declared. Should it be static?
10
11 This variable is only used in one file so should be static.
12
13 Signed-off-by: Tom Rix <trix@redhat.com>
14 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
15 Message-ID: <20230611140330.154222-2-srinivas.kandagatla@linaro.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 ---
18 drivers/nvmem/imx-ocotp.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/nvmem/imx-ocotp.c
22 +++ b/drivers/nvmem/imx-ocotp.c
23 @@ -596,7 +596,7 @@ static void imx_ocotp_fixup_cell_info(st
24 cell->read_post_process = imx_ocotp_cell_pp;
25 }
26
27 -struct nvmem_layout imx_ocotp_layout = {
28 +static struct nvmem_layout imx_ocotp_layout = {
29 .fixup_cell_info = imx_ocotp_fixup_cell_info,
30 };
31