]> git.baikalelectronics.ru Git - kernel.git/commit
printk: Remove printk.h inclusion in percpu.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 12 Nov 2021 14:07:49 +0000 (16:07 +0200)
committerPetr Mladek <pmladek@suse.com>
Mon, 15 Nov 2021 14:03:32 +0000 (15:03 +0100)
commita6b229101c29ab2c95d85f87bea8bc9ac9ded884
tree137efc06dcb0cbcdb80f7461eb9bb9561bd7e16f
parent0e3dc9c0f23d5576cd8062862bddc6e27f9bf278
printk: Remove printk.h inclusion in percpu.h

After the commit aca096243786 ("printk/nmi: generic solution for safe
printk in NMI") the printk.h is not needed anymore in percpu.h.

Moreover `make headerdep` complains (an excerpt)

In file included from linux/printk.h,
                 from linux/dynamic_debug.h:188
                 from linux/printk.h:559 <-- here
                 from linux/percpu.h:9
                 from linux/idr.h:17
include/net/9p/client.h:13: warning: recursive header inclusion

Yeah, it's not a root cause of this, but removing will help to reduce
the noise.

Fixes: aca096243786 ("printk/nmi: generic solution for safe printk in NMI")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20211112140749.80042-1-andriy.shevchenko@linux.intel.com
include/linux/percpu.h