Skip to contentSkip to conversation

of: Explicitly include linux/types.h in of_graph.h

PATCH Applied Mark Brown 4 participants 4 messages Mar 26, 2015 1 message not in the archive Device tree

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 of: Explicitly include linux/types.h in of_graph.h

In current -next of_graph.h fails to build due to it relying on linux/types.h without explicitly including it:

../include/linux/of_graph.h:43:71: error: unknown type name 'u32'

caused by bfe446e37c4e (of: Add of_graph_get_port_by_id function). Add an explicit inclusion to fix this.

---
 include/linux/of_graph.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/of_graph.h +2 -0
index 3c1c95a39e0c..7bc92e050608 100644
@@ -14,6 +14,8 @@
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
 
+#include <linux/types.h>
+
 /**
  * struct of_endpoint - the OF graph endpoint data structure
  * @port: identifier (value of reg property) of a port this endpoint belongs to
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1427388475-29096-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org

#2 lore raw

Hi Mark,

Thank you for the patch.

Quoted 9 lines · On Thursday 26 March 2015 09:47:55 Mark Brown wrote:

In current -next of_graph.h fails to build due to it relying on linux/types.h without explicitly including it:

../include/linux/of_graph.h:43:71: error: unknown type name 'u32'

caused by bfe446e37c4e (of: Add of_graph_get_port_by_id function). Add an explicit inclusion to fix this.

Quoted 18 lines
---
 include/linux/of_graph.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/of_graph.h +2 -0
index 3c1c95a39e0c..7bc92e050608 100644
@@ -14,6 +14,8 @@
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
 
+#include <linux/types.h>
+
 /**
  * struct of_endpoint - the OF graph endpoint data structure
  * @port: identifier (value of reg property) of a port this endpoint

belongs to

Signature · 8 lines
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by
#3 lore raw
In reply to a message not in the archive

Am Donnerstag, den 26.03.2015, 09:47 -0700 schrieb Mark Brown:

Quoted 18 lines

In current -next of_graph.h fails to build due to it relying on linux/types.h without explicitly including it:

../include/linux/of_graph.h:43:71: error: unknown type name 'u32'

caused by bfe446e37c4e (of: Add of_graph_get_port_by_id function). Add an explicit inclusion to fix this.

---
 include/linux/of_graph.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/of_graph.h +0 -0
index 3c1c95a39e0c..7bc92e050608 100644

include/linux/of_graph.h line 21

Quoted 8 lines
include/linux/of_graph.h +2 -0
@@ -14,6 +14,8 @@
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
 
+#include <linux/types.h>
+
 /**
  * struct of_endpoint - the OF graph endpoint data structure
  * @port: identifier (value of reg property) of a port this endpoint belongs to

Thanks!
Philipp

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#4 lore raw
In reply to a message not in the archive
Quoted 9 lines · Mark Brown

In current -next of_graph.h fails to build due to it relying on linux/types.h without explicitly including it:

../include/linux/of_graph.h:43:71: error: unknown type name 'u32'

caused by bfe446e37c4e (of: Add of_graph_get_port_by_id function). Add an explicit inclusion to fix this.

Applied. Thanks.

Rob

Quoted 18 lines
---
 include/linux/of_graph.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/of_graph.h +2 -1
index 3c1c95a39e0c..7bc92e050608 100644
@@ -14,6 +14,8 @@
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
 
+#include <linux/types.h>
+
 /**
  * struct of_endpoint - the OF graph endpoint data structure
  * @port: identifier (value of reg property) of a port this endpoint belongs to
--
Quoted 2 lines

2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html