Commit 99b70ec
checkpatch: suppress strscpy warnings for userspace tools
The checkpatch.pl script currently warns against the use of strcpy,
strlcpy, and strncpy, recommending strscpy as a safer alternative.
However, these warnings are also triggered for code under tools/ and
scripts/, which are userspace utilities where strscpy is not available.
This patch suppresses these warnings for files in tools/ and scripts/.
Link: https://lkml.kernel.org/r/20250923171722.7798-1-suchitkarunakaran@gmail.com
Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 20a8e04 commit 99b70ec
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2636 | 2636 | | |
2637 | 2637 | | |
2638 | 2638 | | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
2639 | 2644 | | |
2640 | 2645 | | |
2641 | 2646 | | |
| |||
7018 | 7023 | | |
7019 | 7024 | | |
7020 | 7025 | | |
7021 | | - | |
7022 | 7026 | | |
7023 | | - | |
| 7027 | + | |
7024 | 7028 | | |
7025 | 7029 | | |
7026 | 7030 | | |
7027 | 7031 | | |
7028 | 7032 | | |
7029 | | - | |
| 7033 | + | |
7030 | 7034 | | |
7031 | 7035 | | |
7032 | 7036 | | |
7033 | 7037 | | |
7034 | 7038 | | |
7035 | | - | |
| 7039 | + | |
7036 | 7040 | | |
7037 | 7041 | | |
7038 | 7042 | | |
| |||
0 commit comments