> On Sep 3, 2026, at 13:35, Kaitao Cheng <[email protected]> wrote:
> 
> From: Kaitao Cheng <[email protected]>
> 
> TestClearPageHWPoison() is now defined regardless of whether
> CONFIG_MEMORY_FAILURE is enabled, returning false when memory failure
> handling is unavailable.
> 
> The test_and_clear_pmem_poison() wrapper duplicates this configuration
> handling and has no other pmem-specific behavior.
> 
> Call TestClearPageHWPoison() directly and remove the redundant wrapper.
> This also removes the need to include page-flags.h from pmem.h.
> 
> No functional change is intended.
> 
> Signed-off-by: Kaitao Cheng <[email protected]>

The code becomes simpler.

Acked-by: Muchun Song <[email protected]>

Thanks.


Reply via email to