All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhaoxiao <zhaoxiao@uniontech.com>
To: robdclark@gmail.com, sean@poorly.run, airlied@linux.ie,
	linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] drm/drv: Remove initialization of static variables
Date: Tue, 10 Aug 2021 19:25:01 +0800	[thread overview]
Message-ID: <622b0d89-2d75-8e60-4dd4-3e5fc49f5eb8@uniontech.com> (raw)
In-Reply-To: <YRJOCzKVJOfCS4Ro@phenom.ffwll.local>

[-- Attachment #1: Type: text/plain, Size: 1677 bytes --]

Thanks for you advice, and I modify the patch according to your suggestions.

在 2021/8/10 下午5:59, Daniel Vetter 写道:
> On Fri, Aug 06, 2021 at 10:30:47AM +0800, zhaoxiao wrote:
>> 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;
>>
>> Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com>
> 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
>
>> ---
>> v2: change the patch description
>>   drivers/gpu/drm/msm/msm_drv.c | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
>> index 9b8fa2ad0d84..d9ca4bc9620b 100644
>> --- a/drivers/gpu/drm/msm/msm_drv.c
>> +++ b/drivers/gpu/drm/msm/msm_drv.c
>> @@ -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
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 2306 bytes --]

      reply	other threads:[~2021-08-10 11:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-06  2:30 [PATCH v2] drm/drv: Remove initialization of static variables zhaoxiao
2021-08-10  9:59 ` Daniel Vetter
2021-08-10 11:25   ` zhaoxiao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=622b0d89-2d75-8e60-4dd4-3e5fc49f5eb8@uniontech.com \
    --to=zhaoxiao@uniontech.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robdclark@gmail.com \
    --cc=sean@poorly.run \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.