* [pinchartl-media:drm/du/next 5/7] drivers/gpu/drm/rcar-du/rcar_du_crtc.c:494:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t {aka unsigned int}'
@ 2019-10-22 16:27 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-22 16:27 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2553 bytes --]
tree: git://linuxtv.org/pinchartl/media.git drm/du/next
head: 153f2971b58764b7238989489bd45ca0f491f74a
commit: d07d63efc8bcd7912d4b089a1a57a116606c7e04 [5/7] drm: rcar-du: crtc: Control CMM operations
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d07d63efc8bcd7912d4b089a1a57a116606c7e04
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/platform_device.h:13:0,
from drivers/gpu/drm/rcar-du/rcar_du_crtc.c:12:
drivers/gpu/drm/rcar-du/rcar_du_crtc.c: In function 'rcar_du_cmm_check':
>> drivers/gpu/drm/rcar-du/rcar_du_crtc.c:494:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=]
dev_err(dev, "invalid gamma lut size: %lu bytes\n",
^
include/linux/device.h:1658:22: note: in definition of macro 'dev_fmt'
#define dev_fmt(fmt) fmt
^~~
>> drivers/gpu/drm/rcar-du/rcar_du_crtc.c:494:3: note: in expansion of macro 'dev_err'
dev_err(dev, "invalid gamma lut size: %lu bytes\n",
^~~~~~~
vim +494 drivers/gpu/drm/rcar-du/rcar_du_crtc.c
477
478 /* -----------------------------------------------------------------------------
479 * Color Management Module (CMM)
480 */
481
482 static int rcar_du_cmm_check(struct drm_crtc *crtc,
483 struct drm_crtc_state *state)
484 {
485 struct drm_property_blob *drm_lut = state->gamma_lut;
486 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc);
487 struct device *dev = rcrtc->dev->dev;
488
489 if (!drm_lut)
490 return 0;
491
492 /* We only accept fully populated LUT tables. */
493 if (drm_color_lut_size(drm_lut) != CM2_LUT_SIZE) {
> 494 dev_err(dev, "invalid gamma lut size: %lu bytes\n",
495 drm_lut->length);
496 return -EINVAL;
497 }
498
499 return 0;
500 }
501
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72002 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-22 16:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 16:27 [pinchartl-media:drm/du/next 5/7] drivers/gpu/drm/rcar-du/rcar_du_crtc.c:494:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t {aka unsigned int}' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.