[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108271346.ptJMb36u-lkp@intel.com>
Date: Fri, 27 Aug 2021 13:54:57 +0800
From: kernel test robot <lkp@...el.com>
To: Megha Dey <megha.dey@...el.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [meghadey-crypto:d_msix 1/1] include/linux/pci.h:1525:5: warning: no
previous prototype for function 'pci_add_msix_irq_vectors'
tree: https://github.com/meghadey/crypto d_msix
head: fe0d346f093182500992e4d7d25b4ebff5de49b1
commit: fe0d346f093182500992e4d7d25b4ebff5de49b1 [1/1] PCI/MSI: Dynamic allocation of MSI-X vectors
config: i386-buildonly-randconfig-r004-20210827 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe)
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
# https://github.com/meghadey/crypto/commit/fe0d346f093182500992e4d7d25b4ebff5de49b1
git remote add meghadey-crypto https://github.com/meghadey/crypto
git fetch --no-tags meghadey-crypto d_msix
git checkout fe0d346f093182500992e4d7d25b4ebff5de49b1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 arch/x86/video/fbdev.c:10:
>> include/linux/pci.h:1525:5: warning: no previous prototype for function 'pci_add_msix_irq_vectors' [-Wmissing-prototypes]
int pci_add_msix_irq_vectors(struct pci_dev *dev, int minvec, int maxvec)
^
include/linux/pci.h:1525:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pci_add_msix_irq_vectors(struct pci_dev *dev, int minvec, int maxvec)
^
static
arch/x86/video/fbdev.c:14:5: warning: no previous prototype for function 'fb_is_primary_device' [-Wmissing-prototypes]
int fb_is_primary_device(struct fb_info *info)
^
arch/x86/video/fbdev.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int fb_is_primary_device(struct fb_info *info)
^
static
2 warnings generated.
vim +/pci_add_msix_irq_vectors +1525 include/linux/pci.h
1509
1510 #else
1511 static inline int pci_msi_vec_count(struct pci_dev *dev) { return -ENOSYS; }
1512 static inline void pci_disable_msi(struct pci_dev *dev) { }
1513 static inline int pci_msix_vec_count(struct pci_dev *dev) { return -ENOSYS; }
1514 static inline void pci_disable_msix(struct pci_dev *dev) { }
1515 static inline void pci_restore_msi_state(struct pci_dev *dev) { }
1516 static inline int pci_msi_enabled(void) { return 0; }
1517 static inline int pci_enable_msi(struct pci_dev *dev)
1518 { return -ENOSYS; }
1519 static inline int pci_enable_msix_range(struct pci_dev *dev,
1520 struct msix_entry *entries, int minvec, int maxvec)
1521 { return -ENOSYS; }
1522 static inline int pci_enable_msix_exact(struct pci_dev *dev,
1523 struct msix_entry *entries, int nvec)
1524 { return -ENOSYS; }
> 1525 int pci_add_msix_irq_vectors(struct pci_dev *dev, int minvec, int maxvec)
1526 { return -ENOSYS; }
1527
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (36009 bytes)
Powered by blists - more mailing lists