Skip to contentSkip to conversation

mm: cma: make linux/cma.h standalone includible

PATCH New [email protected] 1 participant 1 message Dec 13, 2016 MM misc

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 53/123 mm: cma: make linux/cma.h standalone includible

From: Thierry Reding <[email protected]>
Subject: mm: cma: make linux/cma.h standalone includible

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.

---

 include/linux/cma.h |    3 +++
 1 file changed, 3 insertions(+)
include/linux/cma.h renamed from include/linux/cma.h~mm-cma-make-linux-cmah-standalone-includible +3 -0
diff -puN include/linux/cma.h~mm-cma-make-linux-cmah-standalone-includible 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.

_