Re: [PATCH] lib/string: shrink lib/string.i via IWYU

Christoph Hellwig
2023-12-07T06:25:59Z

On Tue, Dec 05, 2023 at 01:39:47PM -0800, Nick Desaulniers wrote:
> Hmm...how does one know that linux/bits.h is the higher-level include
> of asm/bitsperlong.h?

I think this the wrong way of thinking. In general we should always
avoid including asm/ headers unless there is no other way. No other
way is not formalized right now, but I think the answer is roughly if
no linux/ headers includes that asm header. This will probably give
a few wrong results at the moment, but it's probably worth fixing
them up.