diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-08-21 14:49:34 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-08-21 14:50:03 -0400 |
commit | b8b0f559c7b1dcf5503817e518c81c9a18ee45e0 (patch) | |
tree | 99850c87a7eda4693409291bacdc7c1d07fe2498 /drivers/xen | |
parent | 4d9310e39728a87c86eb48492da7546f61189633 (diff) |
xen/apic/xenbus/swiotlb/pcifront/grant/tmem: Make functions or variables static.
There is no need for those functions/variables to be visible. Make them
static and also fix the compile warnings of this sort:
drivers/xen/<some file>.c: warning: symbol '<blah>' was not declared. Should it be static?
Some of them just require including the header file that
declares the functions.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-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 |
6 files changed, 12 insertions, 12 deletions
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index 1ffd03bf8e10..163b7e985ed0 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 1d0d95e5b446..eea81cf8a2a5 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 1afb4fba11b4..a52f3ae05d94 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 89f264c67420..144564e5eb29 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 be738c43104b..d73000800762 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 b793723e724d..91d3d6544a7b 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 | ||