Skip to content

generate-accessors: fix stale examples and redundant code#3280

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:generator-updates
Apr 16, 2026
Merged

generate-accessors: fix stale examples and redundant code#3280
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:generator-updates

Conversation

@martin-belanger
Copy link
Copy Markdown

This is just a bit of clean up.

The examples in generate-accessors.md were generated with an older version of the tool:

  • excluded members leave no trace; the phantom "no accessors" comment has been removed
  • car struct accessors were missing their KernelDoc comments
  • accessors.c used 4-space indentation instead of tabs
  • accessors.ld was not shown at all

In generate-accessors.py, collapse the redundant two-branch isdigit() check in emit_src_setter_chararray() — both branches produced identical output.

The examples in generate-accessors.md were generated with an older
version of the tool:
  - excluded members leave no trace; the phantom "no accessors" comment
    has been removed
  - car struct accessors were missing their KernelDoc comments
  - accessors.c used 4-space indentation instead of tabs
  - accessors.ld was not shown at all

In generate-accessors.py, collapse the redundant two-branch isdigit()
check in emit_src_setter_chararray() — both branches produced identical
output.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
@igaw igaw merged commit 9d12fd5 into linux-nvme:master Apr 16, 2026
29 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Apr 16, 2026

Thanks!

@martin-belanger martin-belanger deleted the generator-updates branch April 17, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants