Re: [PATCH] drm/ttm: replace busy placement with flags v3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Somalapuram,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-tip/drm-tip]

url:    https://github.com/intel-lab-lkp/linux/commits/Somalapuram-Amaranath/drm-ttm-replace-busy-placement-with-flags-v3/20231113-190252
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
patch link:    https://lore.kernel.org/r/20231113110016.462621-1-Amaranath.Somalapuram%40amd.com
patch subject:  [PATCH] drm/ttm: replace busy placement with flags v3
config: i386-randconfig-061-20231123 (https://download.01.org/0day-ci/archive/20231123/202311231106.FulSZizp-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231123/202311231106.FulSZizp-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311231106.FulSZizp-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:77:22: sparse: sparse: symbol 'vmw_vram_sys_placement' was not declared. Should it be static?
   drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:101:22: sparse: sparse: symbol 'vmw_pt_sys_placement' was not declared. Should it be static?
>> drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:120:22: sparse: sparse: symbol 'vmw_srf_placement' was not declared. Should it be static?
>> drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:144:22: sparse: sparse: symbol 'vmw_nonfixed_placement' was not declared. Should it be static?

vim +/vmw_vram_sys_placement +77 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c

    76	
  > 77	struct ttm_placement vmw_vram_sys_placement = {
    78		.num_placement = 2,
    79		.placement = vram_sys_placement_flags,
    80	};
    81	
    82	static const struct ttm_place sys_placement_flags = {
    83		.fpfn = 0,
    84		.lpfn = 0,
    85		.mem_type = TTM_PL_SYSTEM,
    86		.flags = 0
    87	};
    88	
    89	struct ttm_placement vmw_sys_placement = {
    90		.num_placement = 1,
    91		.placement = &sys_placement_flags,
    92	};
    93	
    94	static const struct ttm_place vmw_sys_placement_flags = {
    95		.fpfn = 0,
    96		.lpfn = 0,
    97		.mem_type = VMW_PL_SYSTEM,
    98		.flags = 0
    99	};
   100	
   101	struct ttm_placement vmw_pt_sys_placement = {
   102		.num_placement = 1,
   103		.placement = &vmw_sys_placement_flags,
   104	};
   105	
   106	static const struct ttm_place gmr_vram_placement_flags[] = {
   107		{
   108			.fpfn = 0,
   109			.lpfn = 0,
   110			.mem_type = VMW_PL_GMR,
   111			.flags = 0
   112		}, {
   113			.fpfn = 0,
   114			.lpfn = 0,
   115			.mem_type = TTM_PL_VRAM,
   116			.flags = TTM_PL_FLAG_BUSY
   117		}
   118	};
   119	
 > 120	struct ttm_placement vmw_srf_placement = {
   121		.num_placement = 2,
   122		.placement = gmr_vram_placement_flags
   123	};
   124	
   125	static const struct ttm_place nonfixed_placement_flags[] = {
   126		{
   127			.fpfn = 0,
   128			.lpfn = 0,
   129			.mem_type = TTM_PL_SYSTEM,
   130			.flags = 0
   131		}, {
   132			.fpfn = 0,
   133			.lpfn = 0,
   134			.mem_type = VMW_PL_GMR,
   135			.flags = TTM_PL_FLAG_IDLE
   136		}, {
   137			.fpfn = 0,
   138			.lpfn = 0,
   139			.mem_type = VMW_PL_MOB,
   140			.flags = TTM_PL_FLAG_IDLE
   141		}
   142	};
   143	
 > 144	struct ttm_placement vmw_nonfixed_placement = {
   145		.num_placement = 3,
   146		.placement = nonfixed_placement_flags,
   147	};
   148	

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



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux