mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
s390/appldata: pass parameter list pointer to appldata_asm
In preparation for CONFIG_VMAP_STACK=y move the allocation of the struct appldata_parameter_list to the caller of appldata_asm(). Reviewed-by: Gerald Schaefer <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
346e485d42
commit
f689789a28
3 changed files with 16 additions and 11 deletions
|
|
@ -58,6 +58,7 @@ struct mon_private {
|
|||
|
||||
static int monwrite_diag(struct monwrite_hdr *myhdr, char *buffer, int fcn)
|
||||
{
|
||||
struct appldata_parameter_list parm_list;
|
||||
struct appldata_product_id id;
|
||||
int rc;
|
||||
|
||||
|
|
@ -67,7 +68,8 @@ static int monwrite_diag(struct monwrite_hdr *myhdr, char *buffer, int fcn)
|
|||
id.version_nr = myhdr->version;
|
||||
id.release_nr = myhdr->release;
|
||||
id.mod_lvl = myhdr->mod_level;
|
||||
rc = appldata_asm(&id, fcn, (void *) buffer, myhdr->datalen);
|
||||
rc = appldata_asm(&parm_list, &id, fcn,
|
||||
(void *) buffer, myhdr->datalen);
|
||||
if (rc <= 0)
|
||||
return rc;
|
||||
pr_err("Writing monitor data failed with rc=%i\n", rc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue