Skip to content

Commit

Permalink
powerpc/perf/hv-24x7: Use (unsigned long) not (u32) values when calli…
Browse files Browse the repository at this point in the history
…ng plpar_hcall_norets()

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Cody P Schafer authored and Benjamin Herrenschmidt committed Apr 28, 2014
1 parent 58a685c commit 78d1316
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions arch/powerpc/perf/hv-24x7.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,28 @@ static ssize_t read_offset_data(void *dest, size_t dest_len,
return copy_len;
}

static unsigned long h_get_24x7_catalog_page(char page[static 4096],
u32 version, u32 index)
static unsigned long h_get_24x7_catalog_page_(unsigned long phys_4096,
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,
virt_to_phys(page),
phys_4096,
version,
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,
struct bin_attribute *bin_attr, char *buf,
loff_t offset, size_t count)
Expand Down

0 comments on commit 78d1316

Please sign in to comment.