Commit 574673c2 authored by Andreas Ziegler's avatar Andreas Ziegler Committed by Linus Torvalds
Browse files

printk: Remove unnecessary #ifdef CONFIG_PRINTK

In commit 874f9c7d

 ("printk: create pr_<level> functions"), new
pr_level defines were added to printk.c.

These new defines are guarded by an #ifdef CONFIG_PRINTK - however,
there is already a surrounding #ifdef CONFIG_PRINTK starting a lot
earlier in line 249 which means the newly introduced #ifdef is

Let's remove it to avoid confusion.

Signed-off-by: default avatarAndreas Ziegler <>
Cc: Joe Perches <>
Cc: Andrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 65ea11ec
......@@ -1930,7 +1930,6 @@ asmlinkage int printk_emit(int facility, int level,
#define define_pr_level(func, loglevel) \
asmlinkage __visible void func(const char *fmt, ...) \
{ \
......@@ -1949,7 +1948,6 @@ define_pr_level(__pr_err, LOGLEVEL_ERR);
define_pr_level(__pr_warn, LOGLEVEL_WARNING);
define_pr_level(__pr_notice, LOGLEVEL_NOTICE);
define_pr_level(__pr_info, LOGLEVEL_INFO);
int vprintk_default(int level, const char *fmt, va_list args)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment