Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1418639
| From | Doug Anderson <dianders@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drm/rockchip: fix compile warnings for 64-bit |
| Date | 2016-06-09 23:00 +0200 |
| Message-ID | <rIfdv-360-17@gated-at.bofh.it> (permalink) |
| References | <rIcfD-18x-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Brian,
On Thu, Jun 9, 2016 at 10:46 AM, Brian Norris <briannorris@chromium.org> wrote:
> Rockchip DRM does not yet build properly for ARM64, but we might as well
> get the printf formatting correct now, to avoid the following warnings:
>
> drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c: In function 'rockchip_drm_fbdev_create':
> drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c:111:2: warning: format '%d' expects argument of type 'int', but argument 8 has type 'size_t' [-Wformat=]
> DRM_DEBUG_KMS("FB [%dx%d]-%d kvaddr=%p offset=%ld size=%d\n",
> ^
>
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_gem_alloc_buf':
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c:41:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'size_t' [-Wformat=]
> DRM_ERROR("failed to allocate %#x byte dma buffer", obj->size);
> ^
>
> Signed-off-by: Brian Norris <briannorris@chromium.org>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 2 +-
> drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] drm/rockchip: fix compile warnings for 64-bit Brian Norris <briannorris@chromium.org> - 2016-06-09 19:50 +0200
Re: [PATCH] drm/rockchip: fix compile warnings for 64-bit Doug Anderson <dianders@chromium.org> - 2016-06-09 23:00 +0200
Re: [PATCH] drm/rockchip: fix compile warnings for 64-bit Daniel Vetter <daniel@ffwll.ch> - 2016-06-10 16:40 +0200
Re: [PATCH] drm/rockchip: fix compile warnings for 64-bit Caesar Wang <wxt@rock-chips.com> - 2016-06-10 03:00 +0200
csiph-web