summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorThiébaud Weksteen <tweek@google.com>2026-09-17 15:11:47 +1000
committerMiguel Ojeda <ojeda@kernel.org>2026-10-01 21:19:43 +0200
commite91836593fbfb0014c290e9a0bbd86d0b98c1d2f (patch)
tree93271779dc4ee6eb76cb8caa9c05c196ac75ad98 /tools/lib/python/kdoc/python_version.py
parentc82c75ae11fae66cf070562f9b5241a4663f30cb (diff)
downloadlinux-next-e91836593fbfb0014c290e9a0bbd86d0b98c1d2f.tar.gz
linux-next-e91836593fbfb0014c290e9a0bbd86d0b98c1d2f.zip
rust: macros: allow non-ASCII characters in `authors`
Module authors may have non-ASCII characters in their names. In C, `MODULE_AUTHOR` allows arbitrary string literals which are emitted as raw UTF-8 bytes into the `.modinfo` section, and multiple in-tree modules use non-ASCII author names. Originally, the single `author` field permitted arbitrary string literals including non-ASCII characters. When support for multiple authors was introduced in commit 38559da6afb2 ("rust: module: introduce `authors` key"), it reused the `expect_string_array` helper that had originally been added for module aliases. Because that helper enforced an ASCII check, `authors` inadvertently became restricted to ASCII-only string literals. Later, when the macro parsing was rewritten to use `syn` in commit c578ad703ae9 ("rust: macros: use `syn` to parse `module!` macro"), this restriction was carried over by using AsciiLitStr in `authors` type. Change the element type of `authors` in `ModuleInfo` from `AsciiLitStr` to `LitStr` so that UTF-8 author names are permitted. Fixes: 38559da6afb2 ("rust: module: introduce `authors` key") Signed-off-by: Thiébaud Weksteen <tweek@google.com> Acked-by: Petr Pavlu <petr.pavlu@suse.com> Link: https://patch.msgid.link/20260917051147.98775-1-tweek@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions