diff options
author | Gerald Schaefer <geraldsc@de.ibm.com> | 2006-09-28 10:55:23 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-28 10:55:23 -0400 |
commit | 925afbd6cbc0d5154710f00dc186518f396e04ec (patch) | |
tree | 98e3594f8a2a0d6b26eb3e00ac5155bd91de6e63 /arch/s390/appldata/appldata_base.c | |
parent | bac9c66cd25e134077b284fc59bee6e5a8475d33 (diff) |
[S390] Avoid static struct initializations in appldata.
Don't use static initialization for struct members containing
variables because gcc would generate more code and use double space
on stack.
Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/appldata/appldata_base.c')
-rw-r--r-- | arch/s390/appldata/appldata_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index b69ed742f981..9a8f6ff21652 100644 --- a/arch/s390/appldata/appldata_base.c +++ b/arch/s390/appldata/appldata_base.c | |||
@@ -157,12 +157,12 @@ int appldata_diag(char record_nr, u16 function, unsigned long buffer, | |||
157 | .prod_nr = {0xD3, 0xC9, 0xD5, 0xE4, | 157 | .prod_nr = {0xD3, 0xC9, 0xD5, 0xE4, |
158 | 0xE7, 0xD2, 0xD9}, /* "LINUXKR" */ | 158 | 0xE7, 0xD2, 0xD9}, /* "LINUXKR" */ |
159 | .prod_fn = 0xD5D3, /* "NL" */ | 159 | .prod_fn = 0xD5D3, /* "NL" */ |
160 | .record_nr = record_nr, | ||
161 | .version_nr = 0xF2F6, /* "26" */ | 160 | .version_nr = 0xF2F6, /* "26" */ |
162 | .release_nr = 0xF0F1, /* "01" */ | 161 | .release_nr = 0xF0F1, /* "01" */ |
163 | .mod_lvl = (mod_lvl[0]) << 8 | mod_lvl[1], | ||
164 | }; | 162 | }; |
165 | 163 | ||
164 | id.record_nr = record_nr; | ||
165 | id.mod_lvl = (mod_lvl[0]) << 8 | mod_lvl[1]; | ||
166 | return appldata_asm(&id, function, (void *) buffer, length); | 166 | return appldata_asm(&id, function, (void *) buffer, length); |
167 | } | 167 | } |
168 | /************************ timer, work, DIAG <END> ****************************/ | 168 | /************************ timer, work, DIAG <END> ****************************/ |