diff options
-rw-r--r-- | arch/x86/xen/apic.c | 3 | ||||
-rw-r--r-- | arch/x86/xen/enlighten.c | 2 | ||||
-rw-r--r-- | arch/x86/xen/pci-swiotlb-xen.c | 1 | ||||
-rw-r--r-- | arch/x86/xen/platform-pci-unplug.c | 1 | ||||
-rw-r--r-- | drivers/pci/xen-pcifront.c | 2 | ||||
-rw-r--r-- | drivers/xen/gntdev.c | 2 | ||||
-rw-r--r-- | drivers/xen/grant-table.c | 13 | ||||
-rw-r--r-- | drivers/xen/swiotlb-xen.c | 2 | ||||
-rw-r--r-- | drivers/xen/tmem.c | 1 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_dev_backend.c | 2 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 4 |
11 files changed, 19 insertions, 14 deletions
diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c index ec57bd3818a..7005ced5d1a 100644 --- a/arch/x86/xen/apic.c +++ b/arch/x86/xen/apic.c | |||
@@ -6,8 +6,9 @@ | |||
6 | 6 | ||
7 | #include <xen/xen.h> | 7 | #include <xen/xen.h> |
8 | #include <xen/interface/physdev.h> | 8 | #include <xen/interface/physdev.h> |
9 | #include "xen-ops.h" | ||
9 | 10 | ||
10 | unsigned int xen_io_apic_read(unsigned apic, unsigned reg) | 11 | static unsigned int xen_io_apic_read(unsigned apic, unsigned reg) |
11 | { | 12 | { |
12 | struct physdev_apic apic_op; | 13 | struct physdev_apic apic_op; |
13 | int ret; | 14 | int ret; |
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index ff962d4b821..cb1b1914dbd 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -79,6 +79,8 @@ | |||
79 | #include "smp.h" | 79 | #include "smp.h" |
80 | #include "multicalls.h" | 80 | #include "multicalls.h" |
81 | 81 | ||
82 | #include <xen/events.h> | ||
83 | |||
82 | EXPORT_SYMBOL_GPL(hypercall_page); | 84 | EXPORT_SYMBOL_GPL(hypercall_page); |
83 | 85 | ||
84 | DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu); | 86 | DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu); |
diff --git a/arch/x86/xen/pci-swiotlb-xen.c b/arch/x86/xen/pci-swiotlb-xen.c index 967633ad98c..2d58b3ff4fa 100644 --- a/arch/x86/xen/pci-swiotlb-xen.c +++ b/arch/x86/xen/pci-swiotlb-xen.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <xen/xen.h> | 8 | #include <xen/xen.h> |
9 | #include <asm/iommu_table.h> | 9 | #include <asm/iommu_table.h> |
10 | 10 | ||
11 | #include <asm/xen/swiotlb-xen.h> | ||
11 | int xen_swiotlb __read_mostly; | 12 | int xen_swiotlb __read_mostly; |
12 | 13 | ||
13 | static struct dma_map_ops xen_swiotlb_dma_ops = { | 14 | static struct dma_map_ops xen_swiotlb_dma_ops = { |
diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index ffcf2615640..0a7852483ff 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/x86/xen/platform-pci-unplug.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | 25 | ||
26 | #include <xen/platform_pci.h> | 26 | #include <xen/platform_pci.h> |
27 | #include "xen-ops.h" | ||
27 | 28 | ||
28 | #define XEN_PLATFORM_ERR_MAGIC -1 | 29 | #define XEN_PLATFORM_ERR_MAGIC -1 |
29 | #define XEN_PLATFORM_ERR_PROTOCOL -2 | 30 | #define XEN_PLATFORM_ERR_PROTOCOL -2 |
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c index d6cc62cb4cf..a4d901def8f 100644 --- a/drivers/pci/xen-pcifront.c +++ b/drivers/pci/xen-pcifront.c | |||
@@ -236,7 +236,7 @@ static int pcifront_bus_write(struct pci_bus *bus, unsigned int devfn, | |||
236 | return errno_to_pcibios_err(do_pci_op(pdev, &op)); | 236 | return errno_to_pcibios_err(do_pci_op(pdev, &op)); |
237 | } | 237 | } |
238 | 238 | ||
239 | struct pci_ops pcifront_bus_ops = { | 239 | static struct pci_ops pcifront_bus_ops = { |
240 | .read = pcifront_bus_read, | 240 | .read = pcifront_bus_read, |
241 | .write = pcifront_bus_write, | 241 | .write = pcifront_bus_write, |
242 | }; | 242 | }; |
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index 1ffd03bf8e1..163b7e985ed 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c | |||
@@ -445,7 +445,7 @@ static void mn_release(struct mmu_notifier *mn, | |||
445 | spin_unlock(&priv->lock); | 445 | spin_unlock(&priv->lock); |
446 | } | 446 | } |
447 | 447 | ||
448 | struct mmu_notifier_ops gntdev_mmu_ops = { | 448 | static struct mmu_notifier_ops gntdev_mmu_ops = { |
449 | .release = mn_release, | 449 | .release = mn_release, |
450 | .invalidate_page = mn_invl_page, | 450 | .invalidate_page = mn_invl_page, |
451 | .invalidate_range_start = mn_invl_range_start, | 451 | .invalidate_range_start = mn_invl_range_start, |
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 1d0d95e5b44..eea81cf8a2a 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c | |||
@@ -286,10 +286,9 @@ int gnttab_grant_foreign_access(domid_t domid, unsigned long frame, | |||
286 | } | 286 | } |
287 | EXPORT_SYMBOL_GPL(gnttab_grant_foreign_access); | 287 | EXPORT_SYMBOL_GPL(gnttab_grant_foreign_access); |
288 | 288 | ||
289 | void gnttab_update_subpage_entry_v2(grant_ref_t ref, domid_t domid, | 289 | static void gnttab_update_subpage_entry_v2(grant_ref_t ref, domid_t domid, |
290 | unsigned long frame, int flags, | 290 | unsigned long frame, int flags, |
291 | unsigned page_off, | 291 | unsigned page_off, unsigned length) |
292 | unsigned length) | ||
293 | { | 292 | { |
294 | gnttab_shared.v2[ref].sub_page.frame = frame; | 293 | gnttab_shared.v2[ref].sub_page.frame = frame; |
295 | gnttab_shared.v2[ref].sub_page.page_off = page_off; | 294 | gnttab_shared.v2[ref].sub_page.page_off = page_off; |
@@ -346,9 +345,9 @@ bool gnttab_subpage_grants_available(void) | |||
346 | } | 345 | } |
347 | EXPORT_SYMBOL_GPL(gnttab_subpage_grants_available); | 346 | EXPORT_SYMBOL_GPL(gnttab_subpage_grants_available); |
348 | 347 | ||
349 | void gnttab_update_trans_entry_v2(grant_ref_t ref, domid_t domid, | 348 | static void gnttab_update_trans_entry_v2(grant_ref_t ref, domid_t domid, |
350 | int flags, domid_t trans_domid, | 349 | int flags, domid_t trans_domid, |
351 | grant_ref_t trans_gref) | 350 | grant_ref_t trans_gref) |
352 | { | 351 | { |
353 | gnttab_shared.v2[ref].transitive.trans_domid = trans_domid; | 352 | gnttab_shared.v2[ref].transitive.trans_domid = trans_domid; |
354 | gnttab_shared.v2[ref].transitive.gref = trans_gref; | 353 | gnttab_shared.v2[ref].transitive.gref = trans_gref; |
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index 1afb4fba11b..a52f3ae05d9 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c | |||
@@ -52,7 +52,7 @@ static unsigned long xen_io_tlb_nslabs; | |||
52 | * Quick lookup value of the bus address of the IOTLB. | 52 | * Quick lookup value of the bus address of the IOTLB. |
53 | */ | 53 | */ |
54 | 54 | ||
55 | u64 start_dma_addr; | 55 | static u64 start_dma_addr; |
56 | 56 | ||
57 | static dma_addr_t xen_phys_to_bus(phys_addr_t paddr) | 57 | static dma_addr_t xen_phys_to_bus(phys_addr_t paddr) |
58 | { | 58 | { |
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index 89f264c6742..144564e5eb2 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/xen/hypercall.h> | 21 | #include <asm/xen/hypercall.h> |
22 | #include <asm/xen/page.h> | 22 | #include <asm/xen/page.h> |
23 | #include <asm/xen/hypervisor.h> | 23 | #include <asm/xen/hypervisor.h> |
24 | #include <xen/tmem.h> | ||
24 | 25 | ||
25 | #define TMEM_CONTROL 0 | 26 | #define TMEM_CONTROL 0 |
26 | #define TMEM_NEW_POOL 1 | 27 | #define TMEM_NEW_POOL 1 |
diff --git a/drivers/xen/xenbus/xenbus_dev_backend.c b/drivers/xen/xenbus/xenbus_dev_backend.c index be738c43104..d7300080076 100644 --- a/drivers/xen/xenbus/xenbus_dev_backend.c +++ b/drivers/xen/xenbus/xenbus_dev_backend.c | |||
@@ -107,7 +107,7 @@ static int xenbus_backend_mmap(struct file *file, struct vm_area_struct *vma) | |||
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |
109 | 109 | ||
110 | const struct file_operations xenbus_backend_fops = { | 110 | static const struct file_operations xenbus_backend_fops = { |
111 | .open = xenbus_backend_open, | 111 | .open = xenbus_backend_open, |
112 | .mmap = xenbus_backend_mmap, | 112 | .mmap = xenbus_backend_mmap, |
113 | .unlocked_ioctl = xenbus_backend_ioctl, | 113 | .unlocked_ioctl = xenbus_backend_ioctl, |
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index b793723e724..91d3d6544a7 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
@@ -324,8 +324,8 @@ static int cmp_dev(struct device *dev, void *data) | |||
324 | return 0; | 324 | return 0; |
325 | } | 325 | } |
326 | 326 | ||
327 | struct xenbus_device *xenbus_device_find(const char *nodename, | 327 | static struct xenbus_device *xenbus_device_find(const char *nodename, |
328 | struct bus_type *bus) | 328 | struct bus_type *bus) |
329 | { | 329 | { |
330 | struct xb_find_info info = { .dev = NULL, .nodename = nodename }; | 330 | struct xb_find_info info = { .dev = NULL, .nodename = nodename }; |
331 | 331 | ||