Messages in this thread | | | Date | Wed, 6 Dec 2023 22:25:50 -0800 | From | Christoph Hellwig <> | Subject | Re: [PATCH] lib/string: shrink lib/string.i via IWYU |
| |
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.
| |