Skip to content

Commit 8d96ad4

Browse files
committed
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 <[email protected]>
1 parent beb00cc commit 8d96ad4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ sub hash_show_words {
394394
__pure|
395395
__noclone|
396396
__deprecated|
397+
__deprecated_version|
397398
__read_mostly|
398399
__ro_after_init|
399400
__kprobes|

scripts/tags.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
2+
# SPDX-License-Identifier: Apache-2.0
3+
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
24
# Generate tags or cscope files
35
# Usage tags.sh <mode>
46
#
@@ -58,7 +60,7 @@ exuberant()
5860
-I __initdata,__exitdata,__initconst, \
5961
-I __initdata_memblock \
6062
-I __refdata,__attribute,__maybe_unused,__always_unused \
61-
-I __acquires,__releases,__deprecated \
63+
-I __acquires,__releases,__deprecated,__deprecated_version \
6264
-I __read_mostly,__aligned,____cacheline_aligned \
6365
-I ____cacheline_aligned_in_smp \
6466
-I __cacheline_aligned,__cacheline_aligned_in_smp \

0 commit comments

Comments
 (0)