Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/ehea: use consistant type

ehea_plpar_hcall9() takes an "unsigned long" array to return its results,
so change the arrays we pass to it to match. This is currently only
64 bit code, so the transformation is actually a noop, but because
ehea_plpar_hcall9() copies the values of registers into the array,
if this was ported to a 32 bit hypervisor interface "unsigned long"
would probably still be the correct type.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Rothwell and committed by
David S. Miller
8be35bde 61294e2e

+8 -8
+8 -8
drivers/net/ehea/ehea_phyp.c
··· 214 214 u64 *qp_handle, struct h_epas *h_epas) 215 215 { 216 216 u64 hret; 217 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 217 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 218 218 219 219 u64 allocate_controls = 220 220 EHEA_BMASK_SET(H_ALL_RES_QP_EQPO, init_attr->low_lat_rq1 ? 1 : 0) ··· 312 312 u64 *cq_handle, struct h_epas *epas) 313 313 { 314 314 u64 hret; 315 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 315 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 316 316 317 317 hret = ehea_plpar_hcall9(H_ALLOC_HEA_RESOURCE, 318 318 outs, ··· 374 374 struct ehea_eq_attr *eq_attr, u64 *eq_handle) 375 375 { 376 376 u64 hret, allocate_controls; 377 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 377 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 378 378 379 379 /* resource type */ 380 380 allocate_controls = ··· 407 407 u16 *out_swr, u16 *out_rwr) 408 408 { 409 409 u64 hret; 410 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 410 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 411 411 412 412 hret = ehea_plpar_hcall9(H_MODIFY_HEA_QP, 413 413 outs, ··· 449 449 struct ehea_mr *mr) 450 450 { 451 451 u64 hret; 452 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 452 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 453 453 454 454 hret = ehea_plpar_hcall9(H_REGISTER_SMR, 455 455 outs, ··· 468 468 469 469 u64 ehea_h_disable_and_get_hea(const u64 adapter_handle, const u64 qp_handle) 470 470 { 471 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 471 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 472 472 473 473 return ehea_plpar_hcall9(H_DISABLE_AND_GET_HEA, 474 474 outs, ··· 493 493 const u32 pd, u64 *mr_handle, u32 *lkey) 494 494 { 495 495 u64 hret; 496 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 496 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 497 497 498 498 hret = ehea_plpar_hcall9(H_ALLOC_HEA_RESOURCE, 499 499 outs, ··· 564 564 const u8 cb_cat, const u64 select_mask, 565 565 void *cb_addr) 566 566 { 567 - u64 outs[PLPAR_HCALL9_BUFSIZE]; 567 + unsigned long outs[PLPAR_HCALL9_BUFSIZE]; 568 568 u64 port_info; 569 569 u64 arr_index = 0; 570 570 u64 cb_logaddr = virt_to_abs(cb_addr);