aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorAlvin Šipraga <[email protected]>2023-12-19 01:25:15 +0000
committerLinus Torvalds <[email protected]>2023-12-31 18:57:42 +0000
commit2639772a11c860628c5f7007842eca52a1c34d78 (patch)
treebc8c7c5a77efd3c704d48c91c64649e7974f418e /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentget_maintainer: correctly parse UTF-8 encoded names in files (diff)
downloadkernel-2639772a11c860628c5f7007842eca52a1c34d78.tar.gz
kernel-2639772a11c860628c5f7007842eca52a1c34d78.zip
get_maintainer: remove stray punctuation when cleaning file emails
When parsing emails from .yaml files in particular, stray punctuation such as a leading '-' can end up in the name. For example, consider a common YAML section such as: maintainers: - [email protected] This would previously be processed by get_maintainer.pl as: - <[email protected]> Make the logic in clean_file_emails more robust by deleting any sub-names which consist of common single punctuation marks before proceeding to the best-effort name extraction logic. The output is then correct: [email protected] Some additional comments are added to the function to make things clearer to future readers. Link: https://lore.kernel.org/all/[email protected]/ Suggested-by: Joe Perches <[email protected]> Signed-off-by: Alvin Šipraga <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions