fs: direct-io: Fixed a Documentation build warn
A message that is not in the archive (sent off-list or not yet received): 20190923123701.GA9627@madhuparna-HP-Notebook
A message that is not in the archive (sent off-list or not yet received): CAF65HP3W3OM-Euc28fpZc_EPcG9KzEt8==UOC0fgS8ODoWRXiA@mail.gmail.com
PATCH 1/1 fs: direct-io: Fixed a Documentation build warn
Fixed Excess function parameters warning.
warning: Excess function parameter 'offset' description in 'dio_complete'.
Removed the description of the local variable offset from the description for arguments of a function and added it with the declaration of the variable.
--- fs/direct-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/direct-io.c +0 -1
@@ -243,7 +243,6 @@ void dio_warn_stale_pagecache(struct file *filp)/** * dio_complete() - called when all DIO BIO I/O has been completed -* @offset: the byte offset in the file of the completed operation * * This drops i_dio_count, lets interested parties know that a DIO
operation
* has completed, and calculates the resulting return code for the
operation.
@@ -255,6 +254,7 @@ void dio_warn_stale_pagecache(struct file *filp)
*/
static ssize_t dio_complete(struct dio *dio, ssize_t ret, unsigned int
flags)
{
+ /* offset: the byte offset in the file of the completed operation */
loff_t offset = dio->iocb->ki_pos;
ssize_t transferred = 0;
int err;Signature · 7 lines
2.17.1 ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linuxfoundation.org/pipermail/linux-kernel-mentees/attachments/20190924/d297bba5/attachment.html>
Quoted 6 lines · Madhuparna Bhowmik
Fixed Excess function parameters warning.
warning: Excess function parameter 'offset' description in 'dio_complete'.
Removed the description of the local variable offset from the description for arguments of a function and added it with the declaration of the variable.
Change the commit log to say: Fixes instead of Fixed and Removes instead of Removed.
Also I think what you mean to say is that the this patch removes offset which isn't an argument to the function from the function header. Can you rephrase the commit log.
Quoted 3 lines
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik04 at gmail.com <mailto:madhuparnabhowmik04 at gmail.com>>
Why is this a Fwd::
Quoted 26 lines
--- ?fs/direct-io.c | 2 +-?1 file changed, 1 insertion(+), 1 deletion(-)
fs/direct-io.c +0
-1@@ -243,7 +243,6 @@ void dio_warn_stale_pagecache(struct file *filp) ?/**? * dio_complete() - called when all DIO BIO I/O has been completed -* @offset: the byte offset in the file of the completed operation ? * ? * This drops i_dio_count, lets interested parties know that a DIO operation
? * has completed, and calculates the resulting return code for the
operation.fs/direct-io.c +1
-0@@ -255,6 +254,7 @@ void dio_warn_stale_pagecache(struct file *filp)? */ ?static ssize_t dio_complete(struct dio *dio, ssize_t ret, unsigned int flags) ?{ +? ? ? ?/* offset: the byte offset in the file of the completed operation */ ? ? ? ? loff_t offset = dio->iocb->ki_pos; ? ? ? ? ssize_t transferred = 0;
Quoted 6 lines
? ? ? ? int err;
Signature · 4 lines
2.17.1 ? ?
thanks,
-- Shuah