813-v6.5-0001-nvmem-imx-ocotp-set-varaiable-imx_ocotp_layout-stora.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From eebc6573ad940b62a87776db3917e912b4f52d78 Mon Sep 17 00:00:00 2001
  2. From: Tom Rix <[email protected]>
  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. smatch reports
  7. drivers/nvmem/imx-ocotp.c:599:21: warning: symbol
  8. 'imx_ocotp_layout' was not declared. Should it be static?
  9. This variable is only used in one file so should be static.
  10. Signed-off-by: Tom Rix <[email protected]>
  11. Signed-off-by: Srinivas Kandagatla <[email protected]>
  12. Message-ID: <[email protected]>
  13. Signed-off-by: Greg Kroah-Hartman <[email protected]>
  14. ---
  15. drivers/nvmem/imx-ocotp.c | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. --- a/drivers/nvmem/imx-ocotp.c
  18. +++ b/drivers/nvmem/imx-ocotp.c
  19. @@ -596,7 +596,7 @@ static void imx_ocotp_fixup_cell_info(st
  20. cell->read_post_process = imx_ocotp_cell_pp;
  21. }
  22. -struct nvmem_layout imx_ocotp_layout = {
  23. +static struct nvmem_layout imx_ocotp_layout = {
  24. .fixup_cell_info = imx_ocotp_fixup_cell_info,
  25. };