drivers/pci/endpoint/functions/pci-epf-vntb.c:980:5: warning: no previous prototype for function 'pci_write'
kernel test robot
build botHi Frank,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android14-5.15 head: 36e3098ebf6d37570aab9dc5f8f4d24bd5ffdd06 commit: e2b6ef72b7aea9d7d480d2df499bcd1c93247abb [65/65] PCI: endpoint: Support NTB transfer between RC and EP config: x86_64-randconfig-2000-20261126 (https://download.01.org/0day-ci/archive/20261126/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project a2bea097c8bf336f31f45e88e96f20d88e37ff5a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from <built-in>:3:
In file included from include/linux/compiler_types.h:80:
include/linux/compiler-clang.h:24:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
24 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:357:9: note: previous definition is here
357 | #define __SANITIZE_ADDRESS__ 1
| ^
drivers/pci/endpoint/functions/pci-epf-vntb.c:971:5: warning: no previous prototype for function 'pci_read' [-Wmissing-prototypes]
971 | int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
| ^
drivers/pci/endpoint/functions/pci-epf-vntb.c:971:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
971 | int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
| ^
| static
>> drivers/pci/endpoint/functions/pci-epf-vntb.c:980:5: warning: no previous prototype for function 'pci_write' [-Wmissing-prototypes]
980 | int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
| ^
drivers/pci/endpoint/functions/pci-epf-vntb.c:980:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
980 | int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
| ^
| static 3 warnings generated.
vim +/pci_write +980 drivers/pci/endpoint/functions/pci-epf-vntb.c
970
> 971 int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
972 {
973 if (devfn == 0) {
974 memcpy(val, ((u8 *)pci_space) + where, size);
975 return PCIBIOS_SUCCESSFUL;
976 }
977 return PCIBIOS_DEVICE_NOT_FOUND;
978 }
979
> 980 int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) 981 {
982 return 0;
983 }
984
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki