[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231205214359.GF1674809@ZenIV>
Date: Tue, 5 Dec 2023 21:43:59 +0000
From: Al Viro <viro@...iv.linux.org.uk>
To: Nick Desaulniers <ndesaulniers@...gle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, tanzirh@...gle.com,
Kees Cook <keescook@...omium.org>,
Andy Shevchenko <andy@...nel.org>,
linux-hardening@...r.kernel.org, linux-kernel@...r.kernel.org,
Nick DeSaulniers <nnn@...gle.com>, llvm@...ts.linux.dev
Subject: Re: [PATCH] lib/string: shrink lib/string.i via IWYU
On Tue, Dec 05, 2023 at 01:39:47PM -0800, Nick Desaulniers wrote:
> The tooling Tanzir is working on does wrap IWYU, and does support such
> mapping (of 'low level' to 'high level' headers; more so, if it
> recommends X you can override to suggest Y instead).
>
> arch/nios/ also doesn't provide a bug.h, which this patch is
> suggesting we include directly. I guess the same goes for
> asm/rwonce.h.
See include/asm-generic/Kbuild:
mandatory-y += bug.h
...
mandatory-y += rwonce.h
IOW, sh will have asm/bug.h and as/rwonce.h copied from asm-generic.
Still, includes of asm/*.h had been a massive headache historically
and breeding more of those shouldn't be overdone.
More painful problem is arch- and config-dependent stuff, though...
Powered by blists - more mailing lists