Commit 78d13166 authored by Cody P Schafer's avatar Cody P Schafer Committed by Benjamin Herrenschmidt

powerpc/perf/hv-24x7: Use (unsigned long) not (u32) values when calling plpar_hcall_norets()

Signed-off-by: default avatarCody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 58a685c2
...@@ -155,16 +155,28 @@ static ssize_t read_offset_data(void *dest, size_t dest_len, ...@@ -155,16 +155,28 @@ static ssize_t read_offset_data(void *dest, size_t dest_len,
return copy_len; return copy_len;
} }
static unsigned long h_get_24x7_catalog_page(char page[static 4096], static unsigned long h_get_24x7_catalog_page_(unsigned long phys_4096,
u32 version, u32 index) unsigned long version,
unsigned long index)
{ {
WARN_ON(!IS_ALIGNED((unsigned long)page, 4096)); pr_devel("h_get_24x7_catalog_page(0x%lx, %lu, %lu)",
phys_4096,
version,
index);
WARN_ON(!IS_ALIGNED(phys_4096, 4096));
return plpar_hcall_norets(H_GET_24X7_CATALOG_PAGE, return plpar_hcall_norets(H_GET_24X7_CATALOG_PAGE,
virt_to_phys(page), phys_4096,
version, version,
index); index);
} }
static unsigned long h_get_24x7_catalog_page(char page[static 4096],
u32 version, u32 index)
{
return h_get_24x7_catalog_page_(virt_to_phys(page),
version, index);
}
static ssize_t catalog_read(struct file *filp, struct kobject *kobj, static ssize_t catalog_read(struct file *filp, struct kobject *kobj,
struct bin_attribute *bin_attr, char *buf, struct bin_attribute *bin_attr, char *buf,
loff_t offset, size_t count) loff_t offset, size_t count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment