diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2025-01-03 16:30:42 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2025-01-10 23:01:22 +0900 |
| commit | 2759bd908f3cc8d286e1fa64ec7ee7f5d1124837 (patch) | |
| tree | 5eae7a663d078f7064c9f32eb706d8a3f6a3f703 /scripts/genksyms/genksyms.h | |
| parent | genksyms: refactor the return points in the for-loop in __add_symbol() (diff) | |
| download | linux-2759bd908f3cc8d286e1fa64ec7ee7f5d1124837.tar.gz linux-2759bd908f3cc8d286e1fa64ec7ee7f5d1124837.zip | |
genksyms: use generic macros for hash table implementation
Use macros provided by hashtable.h
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/genksyms/genksyms.h')
| -rw-r--r-- | scripts/genksyms/genksyms.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/genksyms/genksyms.h b/scripts/genksyms/genksyms.h index 5621533dcb8e..8c45ada59ece 100644 --- a/scripts/genksyms/genksyms.h +++ b/scripts/genksyms/genksyms.h @@ -14,6 +14,8 @@ #include <stdio.h> +#include <list_types.h> + enum symbol_type { SYM_NORMAL, SYM_TYPEDEF, SYM_ENUM, SYM_STRUCT, SYM_UNION, SYM_ENUM_CONST @@ -31,7 +33,7 @@ struct string_list { }; struct symbol { - struct symbol *hash_next; + struct hlist_node hnode; char *name; enum symbol_type type; struct string_list *defn; |
