diff options
author | Arnd Bergmann <[email protected]> | 2023-08-10 16:19:22 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2023-08-14 12:05:18 -0500 |
commit | 87382eaddeed3d32afc9e4524f9488eb1bc999c2 (patch) | |
tree | fa08a9923155b9925e75e643a750310bca6bfc70 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 0e8207f54cf5902367080a0e648d3adae6c019a1 (diff) |
PCI/sysfs: Move declarations to linux/pci.h
A couple of architectures build the __weak versions of
pci_create_resource_files() and pci_remove_resource_files() but don't
have prototypes for these, which causes warnings:
drivers/pci/pci-sysfs.c:1253:12: error: no previous prototype for 'pci_create_resource_files' [-Werror=missing-prototypes]
1253 | int __weak pci_create_resource_files(struct pci_dev *dev) { return 0; }
drivers/pci/pci-sysfs.c:1254:13: error: no previous prototype for 'pci_remove_resource_files' [-Werror=missing-prototypes]
1254 | void __weak pci_remove_resource_files(struct pci_dev *dev) { return; }
Move the prototypes from alpha architecture into the global header to avoid
these warnings for all of them.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions