[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNARNa3NPSeRAUgMaEqWiA+C6-s1PxRe1bCUJg6zLyOtDkA@mail.gmail.com>
Date: Sat, 7 Dec 2024 23:27:38 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Geert Uytterhoeven <geert+renesas@...der.be>
Cc: Oleg Nesterov <oleg@...hat.com>, Arnd Bergmann <arnd@...db.de>, Yury Norov <yury.norov@...il.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>, Andy Whitcroft <apw@...onical.com>,
Joe Perches <joe@...ches.com>, Dwaipayan Ray <dwaipayanray1@...il.com>,
Lukas Bulwahn <lukas.bulwahn@...il.com>, Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>, linux-arch@...r.kernel.org,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/3] kbuild: Drop support for include/asm-<arch> in headers_check.pl
On Thu, Dec 5, 2024 at 10:20 PM Geert Uytterhoeven
<geert+renesas@...der.be> wrote:
>
> "include/asm-<arch>" was replaced by "arch/<arch>/include/asm" a long
> time ago. All assembler header files are now included using
> "#include <asm/*>", so there is no longer a need to rewrite paths.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
> ---
After this commit, the second argument $arch is no longer
used.
Please clean up
my ($dir, $arch, @files) = @ARGV;
> usr/include/headers_check.pl | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl
> index b6aec5e4365f9bf2..7070c891ea294b4d 100755
> --- a/usr/include/headers_check.pl
> +++ b/usr/include/headers_check.pl
> @@ -54,10 +54,6 @@ sub check_include
> my $inc = $1;
> my $found;
> $found = stat($dir . "/" . $inc);
> - if (!$found) {
> - $inc =~ s#asm/#asm-$arch/#;
> - $found = stat($dir . "/" . $inc);
> - }
> if (!$found) {
> printf STDERR "$filename:$lineno: included file '$inc' is not exported\n";
> $ret = 1;
> --
> 2.34.1
>
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists