Skip to content

Commit 927ad95

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 <rruuaanng@outlook.com>
1 parent 04a3d25 commit 927ad95

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exuberant()
5858
-I __initdata,__exitdata,__initconst, \
5959
-I __initdata_memblock \
6060
-I __refdata,__attribute,__maybe_unused,__always_unused \
61-
-I __acquires,__releases,__deprecated \
61+
-I __acquires,__releases,__deprecated,__deprecated_version \
6262
-I __read_mostly,__aligned,____cacheline_aligned \
6363
-I ____cacheline_aligned_in_smp \
6464
-I __cacheline_aligned,__cacheline_aligned_in_smp \

0 commit comments

Comments
 (0)