* [asoc:for-5.2 248/316] sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup'
@ 2019-05-07 13:28 kbuild test robot
2019-05-07 15:57 ` Pierre-Louis Bossart
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-05-07 13:28 UTC (permalink / raw)
To: Liam Girdwood
Cc: Takashi Iwai, alsa-devel, Mark Brown, kbuild-all, Pierre-Louis Bossart
[-- Attachment #1: Type: text/plain, Size: 3352 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2
head: f153bf49ddf6169544b24ef5ea26fa3eb4996b95
commit: 7e978fa37df7f771a5d02934ff828a0ee36bcf11 [248/316] ASoC: SOF: Add Build support for SOF core and Intel drivers
config: i386-randconfig-l1-05071509 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
git checkout 7e978fa37df7f771a5d02934ff828a0ee36bcf11
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: sound/soc/sof/core.o: in function `sof_machine_check':
>> sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup'
vim +279 sound/soc/sof/core.c
c16211d6 Liam Girdwood 2019-04-12 255
c16211d6 Liam Girdwood 2019-04-12 256 /*
c16211d6 Liam Girdwood 2019-04-12 257 * SOF Driver enumeration.
c16211d6 Liam Girdwood 2019-04-12 258 */
c16211d6 Liam Girdwood 2019-04-12 259 static int sof_machine_check(struct snd_sof_dev *sdev)
c16211d6 Liam Girdwood 2019-04-12 260 {
c16211d6 Liam Girdwood 2019-04-12 261 struct snd_sof_pdata *plat_data = sdev->pdata;
c16211d6 Liam Girdwood 2019-04-12 262 struct snd_soc_acpi_mach *machine;
c16211d6 Liam Girdwood 2019-04-12 263 int ret;
c16211d6 Liam Girdwood 2019-04-12 264
c16211d6 Liam Girdwood 2019-04-12 265 if (plat_data->machine)
c16211d6 Liam Girdwood 2019-04-12 266 return 0;
c16211d6 Liam Girdwood 2019-04-12 267
c16211d6 Liam Girdwood 2019-04-12 268 if (!IS_ENABLED(CONFIG_SND_SOC_SOF_NOCODEC)) {
c16211d6 Liam Girdwood 2019-04-12 269 dev_err(sdev->dev, "error: no matching ASoC machine driver found - aborting probe\n");
c16211d6 Liam Girdwood 2019-04-12 270 return -ENODEV;
c16211d6 Liam Girdwood 2019-04-12 271 }
c16211d6 Liam Girdwood 2019-04-12 272
c16211d6 Liam Girdwood 2019-04-12 273 /* fallback to nocodec mode */
c16211d6 Liam Girdwood 2019-04-12 274 dev_warn(sdev->dev, "No ASoC machine driver found - using nocodec\n");
c16211d6 Liam Girdwood 2019-04-12 275 machine = devm_kzalloc(sdev->dev, sizeof(*machine), GFP_KERNEL);
c16211d6 Liam Girdwood 2019-04-12 276 if (!machine)
c16211d6 Liam Girdwood 2019-04-12 277 return -ENOMEM;
c16211d6 Liam Girdwood 2019-04-12 278
c16211d6 Liam Girdwood 2019-04-12 @279 ret = sof_nocodec_setup(sdev->dev, plat_data, machine,
c16211d6 Liam Girdwood 2019-04-12 280 plat_data->desc, plat_data->desc->ops);
c16211d6 Liam Girdwood 2019-04-12 281 if (ret < 0)
c16211d6 Liam Girdwood 2019-04-12 282 return ret;
c16211d6 Liam Girdwood 2019-04-12 283
c16211d6 Liam Girdwood 2019-04-12 284 plat_data->machine = machine;
c16211d6 Liam Girdwood 2019-04-12 285
c16211d6 Liam Girdwood 2019-04-12 286 return 0;
c16211d6 Liam Girdwood 2019-04-12 287 }
c16211d6 Liam Girdwood 2019-04-12 288
:::::: The code at line 279 was first introduced by commit
:::::: c16211d6226dbde8819b84da07508083a1138a06 ASoC: SOF: Add Sound Open Firmware driver core
:::::: TO: Liam Girdwood <liam.r.girdwood@linux.intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35078 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [asoc:for-5.2 248/316] sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup'
2019-05-07 13:28 [asoc:for-5.2 248/316] sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup' kbuild test robot
@ 2019-05-07 15:57 ` Pierre-Louis Bossart
0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Louis Bossart @ 2019-05-07 15:57 UTC (permalink / raw)
To: kbuild test robot, Liam Girdwood
Cc: Takashi Iwai, alsa-devel, Mark Brown, kbuild-all
On 5/7/19 8:28 AM, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2
> head: f153bf49ddf6169544b24ef5ea26fa3eb4996b95
> commit: 7e978fa37df7f771a5d02934ff828a0ee36bcf11 [248/316] ASoC: SOF: Add Build support for SOF core and Intel drivers
> config: i386-randconfig-l1-05071509 (attached as .config)
> compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
> reproduce:
> git checkout 7e978fa37df7f771a5d02934ff828a0ee36bcf11
> # save the attached .config to linux build tree
> make ARCH=i386
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> ld: sound/soc/sof/core.o: in function `sof_machine_check':
>>> sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup'
Ack. this is a confusion between if (IS_ENABLED(SND_SOC_SOF_NOCODEC))
and #if IS_ENABLED(SND_SOC_SOF_NOCODEC)
Will send a formal fix shortly.
>
> vim +279 sound/soc/sof/core.c
>
> c16211d6 Liam Girdwood 2019-04-12 255
> c16211d6 Liam Girdwood 2019-04-12 256 /*
> c16211d6 Liam Girdwood 2019-04-12 257 * SOF Driver enumeration.
> c16211d6 Liam Girdwood 2019-04-12 258 */
> c16211d6 Liam Girdwood 2019-04-12 259 static int sof_machine_check(struct snd_sof_dev *sdev)
> c16211d6 Liam Girdwood 2019-04-12 260 {
> c16211d6 Liam Girdwood 2019-04-12 261 struct snd_sof_pdata *plat_data = sdev->pdata;
> c16211d6 Liam Girdwood 2019-04-12 262 struct snd_soc_acpi_mach *machine;
> c16211d6 Liam Girdwood 2019-04-12 263 int ret;
> c16211d6 Liam Girdwood 2019-04-12 264
> c16211d6 Liam Girdwood 2019-04-12 265 if (plat_data->machine)
> c16211d6 Liam Girdwood 2019-04-12 266 return 0;
> c16211d6 Liam Girdwood 2019-04-12 267
> c16211d6 Liam Girdwood 2019-04-12 268 if (!IS_ENABLED(CONFIG_SND_SOC_SOF_NOCODEC)) {
> c16211d6 Liam Girdwood 2019-04-12 269 dev_err(sdev->dev, "error: no matching ASoC machine driver found - aborting probe\n");
> c16211d6 Liam Girdwood 2019-04-12 270 return -ENODEV;
> c16211d6 Liam Girdwood 2019-04-12 271 }
> c16211d6 Liam Girdwood 2019-04-12 272
> c16211d6 Liam Girdwood 2019-04-12 273 /* fallback to nocodec mode */
> c16211d6 Liam Girdwood 2019-04-12 274 dev_warn(sdev->dev, "No ASoC machine driver found - using nocodec\n");
> c16211d6 Liam Girdwood 2019-04-12 275 machine = devm_kzalloc(sdev->dev, sizeof(*machine), GFP_KERNEL);
> c16211d6 Liam Girdwood 2019-04-12 276 if (!machine)
> c16211d6 Liam Girdwood 2019-04-12 277 return -ENOMEM;
> c16211d6 Liam Girdwood 2019-04-12 278
> c16211d6 Liam Girdwood 2019-04-12 @279 ret = sof_nocodec_setup(sdev->dev, plat_data, machine,
> c16211d6 Liam Girdwood 2019-04-12 280 plat_data->desc, plat_data->desc->ops);
> c16211d6 Liam Girdwood 2019-04-12 281 if (ret < 0)
> c16211d6 Liam Girdwood 2019-04-12 282 return ret;
> c16211d6 Liam Girdwood 2019-04-12 283
> c16211d6 Liam Girdwood 2019-04-12 284 plat_data->machine = machine;
> c16211d6 Liam Girdwood 2019-04-12 285
> c16211d6 Liam Girdwood 2019-04-12 286 return 0;
> c16211d6 Liam Girdwood 2019-04-12 287 }
> c16211d6 Liam Girdwood 2019-04-12 288
>
> :::::: The code at line 279 was first introduced by commit
> :::::: c16211d6226dbde8819b84da07508083a1138a06 ASoC: SOF: Add Sound Open Firmware driver core
>
> :::::: TO: Liam Girdwood <liam.r.girdwood@linux.intel.com>
> :::::: CC: Mark Brown <broonie@kernel.org>
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
>
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-07 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-07 13:28 [asoc:for-5.2 248/316] sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup' kbuild test robot
2019-05-07 15:57 ` Pierre-Louis Bossart
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.