Skip to contentSkip to conversation

amba/serial.h: Include types.h for resolving dependency of type bool

PATCH New Viresh Kumar 1 participant 2 messages Jan 4, 2012 – Feb 16, 2012 Arm primecell UART PL010 and PL011 drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amba/serial.h: Include types.h for resolving dependency of type bool

serial.h uses bool, but its definition is missing, as it doesn't include types.h. Fix this by including types.h

---
 include/linux/amba/serial.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/amba/serial.h +2 -0
index 514ed45..d117b29 100644
@@ -23,6 +23,8 @@
 #ifndef ASM_ARM_HARDWARE_SERIAL_AMBA_H
 #define ASM_ARM_HARDWARE_SERIAL_AMBA_H
 
+#include <linux/types.h>
+
 /* -------------------------------------------------------------------------------
  *  From AMBA UART (PL010) Block Specification
  * -------------------------------------------------------------------------------
Signature · 1 line
1.7.8.110.g4cb5d
#1 lore raw

PATCH 1/1 amba/serial.h: Include types.h for resolving dependency of type bool

Quoted 13 lines · Viresh KUMAR

serial.h uses bool, but its definition is missing, as it doesn't include types.h. Fix this by including types.h

---
 include/linux/amba/serial.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/amba/serial.h +0 -0
index 514ed45..d117b29 100644

include/linux/amba/serial.h line 30

Quoted 8 lines
include/linux/amba/serial.h +2 -0
@@ -23,6 +23,8 @@
 #ifndef ASM_ARM_HARDWARE_SERIAL_AMBA_H
 #define ASM_ARM_HARDWARE_SERIAL_AMBA_H
 
+#include <linux/types.h>
+
 /* -------------------------------------------------------------------------------
  *  From AMBA UART (PL010) Block Specification
  * -------------------------------------------------------------------------------

Any feedback?

Signature · 1 line
viresh