[U-Boot] [PATCH v1 03/11] include: kernel.h: include printk.h
AKASHI Takahiro
takahiro.akashi at linaro.org
Fri Oct 11 07:41:52 UTC 2019
Adding "printk.h" will help improve portability from linux kernel
code (in my case, lib/asn1_decoder.c).
Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
include/linux/kernel.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index a85c15d8dc28..919d12bdf89c 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -2,7 +2,9 @@
#define _LINUX_KERNEL_H
+#include <vsprintf.h> /* for printf utilities */
#include <linux/types.h>
+#include <linux/printk.h>
#define USHRT_MAX ((u16)(~0U))
#define SHRT_MAX ((s16)(USHRT_MAX>>1))
--
2.21.0
More information about the U-Boot
mailing list