Re: [PATCH] mmc: use empty initializer list to zero-clear structures

2017-01-10 Thread Ulf Hansson
On 19 December 2016 at 12:51, Masahiro Yamada wrote: > In the MMC subsystem, we see such initializers that only clears the > first member explicitly. > > For example, > > struct mmc_request mrq = {NULL}; > > sets the first member (.sbc) to NULL explicitly.

Re: [PATCH] mmc: use empty initializer list to zero-clear structures

2017-01-10 Thread Ulf Hansson
On 19 December 2016 at 12:51, Masahiro Yamada wrote: > In the MMC subsystem, we see such initializers that only clears the > first member explicitly. > > For example, > > struct mmc_request mrq = {NULL}; > > sets the first member (.sbc) to NULL explicitly. However, this is > an unstable form

Re: [PATCH] mmc: use empty initializer list to zero-clear structures

2016-12-30 Thread Linus Walleij
On Mon, Dec 19, 2016 at 12:51 PM, Masahiro Yamada wrote: > In the MMC subsystem, we see such initializers that only clears the > first member explicitly. > > For example, > > struct mmc_request mrq = {NULL}; > > sets the first member (.sbc) to NULL explicitly.

Re: [PATCH] mmc: use empty initializer list to zero-clear structures

2016-12-30 Thread Linus Walleij
On Mon, Dec 19, 2016 at 12:51 PM, Masahiro Yamada wrote: > In the MMC subsystem, we see such initializers that only clears the > first member explicitly. > > For example, > > struct mmc_request mrq = {NULL}; > > sets the first member (.sbc) to NULL explicitly. However, this is > an unstable

[PATCH] mmc: use empty initializer list to zero-clear structures

2016-12-19 Thread Masahiro Yamada
In the MMC subsystem, we see such initializers that only clears the first member explicitly. For example, struct mmc_request mrq = {NULL}; sets the first member (.sbc) to NULL explicitly. However, this is an unstable form because we may insert a non-pointer member at the top of the struct

[PATCH] mmc: use empty initializer list to zero-clear structures

2016-12-19 Thread Masahiro Yamada
In the MMC subsystem, we see such initializers that only clears the first member explicitly. For example, struct mmc_request mrq = {NULL}; sets the first member (.sbc) to NULL explicitly. However, this is an unstable form because we may insert a non-pointer member at the top of the struct