Thread (20 messages) 20 messages, 3 authors, 2020-08-21

Re: [PATCH v6 06/12] powerpc: inline huge vmap supported functions

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2020-08-21 20:15:26
Also in: linux-arch, linux-mm, lkml

On Sat, 22 Aug 2020 01:12:10 +1000 Nicholas Piggin [off-list ref] wrote:
 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
-bool arch_vmap_p4d_supported(pgprot_t prot);
-bool arch_vmap_pud_supported(pgprot_t prot);
-bool arch_vmap_pmd_supported(pgprot_t prot);
+static inline bool arch_vmap_p4d_supported(pgprot_t prot)
+{
+	return false;
+}
+
+static inline bool arch_vmap_pud_supported(pgprot_t prot)
+{
+	/* HPT does not cope with large pages in the vmalloc area */
+	return radix_enabled();
+}
+
+static inline bool arch_vmap_pmd_supported(pgprot_t prot)
+{
+	return radix_enabled();
+}
 #endif
Oh.  OK, whatever ;)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help