drivers/gpu/drm/xe/xe_lrc.c:544:1: error: unused function '__xe_lrc_regs_ggtt_addr'

From: kernel test robot
Date: Sun Mar 03 2024 - 11:34:05 EST


Hi Matthew,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 04b8076df2534f08bb4190f90a24e0f7f8930aca
commit: dd08ebf6c3525a7ea2186e636df064ea47281987 drm/xe: Introduce a new DRM driver for Intel GPUs
date: 3 months ago
config: x86_64-randconfig-076-20240303 (https://download.01.org/0day-ci/archive/20240304/202403040013.C6fxy7Q8-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240304/202403040013.C6fxy7Q8-lkp@xxxxxxxxx/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/202403040013.C6fxy7Q8-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/xe/xe_lrc.c:544:1: error: unused function '__xe_lrc_regs_ggtt_addr' [-Werror,-Wunused-function]
544 | DECL_MAP_ADDR_HELPERS(regs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/xe/xe_lrc.c:536:19: note: expanded from macro 'DECL_MAP_ADDR_HELPERS'
536 | static inline u32 __xe_lrc_##elem##_ggtt_addr(struct xe_lrc *lrc) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:238:1: note: expanded from here
238 | __xe_lrc_regs_ggtt_addr
| ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.


vim +/__xe_lrc_regs_ggtt_addr +544 drivers/gpu/drm/xe/xe_lrc.c

540
541 DECL_MAP_ADDR_HELPERS(ring)
542 DECL_MAP_ADDR_HELPERS(pphwsp)
543 DECL_MAP_ADDR_HELPERS(seqno)
> 544 DECL_MAP_ADDR_HELPERS(regs)
545 DECL_MAP_ADDR_HELPERS(start_seqno)
546 DECL_MAP_ADDR_HELPERS(parallel)
547

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