Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [broonie-ci:fileaMnh6H 2/9] sound/pci/hda/tas2781_spi_fwlib.c:373:30: error: use of undeclared identifier 'PPC3_VERSION_TAS2781'
@ 2025-02-04 13:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-04 13:45 UTC (permalink / raw)
  To: Shenghao Ding; +Cc: llvm, oe-kbuild-all, Mark Brown

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git fileaMnh6H
head:   500aea53057a952d584cbe1fa461c7adaaa9f655
commit: 66789ed82adcd9c42118004e0fc5ff2b3d72d959 [2/9] ASoC: tas2781: Support dsp firmware Alpha and Beta seaies
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250204/202502042144.r94y4VGy-lkp@intel.com/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/20250204/202502042144.r94y4VGy-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502042144.r94y4VGy-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from sound/pci/hda/tas2781_spi_fwlib.c:17:
   In file included from include/sound/pcm_params.h:10:
   In file included from include/sound/pcm.h:15:
   In file included from include/linux/mm.h:2224:
   include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     504 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     505 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     511 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     512 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     524 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     525 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> sound/pci/hda/tas2781_spi_fwlib.c:373:30: error: use of undeclared identifier 'PPC3_VERSION_TAS2781'
     373 |         if (fw_fixed_hdr->ppcver >= PPC3_VERSION_TAS2781) {
         |                                     ^
>> sound/pci/hda/tas2781_spi_fwlib.c:376:37: error: use of undeclared identifier 'PPC3_VERSION'
     376 |         } else if (fw_fixed_hdr->ppcver >= PPC3_VERSION) {
         |                                            ^
   sound/pci/hda/tas2781_spi_fwlib.c:1608:17: error: use of undeclared identifier 'PPC3_VERSION'
    1608 |                 if (ppcver >= PPC3_VERSION) {
         |                               ^
   3 warnings and 3 errors generated.


vim +/PPC3_VERSION_TAS2781 +373 sound/pci/hda/tas2781_spi_fwlib.c

bb5f86ea50ffb2 Baojun Xu 2024-12-16  361  
bb5f86ea50ffb2 Baojun Xu 2024-12-16  362  /* fixed m68k compiling issue: mapping table can save code field */
bb5f86ea50ffb2 Baojun Xu 2024-12-16  363  static unsigned char map_dev_idx(struct tasdevice_fw *tas_fmw,
bb5f86ea50ffb2 Baojun Xu 2024-12-16  364  	struct tasdev_blk *block)
bb5f86ea50ffb2 Baojun Xu 2024-12-16  365  {
bb5f86ea50ffb2 Baojun Xu 2024-12-16  366  	struct blktyp_devidx_map *p =
bb5f86ea50ffb2 Baojun Xu 2024-12-16  367  		(struct blktyp_devidx_map *)non_ppc3_mapping_table;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  368  	struct tasdevice_dspfw_hdr *fw_hdr = &tas_fmw->fw_hdr;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  369  	struct tasdevice_fw_fixed_hdr *fw_fixed_hdr = &fw_hdr->fixed_hdr;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  370  	int i, n = ARRAY_SIZE(non_ppc3_mapping_table);
bb5f86ea50ffb2 Baojun Xu 2024-12-16  371  	unsigned char dev_idx = 0;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  372  
bb5f86ea50ffb2 Baojun Xu 2024-12-16 @373  	if (fw_fixed_hdr->ppcver >= PPC3_VERSION_TAS2781) {
bb5f86ea50ffb2 Baojun Xu 2024-12-16  374  		p = (struct blktyp_devidx_map *)ppc3_tas2781_mapping_table;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  375  		n = ARRAY_SIZE(ppc3_tas2781_mapping_table);
bb5f86ea50ffb2 Baojun Xu 2024-12-16 @376  	} else if (fw_fixed_hdr->ppcver >= PPC3_VERSION) {
bb5f86ea50ffb2 Baojun Xu 2024-12-16  377  		p = (struct blktyp_devidx_map *)ppc3_mapping_table;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  378  		n = ARRAY_SIZE(ppc3_mapping_table);
bb5f86ea50ffb2 Baojun Xu 2024-12-16  379  	}
bb5f86ea50ffb2 Baojun Xu 2024-12-16  380  
bb5f86ea50ffb2 Baojun Xu 2024-12-16  381  	for (i = 0; i < n; i++) {
bb5f86ea50ffb2 Baojun Xu 2024-12-16  382  		if (block->type == p[i].blktyp) {
bb5f86ea50ffb2 Baojun Xu 2024-12-16  383  			dev_idx = p[i].dev_idx;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  384  			break;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  385  		}
bb5f86ea50ffb2 Baojun Xu 2024-12-16  386  	}
bb5f86ea50ffb2 Baojun Xu 2024-12-16  387  
bb5f86ea50ffb2 Baojun Xu 2024-12-16  388  	return dev_idx;
bb5f86ea50ffb2 Baojun Xu 2024-12-16  389  }
bb5f86ea50ffb2 Baojun Xu 2024-12-16  390  

:::::: The code at line 373 was first introduced by commit
:::::: bb5f86ea50ffb292f42eb1ebdb99991d5c5ac3ba ALSA: hda/tas2781: Add tas2781 hda SPI driver

:::::: TO: Baojun Xu <baojun.xu@ti.com>
:::::: CC: Takashi Iwai <tiwai@suse.de>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-04 13:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 13:45 [broonie-ci:fileaMnh6H 2/9] sound/pci/hda/tas2781_spi_fwlib.c:373:30: error: use of undeclared identifier 'PPC3_VERSION_TAS2781' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox