From: Eric Anholt <eric@anholt.net>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>,
David Airlie <airlied@linux.ie>
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Subject: Re: [PATCH] drm/vc4: fix build warning
Date: Thu, 24 Dec 2015 15:50:17 -0800 [thread overview]
Message-ID: <87twn7qudi.fsf@eliezer.anholt.net> (raw)
In-Reply-To: <1450856198-27306-1-git-send-email-sudipm.mukherjee@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 589 bytes --]
Sudip Mukherjee <sudipm.mukherjee@gmail.com> writes:
> We were getting build warning:
>
> drivers/gpu/drm/vc4/vc4_validate.c: In function 'validate_gl_shader_rec':
> drivers/gpu/drm/vc4/vc4_validate.c:864:4:
> warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
> DRM_ERROR("BO offset overflow (%d + %d > %d)\n",
>
> vbo->base.size is size_t and for printing size_t we should be using %zu.
>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
and I've pulled it for the next round of fixes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
prev parent reply other threads:[~2015-12-24 23:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-23 7:36 Sudip Mukherjee
2015-12-24 23:50 ` Eric Anholt [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=87twn7qudi.fsf@eliezer.anholt.net \
--to=eric@anholt.net \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sudipm.mukherjee@gmail.com \
/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®