All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Russell, Kent" <Kent.Russell@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: "Deucher, Alexander" <Alexander.Deucher@amd.com>,
	amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: RE: [PATCH] drm/amdkfd: fix wanting in print statement
Date: Tue, 22 Sep 2020 14:00:40 +0000	[thread overview]
Message-ID: <DM6PR12MB3721A1538D5D4418B1268A28853B0@DM6PR12MB3721.namprd12.prod.outlook.com> (raw)
In-Reply-To: <CADnq5_OHSmBu4Jk5nsy_O8SVdA0Cs-S0GSt+tQV_SHqY+hKUzw@mail.gmail.com>

[AMD Public Use]

Definitely. Reviewed-by: Kent Russell <kent.russell@amd.com> . 

> -----Original Message-----
> From: Alex Deucher <alexdeucher@gmail.com>
> Sent: Tuesday, September 22, 2020 9:59 AM
> To: Russell, Kent <Kent.Russell@amd.com>
> Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>; Deucher, Alexander
> <Alexander.Deucher@amd.com>
> Subject: Re: [PATCH] drm/amdkfd: fix wanting in print statement
> 
> Can I get an RB?
> 
> On Tue, Sep 22, 2020 at 9:56 AM Russell, Kent <Kent.Russell@amd.com> wrote:
> >
> > [AMD Public Use]
> >
> > Thanks Alex, sorry about that!
> >
> >  Kent
> >
> > > -----Original Message-----
> > > From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Alex Deucher
> > > Sent: Monday, September 21, 2020 5:33 PM
> > > To: amd-gfx list <amd-gfx@lists.freedesktop.org>
> > > Cc: Deucher, Alexander <Alexander.Deucher@amd.com>
> > > Subject: Re: [PATCH] drm/amdkfd: fix wanting in print statement
> > >
> > > "warning" in print statement.  Fixed locally.
> > >
> > > On Mon, Sep 21, 2020 at 5:20 PM Alex Deucher <alexdeucher@gmail.com> wrote:
> > > >
> > > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c: In function
> > > ‘kfd_create_crat_image_virtual’:
> > > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1391:12: warning: format ‘%d’
> > > expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’}
> [-
> > > Wformat=]
> > > >  1391 |   pr_debug("CRAT size is %d", dyn_size);
> > > >       |            ^~~~~~~~~~~~~~~~~
> > > > ./include/linux/printk.h:297:21: note: in definition of macro ‘pr_fmt’
> > > >   297 | #define pr_fmt(fmt) fmt
> > > >       |                     ^~~
> > > > ./include/linux/dynamic_debug.h:143:2: note: in expansion of macro
> > > ‘__dynamic_func_call’
> > > >   143 |  __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
> > > >       |  ^~~~~~~~~~~~~~~~~~~
> > > > ./include/linux/dynamic_debug.h:153:2: note: in expansion of macro
> > > ‘_dynamic_func_call’
> > > >   153 |  _dynamic_func_call(fmt, __dynamic_pr_debug,  \
> > > >       |  ^~~~~~~~~~~~~~~~~~
> > > > ./include/linux/printk.h:420:2: note: in expansion of macro ‘dynamic_pr_debug’
> > > >   420 |  dynamic_pr_debug(fmt, ##__VA_ARGS__)
> > > >       |  ^~~~~~~~~~~~~~~~
> > > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1391:3: note: in expansion of
> macro
> > > ‘pr_debug’
> > > >  1391 |   pr_debug("CRAT size is %d", dyn_size);
> > > >       |   ^~~~~~~~
> > > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1391:27: note: format string is
> > > defined here
> > > >  1391 |   pr_debug("CRAT size is %d", dyn_size);
> > > >       |                          ~^
> > > >       |                           |
> > > >       |                           int
> > > >       |                          %ld
> > > >
> > > > Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> > > > ---
> > > >  drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> > > b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> > > > index c50e9f634d6c..d2981524dba0 100644
> > > > --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> > > > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> > > > @@ -1388,7 +1388,7 @@ int kfd_create_crat_image_virtual(void **crat_image, size_t
> > > *size,
> > > >                 if (!pcrat_image)
> > > >                         return -ENOMEM;
> > > >                 *size = dyn_size;
> > > > -               pr_debug("CRAT size is %d", dyn_size);
> > > > +               pr_debug("CRAT size is %ld", dyn_size);
> > > >                 ret = kfd_create_vcrat_image_cpu(pcrat_image, size);
> > > >                 break;
> > > >         case COMPUTE_UNIT_GPU:
> > > > --
> > > > 2.25.4
> > > >
> > > _______________________________________________
> > > amd-gfx mailing list
> > > amd-gfx@lists.freedesktop.org
> > >
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.or
> > > g%2Fmailman%2Flistinfo%2Famd-
> > >
> gfx&amp;data=02%7C01%7Ckent.russell%40amd.com%7C611fc25735e041fbd3d708d85e75
> > >
> e355%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637363207721737766&amp;
> > > sdata=BvMRCPYK0WuXTJAotNMFfG7lBn2t4dYogDUoRZQrTdA%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

      reply	other threads:[~2020-09-22 14:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21 21:20 [PATCH] drm/amdkfd: fix wanting in print statement Alex Deucher
2020-09-21 21:32 ` Alex Deucher
2020-09-22 13:56   ` Russell, Kent
2020-09-22 13:59     ` Alex Deucher
2020-09-22 14:00       ` Russell, Kent [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=DM6PR12MB3721A1538D5D4418B1268A28853B0@DM6PR12MB3721.namprd12.prod.outlook.com \
    --to=kent.russell@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=alexdeucher@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    /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.