Skip to content

Commit daca194

Browse files
yishaihAlex Williamson
authored andcommitted
vfio/virtio: Declare virtiovf_pci_aer_reset_done() static
Declare virtiovf_pci_aer_reset_done() as a static function to prevent the below build warning. "warning: no previous prototype for 'virtiovf_pci_aer_reset_done' [-Wmissing-prototypes]" Fixes: eb61eca ("vfio/virtio: Introduce a vfio driver over virtio devices") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/lkml/20231220143122.63337669@canb.auug.org.au/ Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://lore.kernel.org/r/20231220082456.241973-1-yishaih@nvidia.com Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202312202115.oDmvN1VE-lkp@intel.com/ Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent 0214392 commit daca194

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/vfio/pci/virtio/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static const struct pci_device_id virtiovf_pci_table[] = {
547547

548548
MODULE_DEVICE_TABLE(pci, virtiovf_pci_table);
549549

550-
void virtiovf_pci_aer_reset_done(struct pci_dev *pdev)
550+
static void virtiovf_pci_aer_reset_done(struct pci_dev *pdev)
551551
{
552552
struct virtiovf_pci_core_device *virtvdev = dev_get_drvdata(&pdev->dev);
553553

0 commit comments

Comments
 (0)