scripts: Add __deprecated_version to the checkpatch checklist

Add macro __deprecated_version to the checklists of
`scripts/checkpatch.pl` and `scripts/tags.sh`.

Signed-off-by: James Roy <rruuaanng@outlook.com>
This commit is contained in:
James Roy
2025-10-08 13:47:42 +08:00
committed by Chris Friedt
parent 1f6bfffc20
commit a855c61fcb
2 changed files with 4 additions and 1 deletions

View File

@@ -394,6 +394,7 @@ our $Attribute = qr{
__pure|
__noclone|
__deprecated|
__deprecated_version|
__read_mostly|
__ro_after_init|
__kprobes|

View File

@@ -1,4 +1,6 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
# Generate tags or cscope files
# Usage tags.sh <mode>
#
@@ -58,7 +60,7 @@ exuberant()
-I __initdata,__exitdata,__initconst, \
-I __initdata_memblock \
-I __refdata,__attribute,__maybe_unused,__always_unused \
-I __acquires,__releases,__deprecated \
-I __acquires,__releases,__deprecated,__deprecated_version \
-I __read_mostly,__aligned,____cacheline_aligned \
-I ____cacheline_aligned_in_smp \
-I __cacheline_aligned,__cacheline_aligned_in_smp \