Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1522725 > unrolled thread

[PATCH] mm: cma: Make linux/cma.h standalone includible

Started byThierry Reding <thierry.reding@gmail.com>
First post2016-11-15 14:40 +0100
Last post2016-11-15 14:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] mm: cma: Make linux/cma.h standalone includible Thierry Reding <thierry.reding@gmail.com> - 2016-11-15 14:40 +0100

#1522725 — [PATCH] mm: cma: Make linux/cma.h standalone includible

FromThierry Reding <thierry.reding@gmail.com>
Date2016-11-15 14:40 +0100
Subject[PATCH] mm: cma: Make linux/cma.h standalone includible
Message-ID<sDM7T-5vB-7@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web