]> Git Repo - linux.git/commitdiff
tools/testing/selftests/vm/hmm-tests.c: fix build
authorAndrew Morton <[email protected]>
Wed, 3 Aug 2022 01:03:03 +0000 (18:03 -0700)
committerAndrew Morton <[email protected]>
Wed, 3 Aug 2022 18:40:53 +0000 (11:40 -0700)
hmm-tests.c:1607:42: error: 'HMM_DMIRROR_MIGRATE' undeclared (first use in this function); did you mean 'HMM_DMIRROR_WRITE'?

Fixes: f6c3e1ae0114cd0 ("mm/hmm: add a test for cross device private faults")
Reported-by: kernel test robot <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Cc: Alistair Popple <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
tools/testing/selftests/vm/hmm-tests.c

index 939a33dc5dc6be33ca9dedaf357faa9bd6af81f3..529f53b402963354e247ac7d89b3aa1291d82679 100644 (file)
@@ -1604,7 +1604,7 @@ TEST_F(hmm2, double_map)
                ASSERT_EQ(ptr[i], i);
 
        /* Migrate pages to device 1 and try to read from device 0. */
-       ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_MIGRATE, buffer, npages);
+       ret = hmm_migrate_sys_to_dev(self->fd1, buffer, npages);
        ASSERT_EQ(ret, 0);
        ASSERT_EQ(buffer->cpages, npages);
 
This page took 0.06509 seconds and 4 git commands to generate.