Skip to contentSkip to conversation

drm/nouveau: add missing spaces after ',' and before '('

PATCH New [email protected] 1 participant 1 message Jul 11, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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 '('

---
 drivers/gpu/drm/nouveau/nouveau_drv.h | 28 +++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/gpu/drm/nouveau/nouveau_drv.h +9 -9
index b5de312a523f..89ee6cba0ad6 100644
@@ -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;