diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-11-21 17:16:58 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-21 19:19:15 +0300 |
commit | 04b74b27c2941e5d62120f6fee3a0a9388a30613 (patch) | |
tree | 05a24b1a4768b12f6656a6121d1281ed77426116 /include/linux/percpu.h | |
parent | a9edc88093287183ac934be44f295f183b2c62dd (diff) | |
download | linux-04b74b27c2941e5d62120f6fee3a0a9388a30613.tar.xz |
printk/percpu: Define printk_func when printk is not defined
To avoid include hell, the per_cpu variable printk_func was declared
in percpu.h. But it is only defined if printk is defined.
As users of printk may also use the printk_func variable, it needs to
be defined even if CONFIG_PRINTK is not.
Also add a printk.h include in percpu.h just to be safe.
Link: http://lkml.kernel.org/r/20141121183215.01ba539c@canb.auug.org.au
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index ba2e85a0ff5b..caebf2a758dc 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -5,6 +5,7 @@ #include <linux/preempt.h> #include <linux/smp.h> #include <linux/cpumask.h> +#include <linux/printk.h> #include <linux/pfn.h> #include <linux/init.h> |