[PATCH] mm-cma-make-kmemleak-ignore-cma-regions-fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



include linux/io.h to get phys_to_virt declaration and fix the following
compile error:
mm/cma.c:288:4: error: implicit declaration of function ‘phys_to_virt’ [-Werror=implicit-function-declaration]
    kmemleak_ignore(phys_to_virt(addr));

Signed-off-by: Michal Hocko <mhocko@xxxxxxx>
---
 mm/cma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/cma.c b/mm/cma.c
index 9bc687a20495..daec407d1057 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -33,6 +33,7 @@
 #include <linux/log2.h>
 #include <linux/cma.h>
 #include <linux/highmem.h>
+#include <linux/io.h>
 
 struct cma {
 	unsigned long	base_pfn;
-- 
2.1.1

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




[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux