[linux-next:master 341/8516] drivers/gpu/drm/i915/gem/i915_gem_ttm.c:173:36: warning: unused parameter 'place'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9803fb968c8c2e1283f67b3baeb88e0adba435b4
commit: d53ec322dc7de32a59bf1c2a56b93e90fc2f1c28 [341/8516] drm/i915/ttm: switch over to ttm_buddy_man
config: i386-randconfig-r021-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d53ec322dc7de32a59bf1c2a56b93e90fc2f1c28
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout d53ec322dc7de32a59bf1c2a56b93e90fc2f1c28
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

                                                            ^
   include/linux/pci.h:2154:69: warning: unused parameter 'dev' [-Wunused-parameter]
   static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno)
                                                                       ^
   include/linux/pci.h:2154:78: warning: unused parameter 'resno' [-Wunused-parameter]
   static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno)
                                                                                ^
   include/linux/pci.h:2156:61: warning: unused parameter 'dev' [-Wunused-parameter]
   static inline void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool probe) { }
                                                               ^
   include/linux/pci.h:2156:71: warning: unused parameter 'probe' [-Wunused-parameter]
   static inline void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool probe) { }
                                                                         ^
   In file included from drivers/gpu/drm/i915/gem/i915_gem_ttm.c:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:84:
   In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
   In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
   In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9:
   drivers/gpu/drm/i915/gt/uc/intel_guc.h:109:59: warning: unused parameter 'guc' [-Wunused-parameter]
   static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc,
                                                             ^
   In file included from drivers/gpu/drm/i915/gem/i915_gem_ttm.c:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:84:
   In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
   In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
   In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:10:
   drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h:24:72: warning: unused parameter 'guc' [-Wunused-parameter]
   static inline bool intel_guc_submission_is_supported(struct intel_guc *guc)
                                                                          ^
   In file included from drivers/gpu/drm/i915/gem/i915_gem_ttm.c:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:101:
   drivers/gpu/drm/i915/i915_gpu_error.h:276:43: warning: unused parameter 'gt' [-Wunused-parameter]
   i915_capture_error_state(struct intel_gt *gt, intel_engine_mask_t engine_mask)
                                             ^
   drivers/gpu/drm/i915/i915_gpu_error.h:276:67: warning: unused parameter 'engine_mask' [-Wunused-parameter]
   i915_capture_error_state(struct intel_gt *gt, intel_engine_mask_t engine_mask)
                                                                     ^
   drivers/gpu/drm/i915/i915_gpu_error.h:281:50: warning: unused parameter 'i915' [-Wunused-parameter]
   i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp)
                                                    ^
   drivers/gpu/drm/i915/i915_gpu_error.h:281:62: warning: unused parameter 'gfp' [-Wunused-parameter]
   i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp)
                                                                ^
   drivers/gpu/drm/i915/i915_gpu_error.h:287:42: warning: unused parameter 'gt' [-Wunused-parameter]
   intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp)
                                            ^
   drivers/gpu/drm/i915/i915_gpu_error.h:287:52: warning: unused parameter 'gfp' [-Wunused-parameter]
   intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp)
                                                      ^
   drivers/gpu/drm/i915/i915_gpu_error.h:293:53: warning: unused parameter 'engine' [-Wunused-parameter]
   intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp)
                                                       ^
   drivers/gpu/drm/i915/i915_gpu_error.h:293:67: warning: unused parameter 'gfp' [-Wunused-parameter]
   intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp)
                                                                     ^
   drivers/gpu/drm/i915/i915_gpu_error.h:299:65: warning: unused parameter 'ee' [-Wunused-parameter]
   intel_engine_coredump_add_request(struct intel_engine_coredump *ee,
                                                                   ^
   drivers/gpu/drm/i915/i915_gpu_error.h:300:28: warning: unused parameter 'rq' [-Wunused-parameter]
                                     struct i915_request *rq,
                                                          ^
   drivers/gpu/drm/i915/i915_gpu_error.h:301:13: warning: unused parameter 'gfp' [-Wunused-parameter]
                                     gfp_t gfp)
                                           ^
   drivers/gpu/drm/i915/i915_gpu_error.h:307:61: warning: unused parameter 'ee' [-Wunused-parameter]
   intel_engine_coredump_add_vma(struct intel_engine_coredump *ee,
                                                               ^
   drivers/gpu/drm/i915/i915_gpu_error.h:308:43: warning: unused parameter 'capture' [-Wunused-parameter]
                                 struct intel_engine_capture_vma *capture,
                                                                  ^
   drivers/gpu/drm/i915/i915_gpu_error.h:309:36: warning: unused parameter 'compress' [-Wunused-parameter]
                                 struct i915_vma_compress *compress)
                                                           ^
   drivers/gpu/drm/i915/i915_gpu_error.h:314:52: warning: unused parameter 'gt' [-Wunused-parameter]
   i915_vma_capture_prepare(struct intel_gt_coredump *gt)
                                                      ^
   drivers/gpu/drm/i915/i915_gpu_error.h:320:51: warning: unused parameter 'gt' [-Wunused-parameter]
   i915_vma_capture_finish(struct intel_gt_coredump *gt,
                                                     ^
   drivers/gpu/drm/i915/i915_gpu_error.h:321:30: warning: unused parameter 'compress' [-Wunused-parameter]
                           struct i915_vma_compress *compress)
                                                     ^
   drivers/gpu/drm/i915/i915_gpu_error.h:326:50: warning: unused parameter 'error' [-Wunused-parameter]
   i915_error_state_store(struct i915_gpu_coredump *error)
                                                    ^
   drivers/gpu/drm/i915/i915_gpu_error.h:330:68: warning: unused parameter 'gpu' [-Wunused-parameter]
   static inline void i915_gpu_coredump_put(struct i915_gpu_coredump *gpu)
                                                                      ^
   drivers/gpu/drm/i915/i915_gpu_error.h:335:49: warning: unused parameter 'i915' [-Wunused-parameter]
   i915_first_error_state(struct drm_i915_private *i915)
                                                   ^
   drivers/gpu/drm/i915/i915_gpu_error.h:340:68: warning: unused parameter 'i915' [-Wunused-parameter]
   static inline void i915_reset_error_state(struct drm_i915_private *i915)
                                                                      ^
   drivers/gpu/drm/i915/i915_gpu_error.h:344:70: warning: unused parameter 'i915' [-Wunused-parameter]
   static inline void i915_disable_error_state(struct drm_i915_private *i915,
                                                                        ^
   drivers/gpu/drm/i915/i915_gpu_error.h:345:14: warning: unused parameter 'err' [-Wunused-parameter]
                                               int err)
                                                   ^
>> drivers/gpu/drm/i915/gem/i915_gem_ttm.c:173:36: warning: unused parameter 'place' [-Wunused-parameter]
                                          const struct ttm_place *place)
                                                                  ^
   drivers/gpu/drm/i915/gem/i915_gem_ttm.c:181:60: warning: unused parameter 'bo' [-Wunused-parameter]
   static void i915_ttm_evict_flags(struct ttm_buffer_object *bo,
                                                              ^
   drivers/gpu/drm/i915/gem/i915_gem_ttm.c:329:61: warning: unused parameter 'evict' [-Wunused-parameter]
   static int i915_ttm_move(struct ttm_buffer_object *bo, bool evict,
                                                               ^
   drivers/gpu/drm/i915/gem/i915_gem_ttm.c:332:23: warning: unused parameter 'hop' [-Wunused-parameter]
                            struct ttm_place *hop)
                                              ^
   drivers/gpu/drm/i915/gem/i915_gem_ttm.c:404:55: warning: unused parameter 'bdev' [-Wunused-parameter]
   static int i915_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *mem)
                                                         ^
   drivers/gpu/drm/i915/gem/i915_gem_ttm.c:486:28: warning: unused parameter 'st' [-Wunused-parameter]
                                  struct sg_table *st)
                                                   ^
   1568 warnings and 1 error generated.


vim +/place +173 drivers/gpu/drm/i915/gem/i915_gem_ttm.c

213d5092776345 Thomas Hellström 2021-06-10  171  
213d5092776345 Thomas Hellström 2021-06-10  172  static bool i915_ttm_eviction_valuable(struct ttm_buffer_object *bo,
213d5092776345 Thomas Hellström 2021-06-10 @173  				       const struct ttm_place *place)
213d5092776345 Thomas Hellström 2021-06-10  174  {
213d5092776345 Thomas Hellström 2021-06-10  175  	struct drm_i915_gem_object *obj = i915_ttm_to_gem(bo);
213d5092776345 Thomas Hellström 2021-06-10  176  
213d5092776345 Thomas Hellström 2021-06-10  177  	/* Will do for now. Our pinned objects are still on TTM's LRU lists */
d53ec322dc7de3 Matthew Auld     2021-06-16  178  	return i915_gem_object_evictable(obj);
213d5092776345 Thomas Hellström 2021-06-10  179  }
213d5092776345 Thomas Hellström 2021-06-10  180  

:::::: The code at line 173 was first introduced by commit
:::::: 213d5092776345ad5d6e2efa36a6bfbe9899e8b3 drm/i915/ttm: Introduce a TTM i915 gem object backend

:::::: TO: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx>
:::::: CC: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux