From: Ville Syrjälä <ville.syrj...@linux.intel.com>

../drivers/gpu/drm/armada/armada_gem.c: In function ‘armada_gem_pwrite_ioctl’:
../drivers/gpu/drm/armada/armada_gem.c:367:27: warning: format ‘%u’ expects 
argument of type ‘unsigned int’, but argument 2 has type ‘size_t’ {aka ‘long 
unsigned int’} [-Wformat=]
  367 |                 DRM_ERROR("invalid size: object size %u\n", 
dobj->obj.size);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
~~~~~~~~~~~~~~
      |                                                                      |
      |                                                                      
size_t {aka long unsigned int}

Cc: Russell King <li...@armlinux.org.uk>
Signed-off-by: Ville Syrjälä <ville.syrj...@linux.intel.com>
---
 drivers/gpu/drm/armada/armada_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/armada/armada_gem.c 
b/drivers/gpu/drm/armada/armada_gem.c
index 26d10065d534..e9575ef5aaef 100644
--- a/drivers/gpu/drm/armada/armada_gem.c
+++ b/drivers/gpu/drm/armada/armada_gem.c
@@ -364,7 +364,7 @@ int armada_gem_pwrite_ioctl(struct drm_device *dev, void 
*data,
 
        if (args->offset > dobj->obj.size ||
            args->size > dobj->obj.size - args->offset) {
-               DRM_ERROR("invalid size: object size %u\n", dobj->obj.size);
+               DRM_ERROR("invalid size: object size %zu\n", dobj->obj.size);
                ret = -EINVAL;
                goto unref;
        }
-- 
2.43.2

Reply via email to