[PATCH 0/2] Make HWPoison helpers config-independent
From: Kaitao Cheng
Date: Thu Sep 03 2026 - 01:37:18 EST
Make the HWPoison page flag's test-and-set and test-and-clear accessors
available regardless of CONFIG_MEMORY_FAILURE. When memory failure handling
is disabled, the accessors return false, matching the absence of HWPoison
state and providing a consistent interface across configurations.
Use the config-independent interface in the pmem driver to remove its
private test_and_clear_pmem_poison() wrapper and the associated header
dependency. No functional change is intended.
Kaitao Cheng (2):
mm/page-flags: Define HWPoison test-and-change helpers unconditionally
nvdimm/pmem: Remove test_and_clear_pmem_poison()
drivers/nvdimm/pmem.c | 2 +-
drivers/nvdimm/pmem.h | 12 ------------
include/linux/page-flags.h | 1 +
3 files changed, 2 insertions(+), 13 deletions(-)
--
2.50.1 (Apple Git-155)