Skip to content
Commit c52114d9 authored by Alistair Popple's avatar Alistair Popple Committed by Linus Torvalds
Browse files

lib/test_hmm: remove set but unused page variable

The HMM selftests use atomic_check_access() to check atomic access to a
page has been revoked.  It doesn't matter if the page mapping has been
removed from the mirrored page tables as that also implies atomic access
has been revoked.  Therefore remove the unused page variable to fix this
compiler warning:

  lib/test_hmm.c:631:16: warning: variable `page' set but not used [-Wunused-but-set-variable]

Link: https://lkml.kernel.org/r/20210706025603.4059-1-apopple@nvidia.com


Fixes: b659baea ("mm: selftests for exclusive device memory")
Signed-off-by: default avatarAlistair Popple <apopple@nvidia.com>
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Reported-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Acked-by: default avatarSouptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ab7965de
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment