diff options
| author | Masahiro Yamada <[email protected]> | 2024-02-02 15:58:16 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2024-02-19 09:20:41 +0000 |
| commit | 5b058034e3aa600802ab609e8264dc2ca1300ebe (patch) | |
| tree | b40e310dcfe6b0b32ac8819392ab255813259f89 /scripts/kconfig/expr.h | |
| parent | kconfig: make file::name a flexible array member (diff) | |
| download | kernel-5b058034e3aa600802ab609e8264dc2ca1300ebe.tar.gz kernel-5b058034e3aa600802ab609e8264dc2ca1300ebe.zip | |
kconfig: change file_lookup() to return the file name
Currently, file_lookup() returns a pointer to (struct file), but the
callers use only file->name.
Make it return the ->name member directly.
This adjustment encapsulates struct file and file_list as internal
implementation.
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/kconfig/expr.h')
| -rw-r--r-- | scripts/kconfig/expr.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index 760b1e681b43..d667f9aa041e 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h @@ -17,11 +17,6 @@ extern "C" { #include <stdbool.h> #endif -struct file { - struct file *next; - char name[]; -}; - typedef enum tristate { no, mod, yes } tristate; @@ -275,8 +270,6 @@ struct jump_key { struct menu *target; }; -extern struct file *file_list; - extern struct symbol symbol_yes, symbol_no, symbol_mod; extern struct symbol *modules_sym; extern int cdebug; |
