lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 30 Jan 2019 07:15:08 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Takashi Iwai <tiwai@...e.de>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org
Subject: sound/pci//hda/patch_ca0132.c:8416:3: error: implicit declaration of
 function 'pci_iounmap'; did you mean 'pcim_iounmap'?

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

Download attachment ".config.gz" of type "application/gzip" (50388 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ