Skip to content

Commit 1f04b71

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 cb8ebf4 commit 1f04b71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/checkpatch.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env perl
2-
# SPDX-License-Identifier: GPL-2.0
2+
# SPDX-License-Identifier: Apache-2.0
33
#
44
# (c) 2001, Dave Jones. (the file handling bit)
55
# (c) 2005, Joel Schopp <[email protected]> (the ugly bit)
@@ -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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
2+
# SPDX-License-Identifier: Apache-2.0
23
# Generate tags or cscope files
34
# Usage tags.sh <mode>
45
#
@@ -58,7 +59,7 @@ exuberant()
5859
-I __initdata,__exitdata,__initconst, \
5960
-I __initdata_memblock \
6061
-I __refdata,__attribute,__maybe_unused,__always_unused \
61-
-I __acquires,__releases,__deprecated \
62+
-I __acquires,__releases,__deprecated,__deprecated_version \
6263
-I __read_mostly,__aligned,____cacheline_aligned \
6364
-I ____cacheline_aligned_in_smp \
6465
-I __cacheline_aligned,__cacheline_aligned_in_smp \

0 commit comments

Comments
 (0)