Skip to content

Commit fcad53c

Browse files
authored
Merge pull request #891 from ojeda/comments
kallsyms and Makefile: add a couple comments
2 parents db8f251 + 152d8e8 commit fcad53c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ ifdef RUST_LIB_SRC
596596
export RUST_LIB_SRC
597597
endif
598598

599+
# Allows the usage of unstable features in stable compilers.
599600
export RUSTC_BOOTSTRAP := 1
600601

601602
export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC HOSTPKG_CONFIG

scripts/kallsyms.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@
3232

3333
#define KSYM_NAME_LEN 512
3434

35-
/* A substantially bigger size than the current maximum. */
35+
/*
36+
* A substantially bigger size than the current maximum.
37+
*
38+
* It cannot be defined as an expression because it gets stringified
39+
* for the fscanf() format string. Therefore, a _Static_assert() is
40+
* used instead to maintain the relationship with KSYM_NAME_LEN.
41+
*/
3642
#define KSYM_NAME_LEN_BUFFER 2048
3743
_Static_assert(
3844
KSYM_NAME_LEN_BUFFER == KSYM_NAME_LEN * 4,

0 commit comments

Comments
 (0)