[PATCH] include <printk.h>: include <linux/types.h> for size_t definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



size_t is used without previous definition relying on header include
order. Fix that up.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/printk.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/printk.h b/include/printk.h
index baf2cca20213..046b456a9d2b 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -2,6 +2,8 @@
 #ifndef __PRINTK_H
 #define __PRINTK_H
 
+#include <linux/types.h>
+
 #define KERN_EMERG      ""   /* system is unusable                   */
 #define KERN_ALERT      ""   /* action must be taken immediately     */
 #define KERN_CRIT       ""   /* critical conditions                  */
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux