projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f003b
)
powerpc/mm: drop #ifdef CONFIG_MMU in is_ioremap_addr()
author
Christophe Leroy
<christophe.leroy@c-s.fr>
Wed, 21 Aug 2019 10:13:32 +0000
(10:13 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 18 Nov 2019 11:27:51 +0000
(22:27 +1100)
powerpc always selects CONFIG_MMU and CONFIG_MMU is not checked
anywhere else in powerpc code.
Drop the #ifdef and the alternative part of is_ioremap_addr()
Fixes: 9bd3bb6703d8 ("mm/nvdimm: add is_ioremap_addr and use that to check ioremap address")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/de395e444fb8dd7a6365c3314d78e15ebb3d7d1b.1566382245.git.christophe.leroy@c-s.fr
arch/powerpc/include/asm/pgtable.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/pgtable.h
b/arch/powerpc/include/asm/pgtable.h
index 4053b2ab427cc5579a43fcd16971d9739b5db2dc..0e4ec8cc37b7b67d4200339fb7fa04ac07fcdce2 100644
(file)
--- a/
arch/powerpc/include/asm/pgtable.h
+++ b/
arch/powerpc/include/asm/pgtable.h
@@
-157,13
+157,9
@@
static inline bool pgd_is_leaf(pgd_t pgd)
#define is_ioremap_addr is_ioremap_addr
static inline bool is_ioremap_addr(const void *x)
{
-#ifdef CONFIG_MMU
unsigned long addr = (unsigned long)x;
return addr >= IOREMAP_BASE && addr < IOREMAP_END;
-#else
- return false;
-#endif
}
#endif /* CONFIG_PPC64 */