Skip to content

Commit 633440d

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 633440d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/checkpatch.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env perl
2-
# SPDX-License-Identifier: GPL-2.0
2+
# SPDX-License-Identifier: Apache-2.0
3+
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
34
#
45
# (c) 2001, Dave Jones. (the file handling bit)
56
# (c) 2005, Joel Schopp <[email protected]> (the ugly bit)
@@ -394,6 +395,7 @@ sub hash_show_words {
394395
__pure|
395396
__noclone|
396397
__deprecated|
398+
__deprecated_version|
397399
__read_mostly|
398400
__ro_after_init|
399401
__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)