drivers/comedi/drivers/cb_pcidas.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8

From: kernel test robot
Date: Wed Jan 22 2025 - 12:58:36 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c4b9570cfb63501638db720f3bee9f6dfd044b82
commit: bf5febebd99fddfc6226a94e937d38a8d470b24e objtool: Convert ANNOTATE_RETPOLINE_SAFE to ANNOTATE
date: 7 weeks ago
config: x86_64-randconfig-074-20250122 (https://download.01.org/0day-ci/archive/20250123/202501230139.FZNlTIht-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250123/202501230139.FZNlTIht-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/202501230139.FZNlTIht-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/comedi/drivers/cb_pcidas.c:57:
In file included from include/linux/comedi/comedi_pci.h:13:
In file included from include/linux/pci.h:1644:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
1 warning generated.
>> drivers/comedi/drivers/cb_pcidas.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8

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