Message ID | 20221230183500.20553-1-nirmoy.das@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/i915: Use "%zu" to format size_t | expand |
Nirmoy, thanks for fixing it Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com> On 12/30/22 8:35 PM, Nirmoy Das wrote: > Switch to %zu for printing size_t which will > fix compilation warning for 32-bit build. > > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> > --- > drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > index e767791e40e0..114443096841 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > @@ -238,7 +238,7 @@ static int shmem_get_pages(struct drm_i915_gem_object *obj) > goto rebuild_st; > } else { > dev_warn(i915->drm.dev, > - "Failed to DMA remap %lu pages\n", > + "Failed to DMA remap %zu pages\n", > obj->base.size >> PAGE_SHIFT); > goto err_pages; > }
On Fri, Dec 30, 2022 at 07:35:00PM +0100, Nirmoy Das wrote: > Switch to %zu for printing size_t which will > fix compilation warning for 32-bit build. > > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Andi > --- > drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > index e767791e40e0..114443096841 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > @@ -238,7 +238,7 @@ static int shmem_get_pages(struct drm_i915_gem_object *obj) > goto rebuild_st; > } else { > dev_warn(i915->drm.dev, > - "Failed to DMA remap %lu pages\n", > + "Failed to DMA remap %zu pages\n", > obj->base.size >> PAGE_SHIFT); > goto err_pages; > } > -- > 2.38.0
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c index e767791e40e0..114443096841 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c @@ -238,7 +238,7 @@ static int shmem_get_pages(struct drm_i915_gem_object *obj) goto rebuild_st; } else { dev_warn(i915->drm.dev, - "Failed to DMA remap %lu pages\n", + "Failed to DMA remap %zu pages\n", obj->base.size >> PAGE_SHIFT); goto err_pages; }
Switch to %zu for printing size_t which will fix compilation warning for 32-bit build. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> --- drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)