[xen master] pci: constify domain parameter of pci_get_pdev_by_domain

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] pci: constify domain parameter of pci_get_pdev_by_domain

patchbot
commit 2ef87a2d97f85f43c88e1adf7b5bc0b018270ba1
Author:     Roger Pau Monné <[hidden email]>
AuthorDate: Fri Sep 8 16:25:24 2017 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Fri Sep 8 16:25:24 2017 +0200

    pci: constify domain parameter of pci_get_pdev_by_domain
   
    While there fix the indentation.
   
    Signed-off-by: Roger Pau Monné <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
---
 xen/drivers/passthrough/pci.c | 4 ++--
 xen/include/xen/pci.h         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c
index 74829e5..469dfc6 100644
--- a/xen/drivers/passthrough/pci.c
+++ b/xen/drivers/passthrough/pci.c
@@ -532,8 +532,8 @@ struct pci_dev *pci_get_real_pdev(int seg, int bus, int devfn)
     return pdev;
 }
 
-struct pci_dev *pci_get_pdev_by_domain(
-    struct domain *d, int seg, int bus, int devfn)
+struct pci_dev *pci_get_pdev_by_domain(const struct domain *d, int seg,
+                                       int bus, int devfn)
 {
     struct pci_seg *pseg = get_pseg(seg);
     struct pci_dev *pdev = NULL;
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
index da1bd22..43f2125 100644
--- a/xen/include/xen/pci.h
+++ b/xen/include/xen/pci.h
@@ -129,8 +129,8 @@ int pci_ro_device(int seg, int bus, int devfn);
 int pci_hide_device(int bus, int devfn);
 struct pci_dev *pci_get_pdev(int seg, int bus, int devfn);
 struct pci_dev *pci_get_real_pdev(int seg, int bus, int devfn);
-struct pci_dev *pci_get_pdev_by_domain(
-    struct domain *, int seg, int bus, int devfn);
+struct pci_dev *pci_get_pdev_by_domain(const struct domain *, int seg,
+                                       int bus, int devfn);
 void pci_check_disable_device(u16 seg, u8 bus, u8 devfn);
 
 uint8_t pci_conf_read8(
--
generated by git-patchbot for /home/xen/git/xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog