diff options
-rw-r--r-- | arch/arm/xen/enlighten.c | 6 | ||||
-rw-r--r-- | drivers/xen/grant-table.c | 6 | ||||
-rw-r--r-- | include/xen/grant_table.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 3465f25d7702..b96723e258a0 100644 --- a/arch/arm/xen/enlighten.c +++ b/arch/arm/xen/enlighten.c | |||
@@ -234,7 +234,7 @@ static int __init xen_guest_init(void) | |||
234 | const char *version = NULL; | 234 | const char *version = NULL; |
235 | const char *xen_prefix = "xen,xen-"; | 235 | const char *xen_prefix = "xen,xen-"; |
236 | struct resource res; | 236 | struct resource res; |
237 | unsigned long grant_frames; | 237 | phys_addr_t grant_frames; |
238 | 238 | ||
239 | node = of_find_compatible_node(NULL, NULL, "xen,xen"); | 239 | node = of_find_compatible_node(NULL, NULL, "xen,xen"); |
240 | if (!node) { | 240 | if (!node) { |
@@ -253,8 +253,8 @@ static int __init xen_guest_init(void) | |||
253 | return 0; | 253 | return 0; |
254 | grant_frames = res.start; | 254 | grant_frames = res.start; |
255 | xen_events_irq = irq_of_parse_and_map(node, 0); | 255 | xen_events_irq = irq_of_parse_and_map(node, 0); |
256 | pr_info("Xen %s support found, events_irq=%d gnttab_frame_pfn=%lx\n", | 256 | pr_info("Xen %s support found, events_irq=%d gnttab_frame=%pa\n", |
257 | version, xen_events_irq, (grant_frames >> PAGE_SHIFT)); | 257 | version, xen_events_irq, &grant_frames); |
258 | 258 | ||
259 | if (xen_events_irq < 0) | 259 | if (xen_events_irq < 0) |
260 | return -ENODEV; | 260 | return -ENODEV; |
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 1ce1c40331f3..b84e3ab839aa 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c | |||
@@ -837,7 +837,7 @@ unsigned int gnttab_max_grant_frames(void) | |||
837 | } | 837 | } |
838 | EXPORT_SYMBOL_GPL(gnttab_max_grant_frames); | 838 | EXPORT_SYMBOL_GPL(gnttab_max_grant_frames); |
839 | 839 | ||
840 | int gnttab_setup_auto_xlat_frames(unsigned long addr) | 840 | int gnttab_setup_auto_xlat_frames(phys_addr_t addr) |
841 | { | 841 | { |
842 | xen_pfn_t *pfn; | 842 | xen_pfn_t *pfn; |
843 | unsigned int max_nr_gframes = __max_nr_grant_frames(); | 843 | unsigned int max_nr_gframes = __max_nr_grant_frames(); |
@@ -849,8 +849,8 @@ int gnttab_setup_auto_xlat_frames(unsigned long addr) | |||
849 | 849 | ||
850 | vaddr = xen_remap(addr, PAGE_SIZE * max_nr_gframes); | 850 | vaddr = xen_remap(addr, PAGE_SIZE * max_nr_gframes); |
851 | if (vaddr == NULL) { | 851 | if (vaddr == NULL) { |
852 | pr_warn("Failed to ioremap gnttab share frames (addr=0x%08lx)!\n", | 852 | pr_warn("Failed to ioremap gnttab share frames (addr=%pa)!\n", |
853 | addr); | 853 | &addr); |
854 | return -ENOMEM; | 854 | return -ENOMEM; |
855 | } | 855 | } |
856 | pfn = kcalloc(max_nr_gframes, sizeof(pfn[0]), GFP_KERNEL); | 856 | pfn = kcalloc(max_nr_gframes, sizeof(pfn[0]), GFP_KERNEL); |
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h index 5acb1e4ac0d3..a5af2a26d94f 100644 --- a/include/xen/grant_table.h +++ b/include/xen/grant_table.h | |||
@@ -185,7 +185,7 @@ struct grant_frames { | |||
185 | }; | 185 | }; |
186 | extern struct grant_frames xen_auto_xlat_grant_frames; | 186 | extern struct grant_frames xen_auto_xlat_grant_frames; |
187 | unsigned int gnttab_max_grant_frames(void); | 187 | unsigned int gnttab_max_grant_frames(void); |
188 | int gnttab_setup_auto_xlat_frames(unsigned long addr); | 188 | int gnttab_setup_auto_xlat_frames(phys_addr_t addr); |
189 | void gnttab_free_auto_xlat_frames(void); | 189 | void gnttab_free_auto_xlat_frames(void); |
190 | 190 | ||
191 | #define gnttab_map_vaddr(map) ((void *)(map.host_virt_addr)) | 191 | #define gnttab_map_vaddr(map) ((void *)(map.host_virt_addr)) |