Re: [mmotm:master 52/197] mm/cma_debug.c:71:4: error: invalid use of undefined type 'struct page'

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

 



I have just encoutered the same and the following patch should fix it:
---
>From 8996f8ddfcd2a1424c2a2e832d7c944a08c83f5a Mon Sep 17 00:00:00 2001
From: Michal Hocko <mhocko@xxxxxxx>
Date: Thu, 26 Feb 2015 13:28:55 +0100
Subject: [PATCH] mmotm: mm-cma-release-trigger-fix.patch
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

allmodconfig fails with
mm/cma_debug.c: In function ‘cma_free_mem’:
mm/cma_debug.c:71:4: error: invalid use of undefined type ‘struct page’
    mem->p += count;

Fix it by including mm_types.h

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

diff --git a/mm/cma_debug.c b/mm/cma_debug.c
index fd379aeedaea..ec915e6f17ee 100644
--- a/mm/cma_debug.c
+++ b/mm/cma_debug.c
@@ -10,6 +10,7 @@
 #include <linux/list.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
+#include <linux/mm_types.h>
 
 #include "cma.h"
 
-- 
2.1.4

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]