vfio/virtio: Declare virtiovf_pci_aer_reset_done() static
Subsystems (4)
Yishai Hadas
maintainerPATCH 1/1 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 eb61eca0e8c3 ("vfio/virtio: Introduce a vfio driver over virtio devices")
Reported-by Stephen Rothwell <[email protected]>
Signed-off-by Yishai Hadas <[email protected]>
--- drivers/vfio/pci/virtio/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/pci/virtio/main.c +1 -1
@@ -547,7 +547,7 @@ static const struct pci_device_id virtiovf_pci_table[] = {MODULE_DEVICE_TABLE (pci, virtiovf_pci_table); -void virtiovf_pci_aer_reset_done (struct pci_dev *pdev) +static void virtiovf_pci_aer_reset_done (struct pci_dev *pdev) {struct virtiovf_pci_core_device *virtvdev =dev_get_drvdata (&pdev->dev);
Signature · 1 line
2.27.0
Alex Williamson
AppliedQuoted 19 lines · On Wed, 20 Dec 2023 10:24:56 +0200 Yishai Hadas <[email protected]> wrote:
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 eb61eca0e8c3 ("vfio/virtio: Introduce a vfio driver over virtio devices")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Yishai Hadas <[email protected]>--- drivers/vfio/pci/virtio/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/vfio/pci/virtio/main.c +0
-0
drivers/vfio/pci/virtio/main.c static const struct pci_device_id virtiovf_pci_table[] = { · line 553
Quoted 8 lines
drivers/vfio/pci/virtio/main.c +1
-1@@ -547,7 +547,7 @@ static const struct pci_device_id virtiovf_pci_table[] = {MODULE_DEVICE_TABLE (pci, virtiovf_pci_table); -void virtiovf_pci_aer_reset_done (struct pci_dev *pdev) +static void virtiovf_pci_aer_reset_done (struct pci_dev *pdev) {struct virtiovf_pci_core_device *virtvdev =dev_get_drvdata (&pdev->dev);
Applied to vfio next branch for v6.8. Thanks,
Alex