linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sound/pci//hda/patch_ca0132.c:8416:3: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'?
@ 2018-12-30  5:17 kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2018-12-30  5:17 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2819 bytes --]

Hi Takashi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   195303136f192d37b89e20a8d1d2670d0d825266
commit: d99501b8575dc1248bacf1b58d2241cb4b265d49 ALSA: hda/ca0132 - Call pci_iounmap() instead of iounmap()
date:   7 weeks ago
config: sh-allmodconfig (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 #2: .config.gz --]
[-- Type: application/gzip, Size: 50400 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* sound/pci//hda/patch_ca0132.c:8416:3: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'?
@ 2019-01-29 23:15 kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2019-01-29 23:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2843 bytes --]

Hi Takashi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f17b5f06cb92ef2250513a1e154c47b78df07d40
commit: d99501b8575dc1248bacf1b58d2241cb4b265d49 ALSA: hda/ca0132 - Call pci_iounmap() instead of iounmap()
date:   3 months ago
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 8.2.0-11) 8.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=8.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 to 'void *' from 'int' 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 #2: .config.gz --]
[-- Type: application/gzip, Size: 50388 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-29 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-30  5:17 sound/pci//hda/patch_ca0132.c:8416:3: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'? kbuild test robot
2019-01-29 23:15 kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).