Commit 78d13166b189ff1741327d748a7f8d73e65d70bd

Authored by Cody P Schafer
Committed by Benjamin Herrenschmidt
1 parent 58a685c2d8

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

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Showing 1 changed file with 16 additions and 4 deletions Side-by-side Diff

arch/powerpc/perf/hv-24x7.c
... ... @@ -155,14 +155,26 @@
155 155 return copy_len;
156 156 }
157 157  
158   -static unsigned long h_get_24x7_catalog_page(char page[static 4096],
159   - u32 version, u32 index)
  158 +static unsigned long h_get_24x7_catalog_page_(unsigned long phys_4096,
  159 + unsigned long version,
  160 + unsigned long index)
160 161 {
161   - WARN_ON(!IS_ALIGNED((unsigned long)page, 4096));
  162 + pr_devel("h_get_24x7_catalog_page(0x%lx, %lu, %lu)",
  163 + phys_4096,
  164 + version,
  165 + index);
  166 + WARN_ON(!IS_ALIGNED(phys_4096, 4096));
162 167 return plpar_hcall_norets(H_GET_24X7_CATALOG_PAGE,
163   - virt_to_phys(page),
  168 + phys_4096,
164 169 version,
165 170 index);
  171 +}
  172 +
  173 +static unsigned long h_get_24x7_catalog_page(char page[static 4096],
  174 + u32 version, u32 index)
  175 +{
  176 + return h_get_24x7_catalog_page_(virt_to_phys(page),
  177 + version, index);
166 178 }
167 179  
168 180 static ssize_t catalog_read(struct file *filp, struct kobject *kobj,