From: Jan Beulich Date: Thu, 10 Aug 2017 10:36:24 +0000 (+0200) Subject: IOMMU/PCI: properly annotate setup_one_hwdom_device() X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1707 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=03124262730d803b1d34b4123c6a7835ad1926bb;p=xen.git IOMMU/PCI: properly annotate setup_one_hwdom_device() Its sole caller is __hwdom_init, so it can be such itself, too. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper Reviewed-by: Roger Pau Monné --- diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index b02d48953b..27bdb7163c 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -1026,8 +1026,8 @@ struct setup_hwdom { int (*handler)(u8 devfn, struct pci_dev *); }; -static void setup_one_hwdom_device(const struct setup_hwdom *ctxt, - struct pci_dev *pdev) +static void __hwdom_init setup_one_hwdom_device(const struct setup_hwdom *ctxt, + struct pci_dev *pdev) { u8 devfn = pdev->devfn;