Hi Antonino,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 7c626ce4bae1ac14f60076d00eafe71af30450ba]

url:    
https://github.com/intel-lab-lkp/linux/commits/Antonino-Maniscalco/drm-msm-Fix-bv_fence-being-used-as-bv_rptr/20240816-023442
base:   7c626ce4bae1ac14f60076d00eafe71af30450ba
patch link:    
https://lore.kernel.org/r/20240815-preemption-a750-t-v1-4-7bda26c34037%40gmail.com
patch subject: [PATCH 4/7] drm/msm/A6xx: Implement preemption for A7XX targets
config: i386-buildonly-randconfig-001-20240816 
(https://download.01.org/0day-ci/archive/20240816/202408161951.81zgvcj5-...@intel.com/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/20240816/202408161951.81zgvcj5-...@intel.com/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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202408161951.81zgvcj5-...@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/msm/adreno/a6xx_preempt.c: In function 'update_wptr':
>> drivers/gpu/drm/msm/adreno/a6xx_preempt.c:49:24: warning: unused variable 
>> 'cur_wptr' [-Wunused-variable]
      49 |         uint32_t wptr, cur_wptr;
         |                        ^~~~~~~~


vim +/cur_wptr +49 drivers/gpu/drm/msm/adreno/a6xx_preempt.c

    44  
    45  /* Write the most recent wptr for the given ring into the hardware */
    46  static inline void update_wptr(struct msm_gpu *gpu, struct 
msm_ringbuffer *ring)
    47  {
    48          unsigned long flags;
  > 49          uint32_t wptr, cur_wptr;
    50  
    51          if (!ring)
    52                  return;
    53  
    54          spin_lock_irqsave(&ring->preempt_lock, flags);
    55  
    56          if (ring->skip_inline_wptr) {
    57                  wptr = get_wptr(ring);
    58  
    59                  gpu_write(gpu, REG_A6XX_CP_RB_WPTR, wptr);
    60  
    61                  ring->skip_inline_wptr = false;
    62          }
    63  
    64          spin_unlock_irqrestore(&ring->preempt_lock, flags);
    65  }
    66  

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

Reply via email to