Skip to contentSkip to conversation

linux-next: build warning after merge of the drm-msm tree

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

lore
Share & tools
lore
#0 lore raw

Hi Rob,

After merging the drm-msm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

In file included from include/drm/drm_mm.h:49:0,

                 from include/drm/drmP.h:73,
                 from drivers/gpu/drm/msm/msm_drv.h:37,
                 from drivers/gpu/drm/msm/msm_gpu.h:24,
                 from drivers/gpu/drm/msm/msm_gpu.c:18:
drivers/gpu/drm/msm/msm_gpu.c: In function 'msm_gpu_init':
drivers/gpu/drm/msm/msm_gpu.c:780:31: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'unsigned int' [-Wformat=]
   DRM_DEV_INFO_ONCE(drm->dev, "Only creating %lu ringbuffers\n",
                               ^
include/drm/drm_print.h:237:60: note: in definition of macro 'DRM_DEV_INFO'
  drm_dev_printk(dev, KERN_INFO, DRM_UT_NONE, __func__, "", fmt, \
                                                            ^

drivers/gpu/drm/msm/msm_gpu.c:780:3: note: in expansion of macro 'DRM_DEV_INFO_ONCE'
DRM_DEV_INFO_ONCE(drm->dev, "Only creating %lu ringbuffers\n",
^

Introduced by commit

f97decac5f4c ("drm/msm: Support multiple ringbuffers")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 17 lines · Stephen Rothwell

Hi Rob,

After merging the drm-msm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

In file included from include/drm/drm_mm.h:49:0,

                 from include/drm/drmP.h:73,
                 from drivers/gpu/drm/msm/msm_drv.h:37,
                 from drivers/gpu/drm/msm/msm_gpu.h:24,
                 from drivers/gpu/drm/msm/msm_gpu.c:18:
drivers/gpu/drm/msm/msm_gpu.c: In function 'msm_gpu_init':
drivers/gpu/drm/msm/msm_gpu.c:780:31: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'unsigned int' [-Wformat=]
   DRM_DEV_INFO_ONCE(drm->dev, "Only creating %lu ringbuffers\n",
                               ^
include/drm/drm_print.h:237:60: note: in definition of macro 'DRM_DEV_INFO'
  drm_dev_printk(dev, KERN_INFO, DRM_UT_NONE, __func__, "", fmt, \
                                                            ^
Quoted 7 lines

drivers/gpu/drm/msm/msm_gpu.c:780:3: note: in expansion of macro 'DRM_DEV_INFO_ONCE'
DRM_DEV_INFO_ONCE(drm->dev, "Only creating %lu ringbuffers\n",
^

Introduced by commit

f97decac5f4c ("drm/msm: Support multiple ringbuffers")

Oh, I thought Arnd fixed[1] that already, but it looks like I lost his patch in the process of moving to a newer version of the multiple-ringbuffers patch.

I've added Arnd's patch to msm-next.

[1] https://patchwork.freedesktop.org/patch/170111/