[geert-renesas-drivers:master 15/51] drivers/gpu/drm/xe/xe_lrc.c:916:15: warning: 'wa_bb_offset' defined but not used

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master
head:   a762dd13768a5f6c0fb81a07b9ab0fec112aaf72
commit: 382b1dc84bf07dcbb122457e785956c13aa97c25 [15/51] Merge remote-tracking branch 'drm/drm-next' into renesas-drivers
:::::: branch date: 9 hours ago
:::::: commit date: 10 hours ago
config: loongarch-randconfig-001-20250709 (attached as .config)
compiler: loongarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (attached as 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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507090554.7uCpi2kH-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/xe/xe_lrc.c:981:15: error: redefinition of 'wa_bb_offset'
     981 | static size_t wa_bb_offset(struct xe_lrc *lrc)
         |               ^~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_lrc.c:916:15: note: previous definition of 'wa_bb_offset' with type 'size_t(struct xe_lrc *)' {aka 'long unsigned int(struct xe_lrc *)'}
     916 | static size_t wa_bb_offset(struct xe_lrc *lrc)
         |               ^~~~~~~~~~~~
>> drivers/gpu/drm/xe/xe_lrc.c:916:15: warning: 'wa_bb_offset' defined but not used [-Wunused-function]


vim +/wa_bb_offset +916 drivers/gpu/drm/xe/xe_lrc.c

afcad92411772a1 Matthew Brost         2025-06-11  915  
afcad92411772a1 Matthew Brost         2025-06-11 @916  static size_t wa_bb_offset(struct xe_lrc *lrc)
afcad92411772a1 Matthew Brost         2025-06-11  917  {
afcad92411772a1 Matthew Brost         2025-06-11  918  	return lrc->bo->size - LRC_WA_BB_SIZE;
617d824c5323b84 Umesh Nerlige Ramappa 2025-05-09  919  }
617d824c5323b84 Umesh Nerlige Ramappa 2025-05-09  920  

:::::: The code at line 916 was first introduced by commit
:::::: afcad92411772a1f361339f22c49f855c6cc7d0f drm/xe: Make WA BB part of LRC BO

:::::: TO: Matthew Brost <matthew.brost@xxxxxxxxx>
:::::: CC: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

reproduce (this is a W=1 build):
        git clone https://github.com/intel/lkp-tests.git ~/lkp-tests
        # https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/commit/?id=382b1dc84bf07dcbb122457e785956c13aa97c25
        git remote add geert-renesas-drivers https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git
        git fetch --no-tags geert-renesas-drivers master
        git checkout 382b1dc84bf07dcbb122457e785956c13aa97c25
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-15.1.0 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=loongarch olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-15.1.0 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/gpu/drm/xe/

[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux