summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-08 18:14:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-10 09:56:56 +0100
commitc84e7dbc79bda2b62e74a5265e2be1fd2604e02b (patch)
tree1aa4cd2de749ca101ea136312e0734fbbe80763f /include
parent4bd849689560bd386d10f946910ae2184d42f8d2 (diff)
downloadbarebox-c84e7dbc79bda2b62e74a5265e2be1fd2604e02b.tar.gz
barebox-c84e7dbc79bda2b62e74a5265e2be1fd2604e02b.tar.xz
include <printk.h>: include <linux/types.h> for size_t definition
size_t is used without previous definition relying on header include order. Fix that up. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220108171437.586532-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/printk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/printk.h b/include/printk.h
index baf2cca202..046b456a9d 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 */