projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1872311
)
include: kernel.h: include printk.h
author
AKASHI Takahiro
<takahiro.akashi@linaro.org>
Wed, 13 Nov 2019 00:44:51 +0000
(09:44 +0900)
committer
Tom Rini
<trini@konsulko.com>
Fri, 6 Dec 2019 21:44:19 +0000
(16:44 -0500)
Adding "printk.h" will help improve portability from linux kernel
code (in my case, lib/asn1_decoder.c and others) where printf and
pr_* variant functions are used.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
include/linux/kernel.h
patch
|
blob
|
history
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index 5c7e5f635b1a1e030907c2776a6254cad0c2682a..564819a1c0a7257cc080fce9e0c53dfd47b64e97 100644
(file)
--- a/
include/linux/kernel.h
+++ b/
include/linux/kernel.h
@@
-1,8
+1,8
@@
#ifndef _LINUX_KERNEL_H
#define _LINUX_KERNEL_H
-
#include <linux/types.h>
+#include <linux/printk.h> /* for printf/pr_* utilities */
#define USHRT_MAX ((u16)(~0U))
#define SHRT_MAX ((s16)(USHRT_MAX>>1))