summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorGuixin Liu <kanie@linux.alibaba.com>2026-09-24 11:39:23 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-10-08 23:06:50 -0700
commit57b4c286f02b2275a03b198e9f2d941e9a68a4fe (patch)
treea60e8fbfe8e6cb233626f0ee502eeedd22be75eb /tools/lib/python/kdoc/python_version.py
parentc190d6fc2da6b9db62c239090b7d4d4d85c0a1d9 (diff)
downloadlinux-next-57b4c286f02b2275a03b198e9f2d941e9a68a4fe.tar.gz
linux-next-57b4c286f02b2275a03b198e9f2d941e9a68a4fe.zip
checkpatch: don't flag ACQUIRE_ERR() assignments in if conditions
ACQUIRE_ERR() and its wrappers, PM_RUNTIME_ACQUIRE_ERR() and IIO_DEV_ACQUIRE_FAILED(), report whether a conditional cleanup.h guard was acquired, and drivers consume the result directly in an if condition: if ((rc = ACQUIRE_ERR(mutex_intr, &lock))) return rc; That combined form is the established style at the 49 in-tree call sites under drivers/cxl and drivers/pci/tsm.c, so ASSIGN_IN_IF fires there only as a false positive, and every patch touching those lines carries noise that reviewers have to wave off manually. Skip the check only when every assignment in the condition assigns the result of such a call, matched by the *_ACQUIRE_ERR() / *_ACQUIRE_FAILED() naming convention of its wrappers. Plain assignments, mixed conditions and near-miss identifiers still get flagged. Link: https://lore.kernel.org/20260924033923.4140210-1-kanie@linux.alibaba.com Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Suggested-by: Alison Schofield <alison.schofield@intel.com> Acked-by: Joe Perches <joe@perches.com> Assisted-by: LLM Cc: Andy Whitcroft <apw@canonical.com> Cc: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions