From d268ecec0033c8fc681e11240f2d98abfcca48f9 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 4 Apr 2026 01:45:11 +0300 Subject: [PATCH] utils: ipc: extract-docs: Work around reuse tool problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The reuse tool fails to lint the extract-docs.py file because it considers the 'SPDX-License-Identifier' string in a regex as a malformed license identifier. Work around the issue by adding parentheses in the regular expression, which doesn't affect the behaviour of the regex matching but prevents the reuse tool from seeing the line. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Barnabás Pőcze --- utils/codegen/ipc/extract-docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/codegen/ipc/extract-docs.py b/utils/codegen/ipc/extract-docs.py index 61f44cae..c51c4ab0 100755 --- a/utils/codegen/ipc/extract-docs.py +++ b/utils/codegen/ipc/extract-docs.py @@ -12,7 +12,7 @@ import sys regex_block_start = re.compile(r'^/\*\*$') regex_block_end = re.compile(r'^ \*/$') -regex_spdx = re.compile(r'^/\* SPDX-License-Identifier: .* \*/$') +regex_spdx = re.compile(r'^/\* (SPDX)-License-Identifier: .* \*/$') def main(argv):