[PATCH v2 3/9] printk: Add missing include/declaration

Markus Pargmann mpa at pengutronix.de
Tue Dec 8 01:39:26 PST 2015


There are functions or structs used that do need these.

Signed-off-by: Markus Pargmann <mpa at pengutronix.de>
---
 include/printk.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/printk.h b/include/printk.h
index a27ad514cfe1..822f64c61f7d 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -1,6 +1,8 @@
 #ifndef __PRINTK_H
 #define __PRINTK_H
 
+#include <linux/list.h>
+
 #define MSG_EMERG      0    /* system is unusable */
 #define MSG_ALERT      1    /* action must be taken immediately */
 #define MSG_CRIT       2    /* critical conditions */
@@ -20,6 +22,7 @@
 #endif
 
 /* debugging and troubleshooting/diagnostic helpers. */
+struct device_d;
 
 #ifndef CONFIG_CONSOLE_NONE
 int dev_printf(int level, const struct device_d *dev, const char *format, ...)
-- 
2.6.2




More information about the barebox mailing list