bcache: fix kernel-doc warning on CLOSURE_CALLBACK
PATCH 1/1 bcache: fix kernel-doc warning on CLOSURE_CALLBACK
bch_data_insert() is defined through the CLOSURE_CALLBACK() macro, which kernel-doc cannot see through, so the kernel-doc comment above it produces:
request.c:308 function parameter 'bch_data_insert' not described in 'CLOSURE_CALLBACK' request.c:308 expecting prototype for bch_data_insert(). Prototype was for CLOSURE_CALLBACK() instead
Turn it into a regular block comment, and drop the @cl line along with the kernel-doc markup.
--- drivers/md/bcache/request.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/md/bcache/request.c +1 -2
@@ -285,9 +285,8 @@ static CLOSURE_CALLBACK(bch_data_insert_start) } } -/** +/* * bch_data_insert - stick some data in the cache -* @cl: closure pointer. * * This is the starting point for any data to end up in a cache device; it could * be from a normal write, or a writeback write, or a write to a flash only
Signature · 1 line
2.56.0
Coly Li
maintainerHi Rosen,
Quoted 11 lines · Rosen Penev
bch_data_insert()is defined through theCLOSURE_CALLBACK()macro, which kernel-doc cannot see through, so the kernel-doc comment above it produces:request.c:308 function parameter '
bch_data_insert' not described in 'CLOSURE_CALLBACK' request.c:308 expecting prototype forbch_data_insert(). Prototype was forCLOSURE_CALLBACK()insteadTurn it into a regular block comment, and drop the @cl line along with the kernel-doc markup.
Assisted-by LLM
The patch is fine to me. Can you provide the detailed LLM name here?
Quoted 1 line
Signed-off-by Rosen Penev <[email protected]>
Thanks.
Coly Li
Quoted 21 lines
--- drivers/md/bcache/request.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/md/bcache/request.c +1
-2@@ -285,9 +285,8 @@ static CLOSURE_CALLBACK(bch_data_insert_start) } } -/** +/* * bch_data_insert - stick some data in the cache -* @cl: closure pointer. * * This is the starting point for any data to end up in a cache device; it could * be from a normal write, or a writeback write, or a write to a flash only Signature · 1 line
2.56.0
Quoted 11 lines · Coly Li
Hi Rosen,
Quoted 7 lines · Rosen Penev
bch_data_insert()is defined through theCLOSURE_CALLBACK()macro, which kernel-doc cannot see through, so the kernel-doc comment above it produces:request.c:308 function parameter '
bch_data_insert' not described in 'CLOSURE_CALLBACK' request.c:308 expecting prototype forbch_data_insert(). Prototype was forCLOSURE_CALLBACK()instead
Quoted 6 lines
Quoted 4 lines
Turn it into a regular block comment, and drop the @cl line along with the kernel-doc markup.
Assisted-by LLMThe patch is fine to me. Can you provide the detailed LLM name here?
It was Opencode's Big Pickle IIRC. Current documentation says to just say LLM.
Quoted 28 lines
Quoted 2 lines
Signed-off-by Rosen Penev <[email protected]>Thanks.
Coly Li
Quoted 21 lines
--- drivers/md/bcache/request.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/md/bcache/request.c +1
-3@@ -285,9 +285,8 @@ static CLOSURE_CALLBACK(bch_data_insert_start) } } -/** +/* * bch_data_insert - stick some data in the cache -* @cl: closure pointer. * * This is the starting point for any data to end up in a cache device; it could * be from a normal write, or a writeback write, or a write to a flash only -- 2.56.0
Coly Li
maintainerQuoted 14 lines
2026年10月9日 12:09,Rosen Penev <[email protected]> 写道:
Quoted 11 lines · Coly Li
Hi Rosen,
Quoted 7 lines · Rosen Penev
bch_data_insert()is defined through theCLOSURE_CALLBACK()macro, which kernel-doc cannot see through, so the kernel-doc comment above it produces:request.c:308 function parameter '
bch_data_insert' not described in 'CLOSURE_CALLBACK' request.c:308 expecting prototype forbch_data_insert(). Prototype was forCLOSURE_CALLBACK()instead
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Turn it into a regular block comment, and drop the @cl line along with the kernel-doc markup.
Assisted-by LLMThe patch is fine to me. Can you provide the detailed LLM name here?
It was Opencode's Big Pickle IIRC. Current documentation says to just say LLM.
Documentation file coding-assistants.rst suggests,
43 Attribution
44 ===========
45
46 When AI tools contribute to kernel development, proper attribution 47 helps track the evolving role of AI in the development process. 48 Contributions should include an Assisted-by tag in the following format::
49
50 Assisted-by: LLM [TOOL1] [TOOL2]
51
52 * ``[TOOL1] [TOOL2]`` are optional specialized analysis tools used
53 (e.g., coccinelle, sparse, smatch, clang-tidy)
54
55 Basic development tools (git, gcc, make, editors) should not be listed. 56
57 Example::
58
59 Assisted-by: LLM coccinelle sparse
Yes, only listing LLM is the bottom line, and list the detailed model name is better.
If you don’t want to post v2 patch, you can give me a line of Assisted-by: , I can replace it in the patch.
Thanks.
Coly Li
Quoted 28 lines
Quoted 28 lines
Quoted 2 lines
Signed-off-by Rosen Penev <[email protected]>Thanks.
Coly Li
Quoted 21 lines
---
drivers/md/bcache/request.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/md/bcache/request.c +1
-3@@ -285,9 +285,8 @@ static CLOSURE_CALLBACK(bch_data_insert_start) } } -/** +/* * bch_data_insert - stick some data in the cache -* @cl: closure pointer. * * This is the starting point for any data to end up in a cache device; it could * be from a normal write, or a writeback write, or a write to a flash only -- 2.56.0
Quoted 43 lines · Coly Li
Quoted 15 lines
2026年10月9日 12:09,Rosen Penev <[email protected]> 写道:
Quoted 11 lines · Coly Li
Hi Rosen,
Quoted 7 lines · Rosen Penev
bch_data_insert()is defined through theCLOSURE_CALLBACK()macro, which kernel-doc cannot see through, so the kernel-doc comment above it produces:request.c:308 function parameter '
bch_data_insert' not described in 'CLOSURE_CALLBACK' request.c:308 expecting prototype forbch_data_insert(). Prototype was forCLOSURE_CALLBACK()insteadQuoted 7 lines
Quoted 6 lines
Quoted 4 lines
Turn it into a regular block comment, and drop the @cl line along with the kernel-doc markup.
Assisted-by LLMThe patch is fine to me. Can you provide the detailed LLM name here?
It was Opencode's Big Pickle IIRC. Current documentation says to just say LLM.
Documentation file
coding-assistants.rstsuggests,43 Attribution
44 ===========
45
46 When AI tools contribute to kernel development, proper attribution 47 helps track the evolving role of AI in the development process. 48 Contributions should include an Assisted-by tag in the following format::
49
50 Assisted-by: LLM [TOOL1] [TOOL2]
51
52 * ``[TOOL1] [TOOL2]`` are optional specialized analysis tools used
53 (e.g., coccinelle, sparse, smatch, clang-tidy)
54
55 Basic development tools (git, gcc, make, editors) should not be listed. 56
57 Example::
58
59 Assisted-by: LLM coccinelle sparse
Quoted 3 lines
Yes, only listing LLM is the bottom line, and list the detailed model name is better.
If you don’t want to post v2 patch, you can give me a line of Assisted-by: , I can replace it in the patch.
Quoted 34 lines
Thanks.
Coly Li
Quoted 28 lines
Quoted 28 lines
Quoted 2 lines
Signed-off-by Rosen Penev <[email protected]>Thanks.
Coly Li
Quoted 21 lines
---
drivers/md/bcache/request.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/md/bcache/request.c +1
-3@@ -285,9 +285,8 @@ static CLOSURE_CALLBACK(bch_data_insert_start) } } -/** +/* * bch_data_insert - stick some data in the cache -* @cl: closure pointer. * * This is the starting point for any data to end up in a cache device; it could * be from a normal write, or a writeback write, or a write to a flash only -- 2.56.0