]> www.infradead.org Git - nvme.git/commit
mm/memory-failure: don't export hwpoison_filter() when !CONFIG_HWPOISON_INJECT
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 12 Jun 2024 07:18:29 +0000 (15:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:11 +0000 (19:30 -0700)
commit5a8b01be4f6f50838b094509a49e1e5ed32c1c5c
tree219a0125c68735eb7d9ed9d9dd69e022b0dbf9e1
parent4d64ab2f407a2ace43c799e84df7f169422d7a4b
mm/memory-failure: don't export hwpoison_filter() when !CONFIG_HWPOISON_INJECT

When CONFIG_HWPOISON_INJECT is not enabled, there is no user of the
hwpoison_filter() outside memory-failure.  So there is no need to export
it in that case.

Link: https://lkml.kernel.org/r/20240612071835.157004-8-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406070136.hGQwVbsv-lkp@intel.com/
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c