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

Ahmad Fatoum a.fatoum at pengutronix.de
Sat Jan 8 09:14:37 PST 2022


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

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 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




More information about the barebox mailing list