lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <06a42364d7f22ab01d90c0c3308deaf4@208suo.com>
Date:   Tue, 11 Jul 2023 14:24:11 +0800
From:   sunran001@...suo.com
To:     airlied@...il.com, daniel@...ll.ch
Cc:     dri-devel@...ts.freedesktop.org, nouveau@...ts.freedesktop.org,
        linux-kernel@...r.kernel.org
Subject: [PATCH] drm/nouveau: add missing spaces after ',' and before '('

Add missing spaces to clear checkpatch errors.

ERROR: space required after that ',' (ctx:VxV)
ERROR: space required before the open parenthesis '('

Signed-off-by: Ran Sun <sunran001@...suo.com>
---
  drivers/gpu/drm/nouveau/nouveau_drv.h | 28 +++++++++++++--------------
  1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h 
b/drivers/gpu/drm/nouveau/nouveau_drv.h
index b5de312a523f..89ee6cba0ad6 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -248,30 +248,30 @@ nouveau_platform_device_create(const struct 
nvkm_device_tegra_func *,
                     struct platform_device *, struct nvkm_device **);
  void nouveau_drm_device_remove(struct drm_device *dev);

-#define NV_PRINTK(l,c,f,a...) do {                                      
        \
+#define NV_PRINTK(l, c, f, a...) do {                                   
           \
      struct nouveau_cli *_cli = (c);                                     
    \
      dev_##l(_cli->drm->dev->dev, "%s: "f, _cli->name, ##a);             
    \
-} while(0)
+} while (0)

-#define NV_FATAL(drm,f,a...) NV_PRINTK(crit, &(drm)->client, f, ##a)
-#define NV_ERROR(drm,f,a...) NV_PRINTK(err, &(drm)->client, f, ##a)
-#define NV_WARN(drm,f,a...) NV_PRINTK(warn, &(drm)->client, f, ##a)
-#define NV_INFO(drm,f,a...) NV_PRINTK(info, &(drm)->client, f, ##a)
+#define NV_FATAL(drm, f, a...) NV_PRINTK(crit, &(drm)->client, f, ##a)
+#define NV_ERROR(drm, f, a...) NV_PRINTK(err, &(drm)->client, f, ##a)
+#define NV_WARN(drm, f, a...) NV_PRINTK(warn, &(drm)->client, f, ##a)
+#define NV_INFO(drm, f, a...) NV_PRINTK(info, &(drm)->client, f, ##a)

-#define NV_DEBUG(drm,f,a...) do {                                       
        \
+#define NV_DEBUG(drm, f, a...) do {                                     
          \
      if (drm_debug_enabled(DRM_UT_DRIVER))                               
    \
          NV_PRINTK(info, &(drm)->client, f, ##a);                       
\
-} while(0)
-#define NV_ATOMIC(drm,f,a...) do {                                      
        \
+} while (0)
+#define NV_ATOMIC(drm, f, a...) do {                                    
          \
      if (drm_debug_enabled(DRM_UT_ATOMIC))                               
    \
          NV_PRINTK(info, &(drm)->client, f, ##a);                       
\
-} while(0)
+} while (0)

-#define NV_PRINTK_ONCE(l,c,f,a...) NV_PRINTK(l##_once,c,f, ##a)
+#define NV_PRINTK_ONCE(l, c, f, a...) NV_PRINTK(l##_once, c, f, ##a)

-#define NV_ERROR_ONCE(drm,f,a...) NV_PRINTK_ONCE(err, &(drm)->client, 
f, ##a)
-#define NV_WARN_ONCE(drm,f,a...) NV_PRINTK_ONCE(warn, &(drm)->client, 
f, ##a)
-#define NV_INFO_ONCE(drm,f,a...) NV_PRINTK_ONCE(info, &(drm)->client, 
f, ##a)
+#define NV_ERROR_ONCE(drm, f, a...) NV_PRINTK_ONCE(err, &(drm)->client, 
f, ##a)
+#define NV_WARN_ONCE(drm, f, a...) NV_PRINTK_ONCE(warn, &(drm)->client, 
f, ##a)
+#define NV_INFO_ONCE(drm, f, a...) NV_PRINTK_ONCE(info, &(drm)->client, 
f, ##a)

  extern int nouveau_modeset;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ