mm: provide a print_vma_addr stub for !CONFIG_MMU
authorChristoph Hellwig <[email protected]>
Tue, 16 Jul 2019 23:26:30 +0000 (16:26 -0700)
committerLinus Torvalds <[email protected]>
Wed, 17 Jul 2019 02:23:21 +0000 (19:23 -0700)
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Vladimir Murzin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mm.h

index 0389c34ac5297595c53833eb379bc9396a164dd0..74797ed20c2cbb16cf70ef03fe9a93029b0921cf 100644 (file)
@@ -2767,7 +2767,13 @@ extern int randomize_va_space;
 #endif
 
 const char * arch_vma_name(struct vm_area_struct *vma);
+#ifdef CONFIG_MMU
 void print_vma_addr(char *prefix, unsigned long rip);
+#else
+static inline void print_vma_addr(char *prefix, unsigned long rip)
+{
+}
+#endif
 
 void *sparse_buffer_alloc(unsigned long size);
 struct page *sparse_mem_map_populate(unsigned long pnum, int nid,