Skip to content

Commit

Permalink
init/version.c: remove #include <generated/utsrelease.h>
Browse files Browse the repository at this point in the history
Commit 2df8220 ("kbuild: build init/built-in.a just once") moved
the usage of the define UTS_RELEASE to the file version-timestamp.c.

version-timestamp.c in turn is included from version.c but already
includes utsrelease.h itself properly.

The unneeded include of utsrelease.h from version.c can be dropped.

Fixes: 2df8220 ("kbuild: build init/built-in.a just once")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
Thomas Weißschuh authored and Masahiro Yamada committed Dec 10, 2022
1 parent bd328de commit 9edb4fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion init/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/printk.h>
#include <linux/uts.h>
#include <linux/utsname.h>
#include <generated/utsrelease.h>
#include <linux/proc_ns.h>

static int __init early_hostname(char *arg)
Expand Down

0 comments on commit 9edb4fd

Please sign in to comment.