From: kernel test robot <lkp@intel.com>
To: Shenghao Ding <shenghao-ding@ti.com>
Cc: oe-kbuild-all@lists.linux.dev, Mark Brown <broonie@kernel.org>
Subject: [broonie-ci:fileaMnh6H 2/9] sound/pci/hda/tas2781_spi_fwlib.c:373:37: error: 'PPC3_VERSION_TAS2781' undeclared; did you mean 'PPC3_VERSION_BASE'?
Date: Mon, 3 Feb 2025 15:21:42 +0800 [thread overview]
Message-ID: <202502031529.bBIBN8Qx-lkp@intel.com> (raw)
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: i386-allmodconfig (https://download.01.org/0day-ci/archive/20250203/202502031529.bBIBN8Qx-lkp@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/20250203/202502031529.bBIBN8Qx-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/202502031529.bBIBN8Qx-lkp@intel.com/
All errors (new ones prefixed by >>):
sound/pci/hda/tas2781_spi_fwlib.c: In function 'map_dev_idx':
>> sound/pci/hda/tas2781_spi_fwlib.c:373:37: error: 'PPC3_VERSION_TAS2781' undeclared (first use in this function); did you mean 'PPC3_VERSION_BASE'?
373 | if (fw_fixed_hdr->ppcver >= PPC3_VERSION_TAS2781) {
| ^~~~~~~~~~~~~~~~~~~~
| PPC3_VERSION_BASE
sound/pci/hda/tas2781_spi_fwlib.c:373:37: note: each undeclared identifier is reported only once for each function it appears in
>> sound/pci/hda/tas2781_spi_fwlib.c:376:44: error: 'PPC3_VERSION' undeclared (first use in this function); did you mean 'GCC_VERSION'?
376 | } else if (fw_fixed_hdr->ppcver >= PPC3_VERSION) {
| ^~~~~~~~~~~~
| GCC_VERSION
sound/pci/hda/tas2781_spi_fwlib.c: In function 'dspfw_default_callback':
sound/pci/hda/tas2781_spi_fwlib.c:1608:31: error: 'PPC3_VERSION' undeclared (first use in this function); did you mean 'GCC_VERSION'?
1608 | if (ppcver >= PPC3_VERSION) {
| ^~~~~~~~~~~~
| GCC_VERSION
vim +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
reply other threads:[~2025-02-03 7:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502031529.bBIBN8Qx-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=shenghao-ding@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.