[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] pci: constify domain parameter of pci_get_pdev_by_domain
commit 2ef87a2d97f85f43c88e1adf7b5bc0b018270ba1 Author: Roger Pau Monné <roger.pau@xxxxxxxxxx> AuthorDate: Fri Sep 8 16:25:24 2017 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> 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é <roger.pau@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- 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 Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |