kernel/utsname_sysctl.c: Fix hostname polling

Commit bfca3dd3d068 ("kernel/utsname_sysctl.c: print kernel arch") added
a new entry to the uts_kern_table[] array, but didn't update the
UTS_PROC_xyz enumerators of older entries, breaking anything that used
them.

Which is admittedly not many cases: it's really just the two uses of
uts_proc_notify() in kernel/sys.c. But apparently journald-systemd
actually uses this to detect hostname changes.

Reported-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Fixes: bfca3dd3d068 ("kernel/utsname_sysctl.c: print kernel arch")
Link: https://lore.kernel.org/lkml/0c2b92a6-0f25-9538-178f-eee3b06da23f@secunet.com/
Link: https://linux-regtracking.leemhuis.info/regzbot/regression/0c2b92a6-0f25-9538-178f-eee3b06da23f@secunet.com/
Cc: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Changed files
+2
include
linux
kernel
+1
include/linux/utsname.h
··· 10 10 #include <uapi/linux/utsname.h> 11 11 12 12 enum uts_proc { 13 + UTS_PROC_ARCH, 13 14 UTS_PROC_OSTYPE, 14 15 UTS_PROC_OSRELEASE, 15 16 UTS_PROC_VERSION,
+1
kernel/utsname_sysctl.c
··· 74 74 static DEFINE_CTL_TABLE_POLL(hostname_poll); 75 75 static DEFINE_CTL_TABLE_POLL(domainname_poll); 76 76 77 + // Note: update 'enum uts_proc' to match any changes to this table 77 78 static struct ctl_table uts_kern_table[] = { 78 79 { 79 80 .procname = "arch",