This patch depends on patch:
"Documentation/checkpatch: Prefer stracpy/strscpy over
strcpy/strlcpy/strncpy."
Signed-off-by: Chuhong Yuan
---
Changes in v2:
- Use "strncmp() on string prefix" instead of
"strncmp()" to make it more precise.
- Remove "c:func&q
Jonathan Corbet 于2019年8月2日周五 下午9:38写道:
>
> On Fri, 2 Aug 2019 14:25:37 +0800
> Chuhong Yuan wrote:
>
> > Add strncmp() to Documentation/process/deprecated.rst since
> > using strncmp() to check whether a string starts with a
> > prefix is error-prone.
> > Th
:
"Documentation/checkpatch: Prefer stracpy/strscpy over
strcpy/strlcpy/strncpy."
Signed-off-by: Chuhong Yuan
---
Documentation/process/deprecated.rst | 8
scripts/checkpatch.pl| 1 +
2 files changed, 9 insertions(+)
diff --git a/Documentation/process/depreca