diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/pageattr-test.c | 3 | ||||
-rw-r--r-- | arch/x86/mm/pageattr.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c index 0dcd42eb94e6..d4aa503caaa2 100644 --- a/arch/x86/mm/pageattr-test.c +++ b/arch/x86/mm/pageattr-test.c | |||
@@ -221,8 +221,7 @@ static int pageattr_test(void) | |||
221 | failed += print_split(&sc); | 221 | failed += print_split(&sc); |
222 | 222 | ||
223 | if (failed) { | 223 | if (failed) { |
224 | printk(KERN_ERR "NOT PASSED. Please report.\n"); | 224 | WARN(1, KERN_ERR "NOT PASSED. Please report.\n"); |
225 | WARN_ON(1); | ||
226 | return -EINVAL; | 225 | return -EINVAL; |
227 | } else { | 226 | } else { |
228 | if (print) | 227 | if (print) |
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 65c6e46bf059..ba24537d69dd 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -592,10 +592,9 @@ repeat: | |||
592 | if (!pte_val(old_pte)) { | 592 | if (!pte_val(old_pte)) { |
593 | if (!primary) | 593 | if (!primary) |
594 | return 0; | 594 | return 0; |
595 | printk(KERN_WARNING "CPA: called for zero pte. " | 595 | WARN(1, KERN_WARNING "CPA: called for zero pte. " |
596 | "vaddr = %lx cpa->vaddr = %lx\n", address, | 596 | "vaddr = %lx cpa->vaddr = %lx\n", address, |
597 | cpa->vaddr); | 597 | cpa->vaddr); |
598 | WARN_ON(1); | ||
599 | return -EINVAL; | 598 | return -EINVAL; |
600 | } | 599 | } |
601 | 600 | ||