mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm, hugetlbfs: include mm.h for vm_operations_struct
@ 2017-12-11 16:21 Arnd Bergmann
  2017-12-12  0:55 ` Stephen Rothwell
  2017-12-12  7:47 ` Michal Hocko
  0 siblings, 2 replies; 6+ messages in thread
From: Arnd Bergmann @ 2017-12-11 16:21 UTC (permalink / raw)
  To: Andrew Morton, Dan Williams, Stephen Rothwell
  Cc: Arnd Bergmann, Michal Hocko, Aneesh Kumar K.V, linux-kernel

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@arndb.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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-13  0:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-11 16:21 [PATCH] mm, hugetlbfs: include mm.h for vm_operations_struct Arnd Bergmann
2017-12-12  0:55 ` Stephen Rothwell
2017-12-12  7:47 ` Michal Hocko
2017-12-12  8:05   ` Dan Williams
2017-12-13  0:36     ` Stephen Rothwell
2017-12-12 11:48   ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®