Skip to contentSkip to conversation

drm:This patch fixes the checkpatch.pl error to msm_drv.c

PATCH In review zhaoxiao 2 participants 2 messages Jul 30, 2021

Subsystems (3)
lore
Share & tools
lore

zhaoxiao

author
#0 lore raw

PATCH 1/1 drm:This patch fixes the checkpatch.pl error to msm_drv.c

ERROR: do not initialise statics to false

---
 drivers/gpu/drm/msm/msm_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/msm_drv.c +2 -2
index 9b8fa2ad0d84..d9ca4bc9620b 100644
@@ -59,7 +59,7 @@ static const struct drm_mode_config_helper_funcs mode_config_helper_funcs = {
 };
 
 #ifdef CONFIG_DRM_MSM_REGISTER_LOGGING
-static bool reglog = false;
+static bool reglog;
 MODULE_PARM_DESC(reglog, "Enable register read/write logging");
 module_param(reglog, bool, 0600);
 #else
@@ -76,7 +76,7 @@ static char *vram = "16m";
 MODULE_PARM_DESC(vram, "Configure VRAM size (for devices without IOMMU/GPUMMU)");
 module_param(vram, charp, 0);
 
-bool dumpstate = false;
+bool dumpstate;
 MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors");
 module_param(dumpstate, bool, 0600);
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 4 lines · zhaoxiao

ERROR: do not initialise statics to false

Could you please resend this patch following the style of the rest of patches being submitted to this area? Subject, more detailed patch description, etc.

Quoted 31 lines
---
 drivers/gpu/drm/msm/msm_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/msm_drv.c +2 -3
index 9b8fa2ad0d84..d9ca4bc9620b 100644
@@ -59,7 +59,7 @@ static const struct drm_mode_config_helper_funcs mode_config_helper_funcs = {
 };
 
 #ifdef CONFIG_DRM_MSM_REGISTER_LOGGING
-static bool reglog = false;
+static bool reglog;
 MODULE_PARM_DESC(reglog, "Enable register read/write logging");
 module_param(reglog, bool, 0600);
 #else
@@ -76,7 +76,7 @@ static char *vram = "16m";
 MODULE_PARM_DESC(vram, "Configure VRAM size (for devices without IOMMU/GPUMMU)");
 module_param(vram, charp, 0);
 
-bool dumpstate = false;
+bool dumpstate;
 MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors");
 module_param(dumpstate, bool, 0600);
 
--

2.20.1

Signature · 2 lines
With best wishes
Dmitry