From: Nicolas Schier <nicolas@fjasle.eu>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] treewide: remove unnecessary <linux/version.h> inclusion
Date: Wed, 7 Aug 2024 20:20:11 +0200 [thread overview]
Message-ID: <ZrO623duqRRWS5di@bergen> (raw)
In-Reply-To: <20240807174730.658429-1-masahiroy@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
On Thu 08 Aug 2024 02:47:28 GMT, Masahiro Yamada wrote:
> These files do not use any macros defined in <linux/version.h>.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> drivers/accessibility/speakup/genmap.c | 1 -
> drivers/accessibility/speakup/makemapdata.c | 1 -
> drivers/staging/media/atomisp/include/linux/atomisp.h | 1 -
> samples/trace_events/trace_custom_sched.c | 1 -
> sound/soc/codecs/cs42l42.c | 1 -
> 5 files changed, 5 deletions(-)
>
Re-checking with
$ git grep -rle '#include <linux/version.h>' >files-including-version.h
$ <files-including-version.h xargs git grep -lr -eLINUX_VERSION_{CODE,MAJOR,PATCHLEVEL,SUBLEVEL} -e KERNEL_VERSION >using-macros-from-version.h
$ diff files-including-version.h using-macros-from-version.h
reveals that also
tools/testing/selftests/bpf/progs/dev_cgroup.c
tools/testing/selftests/bpf/progs/netcnt_prog.c
tools/testing/selftests/bpf/progs/test_map_lock.c
tools/testing/selftests/bpf/progs/test_send_signal_kern.c
tools/testing/selftests/bpf/progs/test_spin_lock.c
tools/testing/selftests/bpf/progs/test_tcp_estats.c
tools/testing/selftests/wireguard/qemu/init.c
are including but not using linux/version.h. This shall probably not
go through kbuild tree, so it looks complete (enough) to me, thanks!
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2024-08-07 18:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-07 17:47 [PATCH] treewide: remove unnecessary <linux/version.h> inclusion Masahiro Yamada
2024-08-07 18:20 ` Nicolas Schier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZrO623duqRRWS5di@bergen \
--to=nicolas@fjasle.eu \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox