We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_Static_assert
1 parent 8914231 commit 152d8e8Copy full SHA for 152d8e8
scripts/kallsyms.c
@@ -32,7 +32,13 @@
32
33
#define KSYM_NAME_LEN 512
34
35
-/* A substantially bigger size than the current maximum. */
+/*
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
+ */
42
#define KSYM_NAME_LEN_BUFFER 2048
43
_Static_assert(
44
KSYM_NAME_LEN_BUFFER == KSYM_NAME_LEN * 4,
0 commit comments