Skip to content

Commit 360614c

Browse files
committed
tools/testing/selftests/vm/hmm-tests.c: fix build
hmm-tests.c:1607:42: error: 'HMM_DMIRROR_MIGRATE' undeclared (first use in this function); did you mean 'HMM_DMIRROR_WRITE'? Fixes: f6c3e1a ("mm/hmm: add a test for cross device private faults") Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Ralph Campbell <rcampbell@nvidia.com> Cc: Alistair Popple <apopple@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 1a44131 commit 360614c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/vm/hmm-tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ TEST_F(hmm2, double_map)
16041604
ASSERT_EQ(ptr[i], i);
16051605

16061606
/* Migrate pages to device 1 and try to read from device 0. */
1607-
ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_MIGRATE, buffer, npages);
1607+
ret = hmm_migrate_sys_to_dev(self->fd1, buffer, npages);
16081608
ASSERT_EQ(ret, 0);
16091609
ASSERT_EQ(buffer->cpages, npages);
16101610

0 commit comments

Comments
 (0)