]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
IOMMU/PCI: properly annotate setup_one_hwdom_device()
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Aug 2017 10:36:24 +0000 (12:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Aug 2017 10:36:24 +0000 (12:36 +0200)
Its sole caller is __hwdom_init, so it can be such itself, too.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/drivers/passthrough/pci.c

index b02d48953b3715ce5efafa0351929645de1c503c..27bdb7163c90e380be87f46a476edf841ecc5dd9 100644 (file)
@@ -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;