Skip to contentSkip to conversation

linux-next: build warnings after merge of the drm tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 1, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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_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",

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 the DRM_IOCTL_VC4_GEM_MADVISE ioctl")

Just sent a patch fixing the problem.

Thanks for the report.

Boris