]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:47 +0000 (11:35 +0200)
commitd449423f33a68ca1a897abece45f5bfc36f2d16c
treec10e8bc87df5baca5bc7dcd4779d22a587f6f141
parentba2a54c12d4d269de61845a29c3814af9be406e6
ia64: salinfo: placate defined-but-not-used warning

[ 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: 7e8abfe12062 ("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>
arch/ia64/kernel/salinfo.c