All of lore.kernel.org
 help / color / mirror / Atom feed
* [vsyrjala:dpt_debug 4/4] drivers/gpu/drm/i915/display/intel_dpt.c:92:14: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int')
@ 2023-03-11 20:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-11 20:20 UTC (permalink / raw)
  To: Ville Syrjälä; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/vsyrjala/linux.git dpt_debug
head:   93b6968da31ee411cedc83b08b625e06525ca566
commit: 93b6968da31ee411cedc83b08b625e06525ca566 [4/4] dpt debug
config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20230312/202303120405.hj8Locfa-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/vsyrjala/linux/commit/93b6968da31ee411cedc83b08b625e06525ca566
        git remote add vsyrjala https://github.com/vsyrjala/linux.git
        git fetch --no-tags vsyrjala dpt_debug
        git checkout 93b6968da31ee411cedc83b08b625e06525ca566
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303120405.hj8Locfa-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/display/intel_dpt.c:92:14: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int') [-Wformat]
                           dpt, i++, page_to_phys(page));
                                     ^~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:469:46: note: expanded from macro 'drm_err'
           __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
                                                ~~~    ^~~~~~~~~~~
   include/drm/drm_print.h:456:48: note: expanded from macro '__drm_printk'
           dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
                                                  ~~~    ^~~~~~~~~~~
   include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
           dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                                  ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
                   _p_func(dev, fmt, ##__VA_ARGS__);                       \
                                ~~~    ^~~~~~~~~~~
   arch/x86/include/asm/io.h:159:31: note: expanded from macro 'page_to_phys'
   #define page_to_phys(page)    ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +92 drivers/gpu/drm/i915/display/intel_dpt.c

    82	
    83	static void intel_dpt_debug(struct i915_address_space *vm)
    84	{
    85		struct i915_dpt *dpt = i915_vm_to_dpt(vm);
    86		struct page *page;
    87		struct sgt_iter iter;
    88		int i = 0;
    89	
    90		for_each_sgt_page(page, iter, dpt->obj->mm.pages)
    91			drm_err(&vm->i915->drm, "dpt %p [%d] physical address 0x%llx\n",
  > 92				dpt, i++, page_to_phys(page));
    93	}
    94	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-03-11 20:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-11 20:20 [vsyrjala:dpt_debug 4/4] drivers/gpu/drm/i915/display/intel_dpt.c:92:14: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int') kernel 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.