[alsa-devel] [sound:for-linus 15/15] sound/pci/hda/patch_hdmi.c:1638:18: error: implicit declaration of function 'pm_runtime_suspended'; did you mean 'pm_generic_suspend'?
kbuild test robot
lkp at intel.com
Mon Jul 2 16:10:00 CEST 2018
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
head: b0526c9f124fa2eada1c262743bf09edc3799a20
commit: b0526c9f124fa2eada1c262743bf09edc3799a20 [15/15] ALSA: hda - Handle pm failure during hotplug
config: x86_64-randconfig-x010-201826 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout b0526c9f124fa2eada1c262743bf09edc3799a20
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5:0,
from sound/pci/hda/patch_hdmi.c:32:
sound/pci/hda/patch_hdmi.c: In function 'hdmi_present_sense':
>> sound/pci/hda/patch_hdmi.c:1638:18: error: implicit declaration of function 'pm_runtime_suspended'; did you mean 'pm_generic_suspend'? [-Werror=implicit-function-declaration]
if (ret < 0 && pm_runtime_suspended(hda_codec_dev(codec))) {
^
include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
sound/pci/hda/patch_hdmi.c:1638:3: note: in expansion of macro 'if'
if (ret < 0 && pm_runtime_suspended(hda_codec_dev(codec))) {
^~
cc1: some warnings being treated as errors
vim +1638 sound/pci/hda/patch_hdmi.c
1629
1630 static bool hdmi_present_sense(struct hdmi_spec_per_pin *per_pin, int repoll)
1631 {
1632 struct hda_codec *codec = per_pin->codec;
1633 int ret;
1634
1635 /* no temporary power up/down needed for component notifier */
1636 if (!codec_has_acomp(codec)) {
1637 ret = snd_hda_power_up_pm(codec);
> 1638 if (ret < 0 && pm_runtime_suspended(hda_codec_dev(codec))) {
1639 snd_hda_power_down_pm(codec);
1640 return false;
1641 }
1642 }
1643
1644 if (codec_has_acomp(codec)) {
1645 sync_eld_via_acomp(codec, per_pin);
1646 ret = false; /* don't call snd_hda_jack_report_sync() */
1647 } else {
1648 ret = hdmi_present_sense_via_verbs(per_pin, repoll);
1649 }
1650
1651 if (!codec_has_acomp(codec))
1652 snd_hda_power_down_pm(codec);
1653
1654 return ret;
1655 }
1656
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 35450 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180702/ef676b8f/attachment-0001.bin>
More information about the Alsa-devel
mailing list