[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171211162243.233177-1-arnd@arndb.de>
Date: Mon, 11 Dec 2017 17:21:27 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Andrew Morton <akpm@...ux-foundation.org>,
Dan Williams <dan.j.williams@...el.com>,
Stephen Rothwell <sfr@...b.auug.org.au>
Cc: Arnd Bergmann <arnd@...db.de>, Michal Hocko <mhocko@...e.com>,
"Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH] mm, hugetlbfs: include mm.h for vm_operations_struct
The infiniband umem code causes a build failure in some configurations:
In file included from drivers/infiniband/core/umem_odp.c:41:0:
include/linux/hugetlb.h: In function 'vma_kernel_pagesize':
include/linux/hugetlb.h:262:32: error: dereferencing pointer to incomplete type 'const struct vm_operations_struct'
Including the header file that defines the structure is sufficient to
avoid this.
Fixes: ac9284a6b670 ("mm, hugetlbfs: introduce ->pagesize() to vm_operations_struct")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
include/linux/hugetlb.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index b0f1f6768336..082ff47201be 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -9,6 +9,7 @@
#include <linux/cgroup.h>
#include <linux/list.h>
#include <linux/kref.h>
+#include <linux/mm.h>
#include <asm/pgtable.h>
struct ctl_table;
--
2.9.0
Powered by blists - more mailing lists