Hi Daniel,

[auto build test ERROR on drm-intel/for-linux-next -- if it's inappropriate 
base, please suggest rules for selecting the more suitable base]

url:    
https://github.com/0day-ci/linux/commits/Daniel-Vetter/drm-tegra-Use-drm_gem_object_reference_unlocked/20151021-160838
config: arm-tegra_defconfig (attached as .config)
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/tegra/gem.c: In function 'tegra_bo_put':
   drivers/gpu/drm/tegra/gem.c:31:21: warning: unused variable 'drm' 
[-Wunused-variable]
     struct drm_device *drm = obj->gem.dev;
                        ^
   drivers/gpu/drm/tegra/gem.c: In function 'tegra_bo_get':
>> drivers/gpu/drm/tegra/gem.c:75:2: error: implicit declaration of function 
>> 'drm_gem_object_reference_unlocked' [-Werror=implicit-function-declaration]
     drm_gem_object_reference_unlocked(&obj->gem);
     ^
   drivers/gpu/drm/tegra/gem.c:73:21: warning: unused variable 'drm' 
[-Wunused-variable]
     struct drm_device *drm = obj->gem.dev;
                        ^
   cc1: some warnings being treated as errors

vim +/drm_gem_object_reference_unlocked +75 drivers/gpu/drm/tegra/gem.c

    25          return container_of(bo, struct tegra_bo, base);
    26  }
    27  
    28  static void tegra_bo_put(struct host1x_bo *bo)
    29  {
    30          struct tegra_bo *obj = host1x_to_tegra_bo(bo);
  > 31          struct drm_device *drm = obj->gem.dev;
    32  
    33          drm_gem_object_unreference_unlocked(&obj->gem);
    34  }
    35  
    36  static dma_addr_t tegra_bo_pin(struct host1x_bo *bo, struct sg_table 
**sgt)
    37  {
    38          struct tegra_bo *obj = host1x_to_tegra_bo(bo);
    39  
    40          return obj->paddr;
    41  }
    42  
    43  static void tegra_bo_unpin(struct host1x_bo *bo, struct sg_table *sgt)
    44  {
    45  }
    46  
    47  static void *tegra_bo_mmap(struct host1x_bo *bo)
    48  {
    49          struct tegra_bo *obj = host1x_to_tegra_bo(bo);
    50  
    51          return obj->vaddr;
    52  }
    53  
    54  static void tegra_bo_munmap(struct host1x_bo *bo, void *addr)
    55  {
    56  }
    57  
    58  static void *tegra_bo_kmap(struct host1x_bo *bo, unsigned int page)
    59  {
    60          struct tegra_bo *obj = host1x_to_tegra_bo(bo);
    61  
    62          return obj->vaddr + page * PAGE_SIZE;
    63  }
    64  
    65  static void tegra_bo_kunmap(struct host1x_bo *bo, unsigned int page,
    66                              void *addr)
    67  {
    68  }
    69  
    70  static struct host1x_bo *tegra_bo_get(struct host1x_bo *bo)
    71  {
    72          struct tegra_bo *obj = host1x_to_tegra_bo(bo);
    73          struct drm_device *drm = obj->gem.dev;
    74  
  > 75          drm_gem_object_reference_unlocked(&obj->gem);
    76  
    77          return bo;
    78  }

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

Attachment: .config.gz
Description: Binary data

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to