lib: fix incorrect kernel-doc comment syntax in file
Subsystems (3)
PATCH 1/1 lib: fix incorrect kernel-doc comment syntax in file
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
There are certain files in lib and lib/zstd, which follow this syntax, but the content inside does not comply with kernel-doc.
Such lines were probably not meant for kernel-doc parsing, but are parsed due to the presence of kernel-doc like comment syntax(i.e, '/**'), which causes unexpected warnings from kernel-doc.
E.g., presence of kernel-doc like comment in lib/zstd/compress.c at header causes these warnings by kernel-doc:
"warning: cannot understand function prototype: 'const U32 g_searchStrength = 8; '"
Similarly for other files too.
Provide a simple fix by replacing such occurrences with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
---
* Applies perfectly on next-20210326
lib/win_minmax.c | 2 +- lib/zstd/compress.c | 2 +- lib/zstd/decompress.c | 2 +- lib/zstd/error_private.h | 2 +- lib/zstd/mem.h | 2 +- lib/zstd/zstd_common.c | 2 +- lib/zstd/zstd_internal.h | 2 +- lib/zstd/zstd_opt.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)
lib/win_minmax.c +1 -1
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/** +/* * lib/minmax.c: windowed min/max tracker * * Kathleen Nichols' algorithm for tracking the minimum (or maximum)
lib/zstd/compress.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. *
lib/zstd/decompress.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. *
lib/zstd/error_private.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. *
lib/zstd/mem.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. *
lib/zstd/zstd_common.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. *
lib/zstd/zstd_internal.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. *
lib/zstd/zstd_opt.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Przemyslaw Skibinski, Yann Collet, Facebook, Inc. * All rights reserved. *
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 12 lines · Aditya Srivastava
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
There are certain files in lib and lib/zstd, which follow this syntax, but the content inside does not comply with kernel-doc.
Such lines were probably not meant for kernel-doc parsing, but are parsed due to the presence of kernel-doc like commentsyntax(i.e, '/**'), which causes unexpected warnings from kernel-doc.E.g., presence of kernel-doc like comment in
lib/zstd/compress.cat header causes these warnings by kernel-doc:
"warning: cannot understand function prototype: 'const U32g_searchStrength= 8; '"
Quoted 6 lines
Similarly for other files too.
Provide a simple fix by replacing such occurrences with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
Signed-off-by Aditya Srivastava <[email protected]>
Thanks.
Quoted 95 lines
---
* Applies perfectly on next-20210326lib/win_minmax.c | 2 +- lib/zstd/compress.c | 2 +- lib/zstd/decompress.c | 2 +- lib/zstd/error_private.h | 2 +- lib/zstd/mem.h | 2 +- lib/zstd/zstd_common.c | 2 +- lib/zstd/zstd_internal.h | 2 +- lib/zstd/zstd_opt.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)lib/win_minmax.c +1
-1@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/** +/* * lib/minmax.c: windowed min/max tracker * * Kathleen Nichols' algorithm for tracking the minimum (or maximum) lib/zstd/compress.c +1
-1@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * lib/zstd/decompress.c +1
-1@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * lib/zstd/error_private.h +1
-1@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * lib/zstd/mem.h +1
-1@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * lib/zstd/zstd_common.c +1
-1@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * lib/zstd/zstd_internal.h +1
-1@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * lib/zstd/zstd_opt.h +1
-1@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2016-present, Przemyslaw Skibinski, Yann Collet, Facebook, Inc. * All rights reserved. *
Signature · 6 lines
~Randy _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 3 lines · Aditya Srivastava
Provide a simple fix by replacing such occurrences with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
I assumed these come from the original sources and were not adapted, but they aren't there, at least in the current version in GitHub.
Cheers,
Miguel
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees