public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ata: space required after that ','
       [not found] <tencent_1D2A7704CC3721452CCE2B2E86EE04F5D90A@qq.com>
@ 2023-07-18  9:48 ` hanyu001
  2023-07-18 10:49   ` Damien Le Moal
  0 siblings, 1 reply; 2+ messages in thread
From: hanyu001 @ 2023-07-18  9:48 UTC (permalink / raw)
  To: dlemoal; +Cc: linux-ide, linux-kernel

Fixes the following checkpatch errors:

./drivers/ata/libata-transport.c:92: ERROR: space required after that 
',' (ctx:VxV)
./drivers/ata/libata-transport.c:92: ERROR: space required after that 
',' (ctx:VxV)
./drivers/ata/libata-transport.c:92: ERROR: space required after that 
',' (ctx:VxV)
./drivers/ata/libata-transport.c:92: ERROR: space required after that 
',' (ctx:VxV)
./drivers/ata/libata-transport.c:94: ERROR: space required after that 
',' (ctx:VxV)
./drivers/ata/libata-transport.c:94: ERROR: space required after that 
',' (ctx:VxV)
./drivers/ata/libata-transport.c:94: ERROR: space required after that 
',' (ctx:VxV)

Signed-off-by: Yu Han <	hanyu001@208suo.com>
---
  drivers/ata/libata-transport.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/libata-transport.c 
b/drivers/ata/libata-transport.c
index e4fb9d1..4e87f77 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -89,9 +89,9 @@ struct ata_internal {
  /*
   * Hack to allow attributes of the same name in different objects.
   */
-#define ATA_DEVICE_ATTR(_prefix,_name,_mode,_show,_store) \
+#define ATA_DEVICE_ATTR(_prefix, _name, _mode, _show, _store) \
      struct device_attribute device_attr_##_prefix##_##_name = \
-    __ATTR(_name,_mode,_show,_store)
+    __ATTR(_name, _mode, _show, _store)

  #define ata_bitfield_name_match(title, table)            \
  static ssize_t                            \

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

* Re: [PATCH] ata: space required after that ','
  2023-07-18  9:48 ` [PATCH] ata: space required after that ',' hanyu001
@ 2023-07-18 10:49   ` Damien Le Moal
  0 siblings, 0 replies; 2+ messages in thread
From: Damien Le Moal @ 2023-07-18 10:49 UTC (permalink / raw)
  To: hanyu001; +Cc: linux-ide, linux-kernel

On 7/18/23 18:48, hanyu001@208suo.com wrote:
> Fixes the following checkpatch errors:

Same comment as in my previous email. What patch triggers this ?
Yes it is a bad code style and changing the code in that area will definitely
trigger warnings with checkpatch. But you are not changing anything...
So let's avoid churn please. If you actually fix something in that area, then
OK, add this syntax change as well.

> 
> ./drivers/ata/libata-transport.c:92: ERROR: space required after that 
> ',' (ctx:VxV)
> ./drivers/ata/libata-transport.c:92: ERROR: space required after that 
> ',' (ctx:VxV)
> ./drivers/ata/libata-transport.c:92: ERROR: space required after that 
> ',' (ctx:VxV)
> ./drivers/ata/libata-transport.c:92: ERROR: space required after that 
> ',' (ctx:VxV)
> ./drivers/ata/libata-transport.c:94: ERROR: space required after that 
> ',' (ctx:VxV)
> ./drivers/ata/libata-transport.c:94: ERROR: space required after that 
> ',' (ctx:VxV)
> ./drivers/ata/libata-transport.c:94: ERROR: space required after that 
> ',' (ctx:VxV)
> 
> Signed-off-by: Yu Han <	hanyu001@208suo.com>
> ---
>   drivers/ata/libata-transport.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/ata/libata-transport.c 
> b/drivers/ata/libata-transport.c
> index e4fb9d1..4e87f77 100644
> --- a/drivers/ata/libata-transport.c
> +++ b/drivers/ata/libata-transport.c
> @@ -89,9 +89,9 @@ struct ata_internal {
>   /*
>    * Hack to allow attributes of the same name in different objects.
>    */
> -#define ATA_DEVICE_ATTR(_prefix,_name,_mode,_show,_store) \
> +#define ATA_DEVICE_ATTR(_prefix, _name, _mode, _show, _store) \
>       struct device_attribute device_attr_##_prefix##_##_name = \
> -    __ATTR(_name,_mode,_show,_store)
> +    __ATTR(_name, _mode, _show, _store)
> 
>   #define ata_bitfield_name_match(title, table)            \
>   static ssize_t                            \

-- 
Damien Le Moal
Western Digital Research


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

end of thread, other threads:[~2023-07-18 10:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <tencent_1D2A7704CC3721452CCE2B2E86EE04F5D90A@qq.com>
2023-07-18  9:48 ` [PATCH] ata: space required after that ',' hanyu001
2023-07-18 10:49   ` Damien Le Moal

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