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]
Message-ID: <202111231428.RmNJuNXe-lkp@intel.com>
Date:   Tue, 23 Nov 2021 15:18:30 +0800
From:   kernel test robot <lkp@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [tglx-devel:msi 18/91] drivers/pci/msi/legacy.c:54:5: warning: no
 previous prototype for function 'pci_msi_legacy_setup_msi_irqs'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi
head:   2d9ab27714e1576db18b1ee323eaae9886e16006
commit: 5e32e214c6eeda4237b4fb01cd77c6c247465e0c [18/91] PCI/MSI: Split out irqdomain code
config: mips-randconfig-r035-20211123 (https://download.01.org/0day-ci/archive/20211123/202111231428.RmNJuNXe-lkp@intel.com/config.gz)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=5e32e214c6eeda4237b4fb01cd77c6c247465e0c
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel msi
        git checkout 5e32e214c6eeda4237b4fb01cd77c6c247465e0c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/pci/msi/legacy.c:7:
   include/linux/msi.h:391:65: warning: declaration of 'struct cpumask' will not be visible outside of this function [-Wvisibility]
   int msi_domain_set_affinity(struct irq_data *data, const struct cpumask *mask,
                                                                   ^
   drivers/pci/msi/legacy.c:48:20: error: use of undeclared identifier 'entry'
                           for (i = 0; i < entry->nvec_used; i++)
                                           ^
>> drivers/pci/msi/legacy.c:54:5: warning: no previous prototype for function 'pci_msi_legacy_setup_msi_irqs' [-Wmissing-prototypes]
   int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
       ^
   drivers/pci/msi/legacy.c:54:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
   ^
   static 
>> drivers/pci/msi/legacy.c:59:6: warning: no previous prototype for function 'pci_msi_legacy_teardown_msi_irqs' [-Wmissing-prototypes]
   void pci_msi_legacy_teardown_msi_irqs(struct pci_dev *dev)
        ^
   drivers/pci/msi/legacy.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pci_msi_legacy_teardown_msi_irqs(struct pci_dev *dev)
   ^
   static 
   3 warnings and 1 error generated.


vim +/pci_msi_legacy_setup_msi_irqs +54 drivers/pci/msi/legacy.c

    53	
  > 54	int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
    55	{
    56		return arch_setup_msi_irqs(dev, nvec, type);
    57	}
    58	
  > 59	void pci_msi_legacy_teardown_msi_irqs(struct pci_dev *dev)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ