aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/expr.h
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2024-02-02 15:58:15 +0000
committerMasahiro Yamada <[email protected]>2024-02-19 09:20:41 +0000
commit6676c5bc15e66268c9c9669d5852aa779689c74e (patch)
tree94c53ce02df799a82ec7b76cfa4cb5315f4fd49f /scripts/kconfig/expr.h
parentkconfig: move the file and lineno in struct file to struct buffer (diff)
downloadkernel-6676c5bc15e66268c9c9669d5852aa779689c74e.tar.gz
kernel-6676c5bc15e66268c9c9669d5852aa779689c74e.zip
kconfig: make file::name a flexible array member
Call malloc() just once to allocate needed memory. Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/kconfig/expr.h')
-rw-r--r--scripts/kconfig/expr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h
index 85e0d1ab3c8a..760b1e681b43 100644
--- a/scripts/kconfig/expr.h
+++ b/scripts/kconfig/expr.h
@@ -19,7 +19,7 @@ extern "C" {
struct file {
struct file *next;
- const char *name;
+ char name[];
};
typedef enum tristate {