* [PATCH] mm: cma: Make linux/cma.h standalone includible
@ 2016-11-15 13:32 Thierry Reding
0 siblings, 0 replies; only message in thread
From: Thierry Reding @ 2016-11-15 13:32 UTC (permalink / raw)
To: Andrew Morton; +Cc: Marek Szyprowski, linux-kernel
From: Thierry Reding <treding@nvidia.com>
The header uses types and definitions from the linux/init.h as well as
linux/types.h headers without explicitly including them. This causes a
failure to compile if they are not implicitly pulled in by includers.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
include/linux/cma.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/cma.h b/include/linux/cma.h
index 29f9e774ab76..6f0a91b37f68 100644
--- a/include/linux/cma.h
+++ b/include/linux/cma.h
@@ -1,6 +1,9 @@
#ifndef __CMA_H__
#define __CMA_H__
+#include <linux/init.h>
+#include <linux/types.h>
+
/*
* There is always at least global CMA area and a few optional
* areas configured in kernel .config.
--
2.10.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-15 13:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 13:32 [PATCH] mm: cma: Make linux/cma.h standalone includible Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).