Skip to content

Commit c4028fa

Browse files
chleroympe
authored andcommitted
powerpc/mm: drop #ifdef CONFIG_MMU in is_ioremap_addr()
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: 9bd3bb6 ("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
1 parent 43f003b commit c4028fa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/powerpc/include/asm/pgtable.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,9 @@ static inline bool pgd_is_leaf(pgd_t pgd)
157157
#define is_ioremap_addr is_ioremap_addr
158158
static inline bool is_ioremap_addr(const void *x)
159159
{
160-
#ifdef CONFIG_MMU
161160
unsigned long addr = (unsigned long)x;
162161

163162
return addr >= IOREMAP_BASE && addr < IOREMAP_END;
164-
#else
165-
return false;
166-
#endif
167163
}
168164
#endif /* CONFIG_PPC64 */
169165

0 commit comments

Comments
 (0)