]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ia64: salinfo: placate defined-but-not-used warning
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 23 Feb 2023 03:43:09 +0000 (19:43 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Jul 2023 10:17:05 +0000 (12:17 +0200)
commit90b23142644da4602eea69d8b0ee59e17190e0ed
tree505c1502efe090c5af24df77aa5ce3dea40124b3
parent74853617a8ae3e948eb30148f1b49c5bd4fefd7f
ia64: salinfo: placate defined-but-not-used warning

BugLink: https://bugs.launchpad.net/bugs/2025067
[ Upstream commit 0de155752b152d6bcd96b5b5bf20af336abd183a ]

When CONFIG_PROC_FS is not set, proc_salinfo_show() is not used.  Mark the
function as __maybe_unused to quieten the warning message.

../arch/ia64/kernel/salinfo.c:584:12: warning: 'proc_salinfo_show' defined but not used [-Wunused-function]
  584 | static int proc_salinfo_show(struct seq_file *m, void *v)
      |            ^~~~~~~~~~~~~~~~~

Link: https://lkml.kernel.org/r/20230223034309.13375-1-rdunlap@infradead.org
Fixes: 3f3942aca6da ("proc: introduce proc_create_single{,_data}")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/ia64/kernel/salinfo.c