Hi Hean,

[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.12 next-20170713]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/hean-loong-ong-intel-com/Intel-FPGA-VIP-Frame-Buffer-II-drm-driver/20170713-235417
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/cdev.h:7:0,
                    from include/drm/drmP.h:36,
                    from drivers/gpu//drm/ivip/intel_vip_core.c:28:
   drivers/gpu//drm/ivip/intel_vip_core.c: In function 'intelvipfb_enable':
>> drivers/gpu//drm/ivip/intel_vip_core.c:57:33: warning: format '%x' expects 
>> argument of type 'unsigned int', but argument 3 has type 'dma_addr_t {aka 
>> long long unsigned int}' [-Wformat=]
     dev_info(pipe->plane.dev->dev, "Address 0x%x\n", addr);
                                    ^
   include/linux/device.h:1317:51: note: in definition of macro 'dev_info'
    #define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg)
                                                      ^~~

vim +57 drivers/gpu//drm/ivip/intel_vip_core.c

    27  
  > 28  #include <drm/drmP.h>
    29  #include <drm/drm_atomic.h>
    30  #include <drm/drm_atomic_helper.h>
    31  #include <drm/drm_crtc_helper.h>
    32  #include <drm/drm_fb_helper.h>
    33  #include <drm/drm_fb_cma_helper.h>
    34  #include <drm/drm_gem_cma_helper.h>
    35  #include <drm/drm_plane_helper.h>
    36  #include <drm/drm_simple_kms_helper.h>
    37  
    38  #include "intel_vip_drv.h"
    39  
    40  static void intelvipfb_enable(struct drm_simple_display_pipe *pipe,
    41                 struct drm_crtc_state *crtc_state)
    42  {
    43          /*
    44           * The frameinfo variable has to correspond to the size of the 
VIP Suite
    45           * Frame Reader register 7 which will determine the maximum 
size used
    46           * in this frameinfo
    47           */
    48  
    49          u32 frameinfo;
    50          struct intelvipfb_priv *priv = pipe->plane.dev->dev_private;
    51          void __iomem *base = priv->base;
    52          struct drm_plane_state *state = pipe->plane.state;
    53          dma_addr_t addr;
    54  
    55          addr = drm_fb_cma_get_gem_addr(state->fb, state, 0);
    56  
  > 57          dev_info(pipe->plane.dev->dev, "Address 0x%x\n", addr);
    58  
    59          frameinfo =
    60                  readl(base + INTELVIPFB_FRAME_READER) & 0x00ffffff;
    61          writel(frameinfo, base + INTELVIPFB_FRAME_INFO);
    62          writel(addr, base + INTELVIPFB_FRAME_START);
    63          /* Finally set the control register to 1 to start streaming */
    64          writel(1, base + INTELVIPFB_CONTROL);
    65  }
    66  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to