[PATCH v2 0/2] gendwarfksyms - improve symtypes output

Giuliano Procida posted 2 patches 3 months, 1 week ago
scripts/gendwarfksyms/cache.c   |  2 +-
scripts/gendwarfksyms/die.c     |  4 ++--
scripts/gendwarfksyms/dwarf.c   |  2 +-
scripts/gendwarfksyms/kabi.c    |  2 +-
scripts/gendwarfksyms/symbols.c |  2 +-
scripts/gendwarfksyms/types.c   | 33 ++++++++++++++++++++++++++++-----
6 files changed, 34 insertions(+), 11 deletions(-)
[PATCH v2 0/2] gendwarfksyms - improve symtypes output
Posted by Giuliano Procida 3 months, 1 week ago
When investigating MODVERSIONS CRC changes from one build to the next,
we need to diff corresponding symtypes files. However, gendwarfksyms
did not order these files.

The first change in this series makes gendwarfksyms code conform to
the preferred style for the size parameter passed to allocation
functions.

https://github.com/torvalds/linux/blob/v6.15/Documentation/process/coding-style.rst?plain=1#L941

The second change in this series ensures symtypes are output in key
order.

The series is marked as v2 to distinguish it from earlier versions
where the changes were posted individually.

Giuliano Procida (2):
  gendwarfksyms: use preferred form of sizeof for allocation
  gendwarfksyms: order -T symtypes output by name

 scripts/gendwarfksyms/cache.c   |  2 +-
 scripts/gendwarfksyms/die.c     |  4 ++--
 scripts/gendwarfksyms/dwarf.c   |  2 +-
 scripts/gendwarfksyms/kabi.c    |  2 +-
 scripts/gendwarfksyms/symbols.c |  2 +-
 scripts/gendwarfksyms/types.c   | 33 ++++++++++++++++++++++++++++-----
 6 files changed, 34 insertions(+), 11 deletions(-)

-- 
2.50.0.727.gbf7dc18ff4-goog
Re: [PATCH v2 0/2] gendwarfksyms - improve symtypes output
Posted by Masahiro Yamada 3 months, 1 week ago
On Wed, Jul 2, 2025 at 12:20 AM Giuliano Procida <gprocida@google.com> wrote:
>
> When investigating MODVERSIONS CRC changes from one build to the next,
> we need to diff corresponding symtypes files. However, gendwarfksyms
> did not order these files.
>
> The first change in this series makes gendwarfksyms code conform to
> the preferred style for the size parameter passed to allocation
> functions.
>
> https://github.com/torvalds/linux/blob/v6.15/Documentation/process/coding-style.rst?plain=1#L941
>
> The second change in this series ensures symtypes are output in key
> order.
>
> The series is marked as v2 to distinguish it from earlier versions
> where the changes were posted individually.
>

Both applied to linux-kbuild.
Thanks!



-- 
Best Regards
Masahiro Yamada