diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-15 19:19:55 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-26 15:45:45 -0500 |
commit | 69529c0eb76469168f1dd5851f363dbab17ce8fd (patch) | |
tree | c37e90dc48384e372536e72a4101c768a5ede014 /arch/arm/kernel | |
parent | b510b049b549500816280f7ceaa087cfefdec581 (diff) |
ARM: pgtable: directly pass pgd/pmd/pte to their error functions
Rather than passing the pte value to __pte_error, pass the raw pte_t
cookie instead. Do the same for pmd and pgd functions.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/traps.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 446aee97436f..354cd4ce400a 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c | |||
@@ -708,19 +708,19 @@ void __readwrite_bug(const char *fn) | |||
708 | } | 708 | } |
709 | EXPORT_SYMBOL(__readwrite_bug); | 709 | EXPORT_SYMBOL(__readwrite_bug); |
710 | 710 | ||
711 | void __pte_error(const char *file, int line, unsigned long val) | 711 | void __pte_error(const char *file, int line, pte_t pte) |
712 | { | 712 | { |
713 | printk("%s:%d: bad pte %08lx.\n", file, line, val); | 713 | printk("%s:%d: bad pte %08lx.\n", file, line, pte_val(pte)); |
714 | } | 714 | } |
715 | 715 | ||
716 | void __pmd_error(const char *file, int line, unsigned long val) | 716 | void __pmd_error(const char *file, int line, pmd_t pmd) |
717 | { | 717 | { |
718 | printk("%s:%d: bad pmd %08lx.\n", file, line, val); | 718 | printk("%s:%d: bad pmd %08lx.\n", file, line, pmd_val(pmd)); |
719 | } | 719 | } |
720 | 720 | ||
721 | void __pgd_error(const char *file, int line, unsigned long val) | 721 | void __pgd_error(const char *file, int line, pgd_t pgd) |
722 | { | 722 | { |
723 | printk("%s:%d: bad pgd %08lx.\n", file, line, val); | 723 | printk("%s:%d: bad pgd %08lx.\n", file, line, pgd_val(pgd)); |
724 | } | 724 | } |
725 | 725 | ||
726 | asmlinkage void __div0(void) | 726 | asmlinkage void __div0(void) |