[radeon-alex:vega10-drop0509 1379/1987] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:356:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t {aka unsigned int}'

kbuild test robot fengguang.wu at intel.com
Thu May 11 18:00:23 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git vega10-drop0509
head:   b97044091f42cad26368a402c31af13e1319c7ab
commit: f0829a4c8f2abc5b12bfd7a4338b97864cfd2e47 [1379/1987] port in all files
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout f0829a4c8f2abc5b12bfd7a4338b97864cfd2e47
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'amdgdu_amdkfd_restore_mem_worker':
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:193:22: error: 'struct amdgpu_bo' has no member named 'adev'
     adev = mem->data2.bo->adev;
                         ^~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'get_local_mem_info':
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:342:24: warning: left shift count >= width of type [-Wshift-count-overflow]
     address_mask = ~((1UL << 40) - 1);
                           ^~
   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from include/linux/agp_backend.h:33,
                    from include/drm/drmP.h:35,
                    from include/kcl/kcl_drm.h:6,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:4,
                    from <command-line>:0:
   include/linux/kern_levels.h:4:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'resource_size_t {aka unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^~~~~~~~
   include/linux/printk.h:277:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:352:3: note: in expansion of macro 'pr_err'
      pr_err("amdgpu: vram aperture is out of 40bit address base: 0x%llx limit 0x%llx\n",
      ^~~~~~
   include/linux/kern_levels.h:4:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t {aka unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^~~~~~~~
   include/linux/printk.h:277:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:352:3: note: in expansion of macro 'pr_err'
      pr_err("amdgpu: vram aperture is out of 40bit address base: 0x%llx limit 0x%llx\n",
      ^~~~~~
   In file included from include/linux/kernel.h:13:0,
                    from include/linux/list.h:8,
                    from include/linux/agp_backend.h:33,
                    from include/drm/drmP.h:35,
                    from include/kcl/kcl_drm.h:6,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:4,
                    from <command-line>:0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:356:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t {aka unsigned int}' [-Wformat=]
     pr_debug("amdgpu: address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
              ^
   include/linux/printk.h:261:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
   include/linux/printk.h:309:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:356:2: note: in expansion of macro 'pr_debug'
     pr_debug("amdgpu: address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
     ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:356:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t {aka unsigned int}' [-Wformat=]
     pr_debug("amdgpu: address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
              ^
   include/linux/printk.h:261:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
   include/linux/printk.h:309:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:356:2: note: in expansion of macro 'pr_debug'
     pr_debug("amdgpu: address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
     ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:361:6: error: 'amdgpu_powerplay' undeclared (first use in this function)
     if (amdgpu_powerplay || rdev->pm.funcs->get_mclk)
         ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:361:6: note: each undeclared identifier is reported only once for each function it appears in
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'get_max_engine_clock_in_mhz':
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:379:6: error: 'amdgpu_powerplay' undeclared (first use in this function)
     if (amdgpu_powerplay)
         ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'get_cu_info':
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:402:33: error: 'struct amdgpu_cu_info' has no member named 'simd_per_cu'
     cu_info->simd_per_cu = acu_info.simd_per_cu;
                                    ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:403:40: error: 'struct amdgpu_cu_info' has no member named 'max_waves_per_simd'
     cu_info->max_waves_per_simd = acu_info.max_waves_per_simd;
                                           ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:404:37: error: 'struct amdgpu_cu_info' has no member named 'wave_front_size'
     cu_info->wave_front_size = acu_info.wave_front_size;
                                        ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:405:46: error: 'struct amdgpu_cu_info' has no member named 'max_scratch_slots_per_cu'
     cu_info->max_scratch_slots_per_cu = acu_info.max_scratch_slots_per_cu;
                                                 ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:406:30: error: 'struct amdgpu_cu_info' has no member named 'lds_size'
     cu_info->lds_size = acu_info.lds_size;
                                 ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'amdgpu_amdkfd_get_dmabuf_info':
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:432:23: error: 'drm_gem_prime_dmabuf_ops' undeclared (first use in this function)
     if (dma_buf->ops != &drm_gem_prime_dmabuf_ops)
                          ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:443:10: error: 'struct amdgpu_bo' has no member named 'initial_domain'
     if (!(bo->initial_domain & (AMDGPU_GEM_DOMAIN_VRAM |
             ^~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:459:15: error: 'struct amdgpu_bo' has no member named 'initial_domain'
      *flags = (bo->initial_domain & AMDGPU_GEM_DOMAIN_VRAM) ?
                  ^~
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'get_max_engine_clock_in_mhz':
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:383:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +356 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c

   340		BUG_ON(kgd == NULL);
   341	
   342		address_mask = ~((1UL << 40) - 1);
   343		aper_limit = rdev->mc.aper_base + rdev->mc.aper_size;
   344		memset(mem_info, 0, sizeof(*mem_info));
   345		if (!(rdev->mc.aper_base & address_mask ||
   346				aper_limit & address_mask)) {
   347			mem_info->local_mem_size_public = rdev->mc.visible_vram_size;
   348			mem_info->local_mem_size_private = rdev->mc.real_vram_size -
   349					rdev->mc.visible_vram_size;
   350			mem_info->vram_width = rdev->mc.vram_width;
   351		} else {
   352			pr_err("amdgpu: vram aperture is out of 40bit address base: 0x%llx limit 0x%llx\n",
   353					rdev->mc.aper_base, aper_limit);
   354		}
   355	
 > 356		pr_debug("amdgpu: address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
   357				rdev->mc.aper_base, aper_limit,
   358				mem_info->local_mem_size_public,
   359				mem_info->local_mem_size_private);
   360	
   361		if (amdgpu_powerplay || rdev->pm.funcs->get_mclk)
   362			mem_info->mem_clk_max = amdgpu_dpm_get_mclk(rdev, false) / 100;
   363	}
   364	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 56846 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170512/948a2779/attachment-0001.gz>


More information about the dri-devel mailing list