mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3] io: correct doc-mismatches for io mem ops
@ 2020-04-24  2:08 Wang Wenhu
  2020-04-24  2:10 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Wenhu @ 2020-04-24  2:08 UTC (permalink / raw)
  To: arnd, linux-arch, linux-kernel; +Cc: rdunlap, kernel, Wang Wenhu

Minor mismatches exist between funtion documentations and parameter
definitions. Also a dash '-' is needed between a function name and
its description.

Function definitions are as following:
static inline void memset_io(volatile void __iomem *addr, int value,
			     size_t size)
static inline void memcpy_fromio(void *buffer,
				 const volatile void __iomem *addr,
				 size_t size)
static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer,
			       size_t size)

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>
---
 include/asm-generic/io.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index d39ac997dda8..83ac47bfa33a 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -1049,10 +1049,10 @@ static inline void *bus_to_virt(unsigned long address)
 #ifndef memset_io
 #define memset_io memset_io
 /**
- * memset_io	Set a range of I/O memory to a constant value
+ * memset_io -	Set a range of I/O memory to a constant value
  * @addr:	The beginning of the I/O-memory range to set
- * @val:	The value to set the memory to
- * @count:	The number of bytes to set
+ * @value:	The value to set the memory to
+ * @size:	The number of bytes to set
  *
  * Set a range of I/O memory to a given value.
  */
@@ -1066,10 +1066,10 @@ static inline void memset_io(volatile void __iomem *addr, int value,
 #ifndef memcpy_fromio
 #define memcpy_fromio memcpy_fromio
 /**
- * memcpy_fromio	Copy a block of data from I/O memory
- * @dst:		The (RAM) destination for the copy
- * @src:		The (I/O memory) source for the data
- * @count:		The number of bytes to copy
+ * memcpy_fromio -	Copy a block of data from I/O memory
+ * @buffer:		The (RAM) destination for the copy
+ * @addr:		The (I/O memory) source for the data
+ * @size:		The number of bytes to copy
  *
  * Copy a block of data from I/O memory.
  */
@@ -1084,10 +1084,10 @@ static inline void memcpy_fromio(void *buffer,
 #ifndef memcpy_toio
 #define memcpy_toio memcpy_toio
 /**
- * memcpy_toio		Copy a block of data into I/O memory
- * @dst:		The (I/O memory) destination for the copy
- * @src:		The (RAM) source for the data
- * @count:		The number of bytes to copy
+ * memcpy_toio -	Copy a block of data into I/O memory
+ * @addr:		The (I/O memory) destination for the copy
+ * @buffer:		The (RAM) source for the data
+ * @size:		The number of bytes to copy
  *
  * Copy a block of data to I/O memory.
  */
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] io: correct doc-mismatches for io mem ops
  2020-04-24  2:08 [PATCH v3] io: correct doc-mismatches for io mem ops Wang Wenhu
@ 2020-04-24  2:10 ` Randy Dunlap
  2020-04-24  2:17   ` 王文虎
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2020-04-24  2:10 UTC (permalink / raw)
  To: Wang Wenhu, arnd, linux-arch, linux-kernel; +Cc: kernel

On 4/23/20 7:08 PM, Wang Wenhu wrote:
> Minor mismatches exist between funtion documentations and parameter
> definitions. Also a dash '-' is needed between a function name and
> its description.
> 
> Function definitions are as following:
> static inline void memset_io(volatile void __iomem *addr, int value,
> 			     size_t size)
> static inline void memcpy_fromio(void *buffer,
> 				 const volatile void __iomem *addr,
> 				 size_t size)
> static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer,
> 			       size_t size)
> 
> Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>

Thanks for taking care of that.

> ---
>  include/asm-generic/io.h | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
> index d39ac997dda8..83ac47bfa33a 100644
> --- a/include/asm-generic/io.h
> +++ b/include/asm-generic/io.h
> @@ -1049,10 +1049,10 @@ static inline void *bus_to_virt(unsigned long address)
>  #ifndef memset_io
>  #define memset_io memset_io
>  /**
> - * memset_io	Set a range of I/O memory to a constant value
> + * memset_io -	Set a range of I/O memory to a constant value
>   * @addr:	The beginning of the I/O-memory range to set
> - * @val:	The value to set the memory to
> - * @count:	The number of bytes to set
> + * @value:	The value to set the memory to
> + * @size:	The number of bytes to set
>   *
>   * Set a range of I/O memory to a given value.
>   */
> @@ -1066,10 +1066,10 @@ static inline void memset_io(volatile void __iomem *addr, int value,
>  #ifndef memcpy_fromio
>  #define memcpy_fromio memcpy_fromio
>  /**
> - * memcpy_fromio	Copy a block of data from I/O memory
> - * @dst:		The (RAM) destination for the copy
> - * @src:		The (I/O memory) source for the data
> - * @count:		The number of bytes to copy
> + * memcpy_fromio -	Copy a block of data from I/O memory
> + * @buffer:		The (RAM) destination for the copy
> + * @addr:		The (I/O memory) source for the data
> + * @size:		The number of bytes to copy
>   *
>   * Copy a block of data from I/O memory.
>   */
> @@ -1084,10 +1084,10 @@ static inline void memcpy_fromio(void *buffer,
>  #ifndef memcpy_toio
>  #define memcpy_toio memcpy_toio
>  /**
> - * memcpy_toio		Copy a block of data into I/O memory
> - * @dst:		The (I/O memory) destination for the copy
> - * @src:		The (RAM) source for the data
> - * @count:		The number of bytes to copy
> + * memcpy_toio -	Copy a block of data into I/O memory
> + * @addr:		The (I/O memory) destination for the copy
> + * @buffer:		The (RAM) source for the data
> + * @size:		The number of bytes to copy
>   *
>   * Copy a block of data to I/O memory.
>   */
> 


-- 
~Randy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] io: correct doc-mismatches for io mem ops
  2020-04-24  2:10 ` Randy Dunlap
@ 2020-04-24  2:17   ` 王文虎
  0 siblings, 0 replies; 3+ messages in thread
From: 王文虎 @ 2020-04-24  2:17 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: arnd, linux-arch, linux-kernel, kernel

>On 4/23/20 7:08 PM, Wang Wenhu wrote:
>> Minor mismatches exist between funtion documentations and parameter
>> definitions. Also a dash '-' is needed between a function name and
>> its description.
>> 
>> Function definitions are as following:
>> static inline void memset_io(volatile void __iomem *addr, int value,
>> 			     size_t size)
>> static inline void memcpy_fromio(void *buffer,
>> 				 const volatile void __iomem *addr,
>> 				 size_t size)
>> static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer,
>> 			       size_t size)
>> 
>> Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
>> Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>
>
>Thanks for taking care of that.
>

Thanx for your notice, actually I had been trying to cover all, and mainly
targeted for different files of the same function definitions. Maybe at the
first glimpse, memset_io was ok, and I missed it.

Regards,
Wenhu

>> ---
>>  include/asm-generic/io.h | 22 +++++++++++-----------
>>  1 file changed, 11 insertions(+), 11 deletions(-)
>> 
>> diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
>> index d39ac997dda8..83ac47bfa33a 100644
>> --- a/include/asm-generic/io.h
>> +++ b/include/asm-generic/io.h
>> @@ -1049,10 +1049,10 @@ static inline void *bus_to_virt(unsigned long address)
>>  #ifndef memset_io
>>  #define memset_io memset_io
>>  /**
>> - * memset_io	Set a range of I/O memory to a constant value
>> + * memset_io -	Set a range of I/O memory to a constant value
>>   * @addr:	The beginning of the I/O-memory range to set
>> - * @val:	The value to set the memory to
>> - * @count:	The number of bytes to set
>> + * @value:	The value to set the memory to
>> + * @size:	The number of bytes to set
>>   *
>>   * Set a range of I/O memory to a given value.
>>   */
>> @@ -1066,10 +1066,10 @@ static inline void memset_io(volatile void __iomem *addr, int value,
>>  #ifndef memcpy_fromio
>>  #define memcpy_fromio memcpy_fromio
>>  /**
>> - * memcpy_fromio	Copy a block of data from I/O memory
>> - * @dst:		The (RAM) destination for the copy
>> - * @src:		The (I/O memory) source for the data
>> - * @count:		The number of bytes to copy
>> + * memcpy_fromio -	Copy a block of data from I/O memory
>> + * @buffer:		The (RAM) destination for the copy
>> + * @addr:		The (I/O memory) source for the data
>> + * @size:		The number of bytes to copy
>>   *
>>   * Copy a block of data from I/O memory.
>>   */
>> @@ -1084,10 +1084,10 @@ static inline void memcpy_fromio(void *buffer,
>>  #ifndef memcpy_toio
>>  #define memcpy_toio memcpy_toio
>>  /**
>> - * memcpy_toio		Copy a block of data into I/O memory
>> - * @dst:		The (I/O memory) destination for the copy
>> - * @src:		The (RAM) source for the data
>> - * @count:		The number of bytes to copy
>> + * memcpy_toio -	Copy a block of data into I/O memory
>> + * @addr:		The (I/O memory) destination for the copy
>> + * @buffer:		The (RAM) source for the data
>> + * @size:		The number of bytes to copy
>>   *
>>   * Copy a block of data to I/O memory.
>>   */
>> 
>
>
>-- 
>~Randy
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-24  2:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24  2:08 [PATCH v3] io: correct doc-mismatches for io mem ops Wang Wenhu
2020-04-24  2:10 ` Randy Dunlap
2020-04-24  2:17   ` 王文虎

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®