]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gendwarfksyms: use preferred form of sizeof for allocation
authorGiuliano Procida <gprocida@google.com>
Tue, 1 Jul 2025 15:19:10 +0000 (16:19 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 26 Jul 2025 06:31:30 +0000 (15:31 +0900)
commite06aa69de21b6de2ef83f559768a4005114f5661
tree4fd4ec817c8e828fc7b5d7ba6fba7a2ad5c6b025
parent87433e3e06a6b6a78a541b6ac39000f41779a882
gendwarfksyms: use preferred form of sizeof for allocation

The preferred form is to use the variable being allocated to, rather
than explicitly supplying a type name which might become stale.

Also do this for memset.

Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Giuliano Procida <gprocida@google.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/gendwarfksyms/cache.c
scripts/gendwarfksyms/die.c
scripts/gendwarfksyms/dwarf.c
scripts/gendwarfksyms/kabi.c
scripts/gendwarfksyms/symbols.c
scripts/gendwarfksyms/types.c