ia64: salinfo: placate defined-but-not-used warning
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 23 Feb 2023 03:43:09 +0000 (19:43 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 8 Apr 2023 20:45:36 +0000 (13:45 -0700)
commit0de155752b152d6bcd96b5b5bf20af336abd183a
tree4b08b8c10d4387690fa5fccd2ba3d53c7d674b4a
parent58deeb4ef3b054498747d0929d94ac53ab90981f
ia64: salinfo: placate defined-but-not-used warning

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>
arch/ia64/kernel/salinfo.c