All of lore.kernel.org
 help / color / mirror / Atom feed
* [pinchartl-media:drm/du/next 5/17] drivers/gpu//drm/rcar-du/rcar_du_crtc.c:494:3: note: in expansion of macro 'dev_err'
@ 2020-02-05 23:27 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-05 23:27 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2573 bytes --]

tree:   git://linuxtv.org/pinchartl/media.git drm/du/next
head:   c43bcd64c7c703ff7196f74cb6bfc67e35b562d9
commit: d4066d7f1bf788a305c6fea3f787c5f9792a1e2a [5/17] drm: rcar-du: crtc: Control CMM operations
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.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 d4066d7f1bf788a305c6fea3f787c5f9792a1e2a
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.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 +/dev_err +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/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72120 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-05 23:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 23:27 [pinchartl-media:drm/du/next 5/17] drivers/gpu//drm/rcar-du/rcar_du_crtc.c:494:3: note: in expansion of macro 'dev_err' 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.