+15
−6
+11
−2
+12
−8
Loading
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB0OV7 -------------------------------- There is a mechanism in the kernel to recover from uncorrectable memory errors, ARCH_HAS_COPY_MC(eg, Machine Check Safe Memory Copy on x86), which is already used in NVDIMM or core-mm paths(eg, CoW, khugepaged, coredump, ksm copy), see copy_mc_to_{user,kernel}, copy_[user]_highpage_mc callers. These two callers should return value to check whether the copy is successful. In the current implementation, copy_[user]_highpage_mc is not have return value. This patch adds return value for copy_[user]_highpage_mc. Signed-off-by:Tong Tiangen <tongtiangen@huawei.com>