Re: [PATCH -next] lib/test_hmm: check page after calling xa_untag_pointer()

From: Ralph Campbell
Date: Wed May 26 2021 - 15:59:36 EST


On 5/26/21 7:05 AM, Yang Yingliang wrote:

Check page after calling xa_untag_pointer() to fix compile warning:
lib/test_hmm.c:631:16: warning: variable ‘page’ set but not used [-Wunused-but-set-variable]
631 | struct page *page;
| ^~~~

Fixes: 8b2a105c3794 ("mm: selftests for exclusive device memory")
Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
Reviewed-by: Ralph Campbell <rcampbell@xxxxxxxxxx>