[usb:usb-testing 1/25] drivers/gpu/drm/i915/gt/intel_execlists_submission.c:4161:38: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'}

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head:   be535132af28d98d8382ffa03d11c8acd7b5da30
commit: 924fb3ec50f5156d21e4f484358fb36f75b91ca8 [1/25] Merge 6.2-rc7 into usb-next
config: i386-randconfig-a015-20230206 (https://download.01.org/0day-ci/archive/20230206/202302061950.yLfakIRr-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=924fb3ec50f5156d21e4f484358fb36f75b91ca8
        git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
        git fetch --no-tags usb usb-testing
        git checkout 924fb3ec50f5156d21e4f484358fb36f75b91ca8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/i915/gt/intel_execlists_submission.c: In function 'intel_execlists_dump_active_requests':
>> drivers/gpu/drm/i915/gt/intel_execlists_submission.c:4161:38: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
    4161 |         drm_printf(m, "\tOn hold?: %lu\n",
         |                                    ~~^
         |                                      |
         |                                      long unsigned int
         |                                    %u
    4162 |                    list_count_nodes(&engine->sched_engine->hold));
         |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                    |
         |                    size_t {aka unsigned int}


vim +4161 drivers/gpu/drm/i915/gt/intel_execlists_submission.c

0212bdef5a4de34 drivers/gpu/drm/i915/intel_lrc.c                     Chris Wilson       2019-01-15  4150  
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4151  void intel_execlists_dump_active_requests(struct intel_engine_cs *engine,
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4152  					  struct i915_request *hung_rq,
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4153  					  struct drm_printer *m)
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4154  {
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4155  	unsigned long flags;
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4156  
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4157  	spin_lock_irqsave(&engine->sched_engine->lock, flags);
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4158  
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4159  	intel_engine_dump_active_requests(&engine->sched_engine->requests, hung_rq, m);
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4160  
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26 @4161  	drm_printf(m, "\tOn hold?: %lu\n",
924fb3ec50f5156 drivers/gpu/drm/i915/gt/intel_execlists_submission.c Greg Kroah-Hartman 2023-02-06  4162  		   list_count_nodes(&engine->sched_engine->hold));
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4163  
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4164  	spin_unlock_irqrestore(&engine->sched_engine->lock, flags);
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4165  }
5bc4b43d5c6c969 drivers/gpu/drm/i915/gt/intel_execlists_submission.c John Harrison      2023-01-26  4166  

:::::: The code at line 4161 was first introduced by commit
:::::: 5bc4b43d5c6c9692ddc7b96116650cdf9406f3da drm/i915: Fix up locking around dumping requests lists

:::::: TO: John Harrison <John.C.Harrison@xxxxxxxxx>
:::::: CC: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>

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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux