linux-next: build warnings after merge of the drm tree
Hi Dave,
After merging the drm tree, today's linux-next build (x86_64 allmodconfig) produced these warnings:
drivers/gpu/drm/vc4/vc4_bo.c: In function 'vc4_bo_stats_debugfs':drivers/gpu/drm/vc4/vc4_bo.c:91:17: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
seq_printf(m, "%30s: %6dkb BOs (%d)\n", "userspace BO cache",
^
drivers/gpu/drm/vc4/vc4_bo.c:95:17: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
seq_printf(m, "%30s: %6dkb BOs (%d)\n", "total purged BO",
^Introduced by commit
b9f19259b84d ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl")
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 8 lines · On Wed, 1 Nov 2017 14:16:40 +1100 Stephen Rothwell <[email protected]> wrote:
Hi Dave,
After merging the drm tree, today's linux-next build (
x86_64allmodconfig) produced these warnings:
drivers/gpu/drm/vc4/vc4_bo.c: In function 'vc4_bo_stats_debugfs':drivers/gpu/drm/vc4/vc4_bo.c:91:17: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t{aka long unsigned int}' [-Wformat=]
seq_printf(m, "%30s: %6dkb BOs (%d)\n", "userspace BO cache",
Quoted 9 lines
^ drivers/gpu/drm/vc4/vc4_bo.c:95:17: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] seq_printf(m, "%30s: %6dkb BOs (%d)\n", "total purged BO", ^Introduced by commit
b9f19259b84d("drm/vc4: Add theDRM_IOCTL_VC4_GEM_MADVISEioctl")
Just sent a patch fixing the problem.
Thanks for the report.
Boris