projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfcc644
)
[ARM] 5272/1: remove conditional compilation in show_pte()
author
Nicolas Pitre
<nico@cam.org>
Tue, 30 Sep 2008 15:10:11 +0000
(16:10 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 30 Sep 2008 15:41:04 +0000
(16:41 +0100)
The PTRS_PER_PMD != 1 condition can be evaluated with C code and
optimized at compile time.
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/fault.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mm/fault.c
b/arch/arm/mm/fault.c
index fcdae537a28f09e894686d758652a894ca19c1c5..2df8d9facf5741c060bb9f028c93b7c3bbe33a6e 100644
(file)
--- a/
arch/arm/mm/fault.c
+++ b/
arch/arm/mm/fault.c
@@
-72,9
+72,8
@@
void show_pte(struct mm_struct *mm, unsigned long addr)
}
pmd = pmd_offset(pgd, addr);
-#if PTRS_PER_PMD != 1
- printk(", *pmd=%08lx", pmd_val(*pmd));
-#endif
+ if (PTRS_PER_PMD != 1)
+ printk(", *pmd=%08lx", pmd_val(*pmd));
if (pmd_none(*pmd))
break;