[Openchrome-devel] [PATCH kms_branch] Fix compiler warnings for x86_64
James Simmons
jsimmons
Tue Jun 19 16:17:33 PDT 2012
> Minor fixes that makes it compile with -Werror on x86_64
> ---
> src/via_dri.c | 2 +-
> src/via_lvds.c | 2 +-
> src/via_memmgr.c | 4 ++--
> 3 files changed, 4 insertions(+), 4 deletions(-)
Applied.
Acked: James Simmons <jsimmons at infradead.org>
> diff --git a/src/via_dri.c b/src/via_dri.c
> index f5e3021..d42d495 100644
> --- a/src/via_dri.c
> +++ b/src/via_dri.c
> @@ -341,7 +341,7 @@ VIADRIAgpInit(ScrnInfoPtr pScrn)
> xf86DrvMsg(pScrn->scrnIndex, X_INFO,
> "[drm] agpSize = 0x%08x\n", pVia->agpSize);
> xf86DrvMsg(pScrn->scrnIndex, X_INFO,
> - "[drm] agp physical addr = 0x%08lx\n", pVia->agpMappedAddr);
> + "[drm] agp physical addr = %p\n", pVia->agpMappedAddr);
> return TRUE;
> }
>
> diff --git a/src/via_lvds.c b/src/via_lvds.c
> index 201456c..d85b007 100644
> --- a/src/via_lvds.c
> +++ b/src/via_lvds.c
> @@ -1424,7 +1424,7 @@ via_lvds_get_modes(xf86OutputPtr output)
> p->type = M_T_DRIVER | M_T_PREFERRED;
> } else {
> xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
> - "Out of memory. Size: %d bytes\n", sizeof(DisplayModeRec));
> + "Out of memory. Size: %zu bytes\n", sizeof(DisplayModeRec));
> }
> } else {
> xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
> diff --git a/src/via_memmgr.c b/src/via_memmgr.c
> index 11fc5fa..3123eac 100644
> --- a/src/via_memmgr.c
> +++ b/src/via_memmgr.c
> @@ -219,13 +219,13 @@ drm_bo_free(ScrnInfoPtr pScrn, struct buffer_object *obj)
> drm.index = obj->handle;
> if (drmCommandWrite(pVia->drmmode.fd, DRM_VIA_FREEMEM,
> &drm, sizeof(drm_via_mem_t)) < 0)
> - ErrorF("DRM failed to free for handle %lld.\n", obj->handle);
> + ErrorF("DRM failed to free for handle %lu.\n", obj->handle);
> } else if (pVia->directRenderingType == DRI_2) {
> struct drm_gem_close close;
>
> close.handle = obj->handle;
> if (drmIoctl(pVia->drmmode.fd, DRM_IOCTL_GEM_CLOSE, &close) < 0)
> - ErrorF("DRM failed to free for handle %lld.\n", obj->handle);
> + ErrorF("DRM failed to free for handle %lu.\n", obj->handle);
> #endif
> }
> break;
> --
> 1.7.10.4
>
>
> _______________________________________________
> Openchrome-devel mailing list
> Openchrome-devel at openchrome.org
> http://wiki.openchrome.org/mailman/listinfo/openchrome-devel
>
>
>
More information about the Openchrome-devel
mailing list