Skip to content

Commit

Permalink
x86: fix pageattr-test
Browse files Browse the repository at this point in the history
We changed the interface of some pageattr, this patch makes
pageattr-test compile.

Signed-off-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Shaohua Li authored and Ingo Molnar committed Aug 21, 2008
1 parent bd07928 commit ab7e792
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/x86/mm/pageattr-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static int pageattr_test(void)
unsigned int level;
int i, k;
int err;
unsigned long test_addr;

if (print)
printk(KERN_INFO "CPA self-test:\n");
Expand Down Expand Up @@ -172,7 +173,8 @@ static int pageattr_test(void)
continue;
}

err = change_page_attr_set(addr[i], len[i], PAGE_TESTBIT);
test_addr = addr[i];
err = change_page_attr_set(&test_addr, len[i], PAGE_TESTBIT, 0);
if (err < 0) {
printk(KERN_ERR "CPA %d failed %d\n", i, err);
failed++;
Expand Down Expand Up @@ -204,7 +206,8 @@ static int pageattr_test(void)
failed++;
continue;
}
err = change_page_attr_clear(addr[i], len[i], PAGE_TESTBIT);
test_addr = addr[i];
err = change_page_attr_clear(&test_addr, len[i], PAGE_TESTBIT, 0);
if (err < 0) {
printk(KERN_ERR "CPA reverting failed: %d\n", err);
failed++;
Expand Down

0 comments on commit ab7e792

Please sign in to comment.