Re: [PATCH] pmem: use TestClearPageHWPoison() directly

From: Kefeng Wang
Date: Fri Nov 25 2022 - 20:38:56 EST



On 2022/11/26 8:41, Andrew Morton wrote:
On Fri, 25 Nov 2022 19:53:08 +0800 Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> wrote:

Add TESTSCFLAG_FALSE(HWPoison, hwpoison) for HWPoison in
page flags, then drop privite test_and_clear_pmem_poison().
Why?
Just a cleanup,the TestClearPageHWPoison is used in pmem.c, but
it has own stub when MEMORY_FAILURE not enabled, so add TESTSCFLAG_FALSE()
for HWpoison in case similar scenario, if there are some rules about
it,please ignore it.
.