OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee19545
)
printk: Drop pr_warning definition
author
Kefeng Wang
<wangkefeng.wang@huawei.com>
Thu, 28 Nov 2019 00:47:51 +0000
(08:47 +0800)
committer
Petr Mladek
<pmladek@suse.com>
Fri, 6 Dec 2019 09:47:28 +0000
(10:47 +0100)
With all pr_warning are removed, saftely drop pr_warning definition.
Link:
http://lkml.kernel.org/r/20191128004752.35268-4-wangkefeng.wang@huawei.com
To: joe@perches.com
To: linux-kernel@vger.kernel.org
Cc: gregkh@linuxfoundation.org
Cc: tj@kernel.org
Cc: arnd@arndb.de
Cc: sergey.senozhatsky@gmail.com
Cc: rostedt@goodmis.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
include/linux/printk.h
patch
|
blob
|
history
diff --git
a/include/linux/printk.h
b/include/linux/printk.h
index
c09d67e
..
1e6108b
100644
(file)
--- a/
include/linux/printk.h
+++ b/
include/linux/printk.h
@@
-302,9
+302,8
@@
extern int kptr_restrict;
printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__)
#define pr_err(fmt, ...) \
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
-#define pr_warn
ing
(fmt, ...) \
+#define pr_warn(fmt, ...) \
printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
-#define pr_warn pr_warning
#define pr_notice(fmt, ...) \
printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
#define pr_info(fmt, ...) \