RE: [RFC PATCH 2/3] powerpc/pseries: Define & use a type for the plpar_hcall() retvals
From: David Laight <hidden> Date: 2016-10-19 15:06:06
From: Balbir Singh
Sent: 19 October 2016 15:00
...
Here is an example
=20
- *slot =3D retbuf[0];
+ *slot =3D retvals.v[0];
=20
Could we hide retvals.v[0] under a macro like
=20
*slot =3D hcalls_ret_val(retvals, 0);
Ugg..
Since we could end up with similar issues if
someone dereferenced retvals.v[4]