[S390] cio: kernel stack overflow.
Use different kind of assignment to make sure gcc doesn't create code that creates temp variables on the stack, assigns values to it and copies the content of the whole temp variable to the destination. This reduces stack usage of e.g. ccwgroup_driver_register from 976 to 48 bytes instead. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:

committed by
Martin Schwidefsky

parent
8f61701bdf
commit
292888c81e
@@ -1391,10 +1391,8 @@ new_channel_path(int chpid)
|
||||
/* fill in status, etc. */
|
||||
chp->id = chpid;
|
||||
chp->state = 1;
|
||||
chp->dev = (struct device) {
|
||||
.parent = &css[0]->device,
|
||||
.release = chp_release,
|
||||
};
|
||||
chp->dev.parent = &css[0]->device;
|
||||
chp->dev.release = chp_release;
|
||||
snprintf(chp->dev.bus_id, BUS_ID_SIZE, "chp0.%x", chpid);
|
||||
|
||||
/* Obtain channel path description and fill it in. */
|
||||
|
Reference in New Issue
Block a user