[PATCH] x86: mark arch_ioremap_p{m,u}d_supported() __init

From: Jan Beulich
Date: Thu May 28 2015 - 04:29:42 EST


... as their only caller is.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
arch/x86/mm/ioremap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- 4.1-rc5/arch/x86/mm/ioremap.c
+++ 4.1-rc5-x86-ioremap-huge-supported/arch/x86/mm/ioremap.c
@@ -331,7 +331,7 @@ void iounmap(volatile void __iomem *addr
}
EXPORT_SYMBOL(iounmap);

-int arch_ioremap_pud_supported(void)
+int __init arch_ioremap_pud_supported(void)
{
#ifdef CONFIG_X86_64
return cpu_has_gbpages;
@@ -340,7 +340,7 @@ int arch_ioremap_pud_supported(void)
#endif
}

-int arch_ioremap_pmd_supported(void)
+int __init arch_ioremap_pmd_supported(void)
{
return cpu_has_pse;
}



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/