From patchwork Sun Apr 5 19:14:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 26424 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 8CE08C32BB for ; Sun, 5 Apr 2026 19:15:00 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 459CB62D88; Sun, 5 Apr 2026 21:15:00 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bd7uUoO6"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B219862D7D for ; Sun, 5 Apr 2026 21:14:58 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-703d-e500--2a1.rev.dnainternet.fi [IPv6:2001:14ba:703d:e500::2a1]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 8260119C6 for ; Sun, 5 Apr 2026 21:13:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1775416412; bh=IOEQVkTw9+AJ3hG15RqsSjgUVvJBOZG8h+DFaKEZ6gg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bd7uUoO6rNy0+Ofwn7djqKk0OgvxCA0/UScu+IquyvhitP1/irW5zBUJqum+boUEY fz4Hgmd7jayMWlXBqX6pO67Z20tG7tZ1oiJV8PBuE6C496MpEPie1Y/K2Fk4Qpo0aI 6q9cwbcu4ukgPvAMxnuUEztBk47hi7bZ69Ag4JGM= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH 08/11] utils: ipc: extract-docs: Work around reuse tool problem Date: Sun, 5 Apr 2026 22:14:40 +0300 Message-ID: <20260405191443.1209948-9-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260405191443.1209948-1-laurent.pinchart@ideasonboard.com> References: <20260405191443.1209948-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 --- 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 61f44caef52a..c51c4ab01a81 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):