sound/pci/hda/patch_ca0132.c:8416:3: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'?

From: kbuild test robot
Date: Mon Dec 31 2018 - 20:10:59 EST


Hi Takashi,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f12e840c819bab42621685558a01d3f46ab9a226
commit: d99501b8575dc1248bacf1b58d2241cb4b265d49 ALSA: hda/ca0132 - Call pci_iounmap() instead of iounmap()
date: 7 weeks ago
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d99501b8575dc1248bacf1b58d2241cb4b265d49
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sh

All errors (new ones prefixed by >>):

sound/pci/hda/patch_ca0132.c: In function 'ca0132_free':
>> sound/pci/hda/patch_ca0132.c:8416:3: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'? [-Werror=implicit-function-declaration]
pci_iounmap(codec->bus->pci, spec->mem_base);
^~~~~~~~~~~
pcim_iounmap
sound/pci/hda/patch_ca0132.c: In function 'patch_ca0132':
sound/pci/hda/patch_ca0132.c:8799:20: error: implicit declaration of function 'pci_iomap'; did you mean 'pcim_iomap'? [-Werror=implicit-function-declaration]
spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
^~~~~~~~~
pcim_iomap
sound/pci/hda/patch_ca0132.c:8799:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
^
cc1: some warnings being treated as errors

vim +8416 sound/pci/hda/patch_ca0132.c

8386
8387 static void ca0132_free(struct hda_codec *codec)
8388 {
8389 struct ca0132_spec *spec = codec->spec;
8390
8391 cancel_delayed_work_sync(&spec->unsol_hp_work);
8392 snd_hda_power_up(codec);
8393 switch (spec->quirk) {
8394 case QUIRK_SBZ:
8395 sbz_exit_chip(codec);
8396 break;
8397 case QUIRK_ZXR:
8398 zxr_exit_chip(codec);
8399 break;
8400 case QUIRK_R3D:
8401 r3d_exit_chip(codec);
8402 break;
8403 case QUIRK_AE5:
8404 ae5_exit_chip(codec);
8405 break;
8406 case QUIRK_R3DI:
8407 r3di_gpio_shutdown(codec);
8408 break;
8409 }
8410
8411 snd_hda_sequence_write(codec, spec->base_exit_verbs);
8412 ca0132_exit_chip(codec);
8413
8414 snd_hda_power_down(codec);
8415 if (spec->mem_base)
> 8416 pci_iounmap(codec->bus->pci, spec->mem_base);
8417 kfree(spec->spec_init_verbs);
8418 kfree(codec->spec);
8419 }
8420

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip