Re: header circular dependencies

From: Andy Shevchenko
Date: Wed Dec 22 2021 - 14:12:40 EST


On Wed, Dec 22, 2021 at 9:08 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
>
> `make headerdep` is full of printk.h circular dependencies, like
>
> include/kvm/arm_vgic.h:18: warning: recursive header inclusion

For the clearness, 18 here is with one of my (not related to printk,h)
patches, but the line in question is inclusion of jump_label.h. In the
original code it's 16.

> In file included from linux/printk.h,
> from linux/dynamic_debug.h:188
> from linux/printk.h:555 <-- here
>
> I'm wondering if it's a false positive?
> In either case, can we teach the headerdep not to complain by fixing
> the culprit?

--
With Best Regards,
Andy Shevchenko