drm/drv: Remove initialization of static variables
PATCH v2 1/1 drm/drv: Remove initialization of static variables
Address the following checkpatch errors:
ERROR: do not initialise statics to false
FILE: :drivers/gpu/drm/msm/msm_drv.c:21:
-static bool reglog = false;
FILE: :drivers/gpu/drm/msm/msm_drv.c:31:
-bool dumpstate = false;
---
v2: change the patch description
drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/msm_drv.c +2 -2
@@ -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
Quoted 10 lines · zhaoxiao
Address the following checkpatch errors:
ERROR: do not initialise statics to falseFILE: :drivers/gpu/drm/msm/msm_drv.c:21:
-static bool reglog = false;FILE: :drivers/gpu/drm/msm/msm_drv.c:31:
-bool dumpstate = false;Signed-off-by zhaoxiao <[email protected]>
Subject should start out with drm/msm, not drm/drv - that would indicate a patch touching the drm_drv.c core files, or things related to that. -Daniel
Quoted 32 lines
---
v2: change the patch descriptiondrivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/msm/msm_drv.c +2
-2@@ -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
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Thanks for you advice, and I modify the patch according to your suggestions.
Quoted 47 lines · Daniel Vetter
Quoted 10 lines · zhaoxiao
Address the following checkpatch errors:
ERROR: do not initialise statics to falseFILE: :drivers/gpu/drm/msm/msm_drv.c:21:
-static bool reglog = false;FILE: :drivers/gpu/drm/msm/msm_drv.c:31:
-bool dumpstate = false;Signed-off-by zhaoxiao <[email protected]>Subject should start out with drm/msm, not drm/drv - that would indicate a patch touching the
drm_drv.ccore files, or things related to that. -DanielQuoted 32 lines
---
v2: change the patch descriptiondrivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/msm/msm_drv.c +2
-2@@ -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