[radeon-alex:drm-next-4.11-wip 128/131] drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c:246:2: error: unknown field 'lru_tail' specified in initializer

kbuild test robot fengguang.wu at intel.com
Tue Jan 24 00:11:40 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.11-wip
head:   a03023d9d5ae93ab2684138f35d53502d61580d4
commit: 9d71b166e8f7a7277abd7b1588ffd2e30a3f88bc [128/131] drm/ttm: revert "implement LRU add callbacks v2"
config: x86_64-randconfig-i0-201704 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 9d71b166e8f7a7277abd7b1588ffd2e30a3f88bc
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

>> drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c:246:2: error: unknown field 'lru_tail' specified in initializer
     .lru_tail  = &ttm_bo_default_lru_tail,
     ^
>> drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c:246:16: error: 'ttm_bo_default_lru_tail' undeclared here (not in a function)
     .lru_tail  = &ttm_bo_default_lru_tail,
                   ^
>> drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c:247:2: error: unknown field 'swap_lru_tail' specified in initializer
     .swap_lru_tail  = &ttm_bo_default_swap_lru_tail,
     ^
>> drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c:247:21: error: 'ttm_bo_default_swap_lru_tail' undeclared here (not in a function)
     .swap_lru_tail  = &ttm_bo_default_swap_lru_tail,
                        ^
>> drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c:247:2: warning: excess elements in struct initializer
     .swap_lru_tail  = &ttm_bo_default_swap_lru_tail,
     ^
   drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c:247:2: warning: (near initialization for 'hibmc_bo_driver')

vim +/lru_tail +246 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c

e4daebc77 Rongrong Zou 2016-11-16  240  	.init_mem_type		= hibmc_bo_init_mem_type,
e4daebc77 Rongrong Zou 2016-11-16  241  	.evict_flags		= hibmc_bo_evict_flags,
e4daebc77 Rongrong Zou 2016-11-16  242  	.move			= NULL,
e4daebc77 Rongrong Zou 2016-11-16  243  	.verify_access		= hibmc_bo_verify_access,
e4daebc77 Rongrong Zou 2016-11-16  244  	.io_mem_reserve		= &hibmc_ttm_io_mem_reserve,
e4daebc77 Rongrong Zou 2016-11-16  245  	.io_mem_free		= NULL,
e4daebc77 Rongrong Zou 2016-11-16 @246  	.lru_tail		= &ttm_bo_default_lru_tail,
e4daebc77 Rongrong Zou 2016-11-16 @247  	.swap_lru_tail		= &ttm_bo_default_swap_lru_tail,
e4daebc77 Rongrong Zou 2016-11-16  248  };
e4daebc77 Rongrong Zou 2016-11-16  249  
e4daebc77 Rongrong Zou 2016-11-16  250  int hibmc_mm_init(struct hibmc_drm_private *hibmc)

:::::: The code at line 246 was first introduced by commit
:::::: e4daebc77e7b34fc7442ff78a3c3410376f1bcba drm/hisilicon/hibmc: Add video memory management

:::::: TO: Rongrong Zou <zourongrong at gmail.com>
:::::: CC: Rongrong Zou <zourongrong at gmail.com>

---
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: 24924 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170124/99c083b6/attachment-0001.gz>


More information about the dri-devel mailing list