Search notes:

include/generated/utsversion.h

The content of include/generated/utsversion.h looks like
#define UTS_VERSION "#20 SMP PREEMPT_DYNAMIC Sat Sep 16 21:22:20 CEST 2023"
uts_version.h is for example included from arch/x86/boot/version.c.
A comment in kernel/gen_kheaders says that utsversion.h is generated after kernel/gen_kheaders.sh is executed.

Elements of UTS_VERSION

#20 The number after the # symbol (here 20) corresponds to the value found in .version. Can be overridden with KBUILD_BUILD_VERSION.
SMP $(smp-flag-y). (CONFIG_SMP)
PREEMPT_DYNAMIC $(prempt-flag-y). (Can alternatively be PREEMPT or PREEMPT_RT, depending on value of CONFIG_PREEMPT_BUILD, CONFIG_PREEMPT_DYNAMIC and CONFIG_PREEMPT_RT)
Sat Sep 16 21:22:20 CEST 2023 Timestamp of the build (LC_ALL=C date). Can be overridden with KBUILD_BUILD_TIMESTAMP.
These elements are determined in the section UTS_VERSION of init/Makefile.

See also

include/generated/

Index