diff --git a/Makefile b/Makefile index a105cb893b4ca0..32dce415d703d1 100644 --- a/Makefile +++ b/Makefile @@ -593,6 +593,7 @@ ifdef RUST_LIB_SRC export RUST_LIB_SRC endif +# Allows the usage of unstable features in stable compilers. export RUSTC_BOOTSTRAP := 1 export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC HOSTPKG_CONFIG diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 3b64dda7e4ccef..41013d9a18acba 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -32,7 +32,13 @@ #define KSYM_NAME_LEN 512 -/* A substantially bigger size than the current maximum. */ +/* + * A substantially bigger size than the current maximum. + * + * It cannot be defined as an expression because it gets stringified + * for the fscanf() format string. Therefore, a _Static_assert() is + * used instead to maintain the relationship with KSYM_NAME_LEN. + */ #define KSYM_NAME_LEN_BUFFER 2048 _Static_assert( KSYM_NAME_LEN_BUFFER == KSYM_NAME_LEN * 4,