[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210311313.erSSO2yd-lkp@intel.com>
Date: Mon, 31 Oct 2022 13:38:59 +0800
From: kernel test robot <lkp@...el.com>
To: Cezary Rojewski <cezary.rojewski@...el.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Takashi Iwai <tiwai@...e.de>,
Kai Vehmanen <kai.vehmanen@...ux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Subject: sound/soc/intel/skylake/skl.c:702: undefined reference to
`snd_hda_codec_device_init'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 30a0b95b1335e12efef89dd78518ed3e4a71a763
commit: 3fd63658caed9494cca1d4789a66d3d2def2a0ab ASoC: Intel: Drop hdac_ext usage for codec device creation
date: 2 months ago
config: i386-randconfig-r021-20221031
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3fd63658caed9494cca1d4789a66d3d2def2a0ab
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3fd63658caed9494cca1d4789a66d3d2def2a0ab
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
ld: sound/soc/intel/skylake/skl.o: in function `skl_codec_device_init':
>> sound/soc/intel/skylake/skl.c:702: undefined reference to `snd_hda_codec_device_init'
>> pahole: .tmp_vmlinux.btf: No such file or directory
.btf.vmlinux.bin.o: file not recognized: file format not recognized
vim +702 sound/soc/intel/skylake/skl.c
e4746d94d00c52 Cezary Rojewski 2022-08-16 696
3fd63658caed94 Cezary Rojewski 2022-08-16 697 static struct hda_codec *skl_codec_device_init(struct hdac_bus *bus, int addr)
e4746d94d00c52 Cezary Rojewski 2022-08-16 698 {
e4746d94d00c52 Cezary Rojewski 2022-08-16 699 struct hda_codec *codec;
e4746d94d00c52 Cezary Rojewski 2022-08-16 700 int ret;
e4746d94d00c52 Cezary Rojewski 2022-08-16 701
e4746d94d00c52 Cezary Rojewski 2022-08-16 @702 codec = snd_hda_codec_device_init(to_hda_bus(bus), addr, "ehdaudio%dD%d", bus->idx, addr);
e4746d94d00c52 Cezary Rojewski 2022-08-16 703 if (IS_ERR(codec)) {
e4746d94d00c52 Cezary Rojewski 2022-08-16 704 dev_err(bus->dev, "device init failed for hdac device\n");
e4746d94d00c52 Cezary Rojewski 2022-08-16 705 return codec;
e4746d94d00c52 Cezary Rojewski 2022-08-16 706 }
e4746d94d00c52 Cezary Rojewski 2022-08-16 707
e4746d94d00c52 Cezary Rojewski 2022-08-16 708 codec->core.type = HDA_DEV_ASOC;
e4746d94d00c52 Cezary Rojewski 2022-08-16 709 codec->core.dev.release = skl_codec_device_exit;
e4746d94d00c52 Cezary Rojewski 2022-08-16 710
e4746d94d00c52 Cezary Rojewski 2022-08-16 711 ret = snd_hdac_device_register(&codec->core);
e4746d94d00c52 Cezary Rojewski 2022-08-16 712 if (ret) {
e4746d94d00c52 Cezary Rojewski 2022-08-16 713 dev_err(bus->dev, "failed to register hdac device\n");
e4746d94d00c52 Cezary Rojewski 2022-08-16 714 snd_hdac_device_exit(&codec->core);
e4746d94d00c52 Cezary Rojewski 2022-08-16 715 return ERR_PTR(ret);
e4746d94d00c52 Cezary Rojewski 2022-08-16 716 }
e4746d94d00c52 Cezary Rojewski 2022-08-16 717
e4746d94d00c52 Cezary Rojewski 2022-08-16 718 return codec;
e4746d94d00c52 Cezary Rojewski 2022-08-16 719 }
e4746d94d00c52 Cezary Rojewski 2022-08-16 720
:::::: The code at line 702 was first introduced by commit
:::::: e4746d94d00c52918461bc169e009b6784a38e21 ASoC: Intel: Skylake: Introduce HDA codec init and exit routines
:::::: TO: Cezary Rojewski <cezary.rojewski@...el.com>
:::::: CC: Takashi Iwai <tiwai@...e.de>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (178651 bytes)
Powered by blists - more mailing lists