mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sherry Yang <sherry.yang@oracle.com>
To: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: "robdclark@gmail.com" <robdclark@gmail.com>,
	"dmitry.baryshkov@linaro.org" <dmitry.baryshkov@linaro.org>,
	"sean@poorly.run" <sean@poorly.run>,
	"marijn.suijten@somainline.org" <marijn.suijten@somainline.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"daniel@ffwll.ch" <daniel@ffwll.ch>,
	"ruanjinjie@huawei.com" <ruanjinjie@huawei.com>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"freedreno@lists.freedesktop.org"
	<freedreno@lists.freedesktop.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/1] drm/msm: fix %s null argument error
Date: Tue, 27 Aug 2024 18:48:34 +0000	[thread overview]
Message-ID: <5BB01958-8611-458D-B813-F28CD3BA0A15@oracle.com> (raw)
In-Reply-To: <e8169167-3de3-4fc7-90c4-ac3b9fb60c38@quicinc.com>


> On Aug 27, 2024, at 10:50 AM, Abhinav Kumar <quic_abhinavk@quicinc.com> wrote:
> 
> 
> 
> On 8/27/2024 9:53 AM, Sherry Yang wrote:
>> The following build error was triggered because of NULL string argument:
>> BUILDSTDERR: drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c: In function 'mdp5_smp_dump':
>> BUILDSTDERR: drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c:352:51: error: '%s' directive argument is null [-Werror=format-overflow=]
>> BUILDSTDERR:   352 |                         drm_printf(p, "%s:%d\t%d\t%s\n",
>> BUILDSTDERR:       |                                                   ^~
>> BUILDSTDERR: drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c:352:51: error: '%s' directive argument is null [-Werror=format-overflow=]
>> This happens from the commit a61ddb4393ad ("drm: enable (most) W=1
>> warnings by default across the subsystem"). Using "(null)" instead
>> to fix it.
>> Fixes: bc5289eed481 ("drm/msm/mdp5: add debugfs to show smp block status")
>> Signed-off-by: Sherry Yang <sherry.yang@oracle.com>
>> ---
>>  drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> I am not sure how the patch got titled 1/1 and not just "PATCH". It should be just "PATCH"

My bad. I generated the patch with parameter “--numbered” in “git format-patch”, it will output in [PATCH n/m] format, even with a single patch. Will drop it for single patch next time.

Thanks,
Sherry

> 
>> diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
>> index 3a7f7edda96b..500b7dc895d0 100644
>> --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
>> +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
>> @@ -351,7 +351,7 @@ void mdp5_smp_dump(struct mdp5_smp *smp, struct drm_printer *p,
>>     drm_printf(p, "%s:%d\t%d\t%s\n",
>>   pipe2name(pipe), j, inuse,
>> - plane ? plane->name : NULL);
>> + plane ? plane->name : "(null)");
>>     total += inuse;
>>   }
> 
> Change itself looks fine to me,
> 
> 
> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>



  reply	other threads:[~2024-08-27 18:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-27 16:53 Sherry Yang
2024-08-27 17:50 ` Abhinav Kumar
2024-08-27 18:48   ` Sherry Yang [this message]
2024-09-05  3:33 ` Dmitry Baryshkov

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=5BB01958-8611-458D-B813-F28CD3BA0A15@oracle.com \
    --to=sherry.yang@oracle.com \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dmitry.baryshkov@linaro.org \
    --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=marijn.suijten@somainline.org \
    --cc=quic_abhinavk@quicinc.com \
    --cc=robdclark@gmail.com \
    --cc=ruanjinjie@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®