Re: [PATCH][next] tty: Avoid the use of one-element arrays

2020-07-23 Thread Gustavo A. R. Silva
On 7/23/20 03:32, Greg Kroah-Hartman wrote: > On Thu, Jul 23, 2020 at 08:30:47AM +0200, Jiri Slaby wrote: >> On 22. 07. 20, 20:24, Gustavo A. R. Silva wrote: >>> >>> >>> On 7/17/20 01:10, Jiri Slaby wrote: On 16. 07. 20, 20:08, Gustavo A. R. Silva wrote: > One-element arrays are being d

Re: [PATCH][next] tty: Avoid the use of one-element arrays

2020-07-23 Thread Greg Kroah-Hartman
On Thu, Jul 23, 2020 at 08:30:47AM +0200, Jiri Slaby wrote: > On 22. 07. 20, 20:24, Gustavo A. R. Silva wrote: > > > > > > On 7/17/20 01:10, Jiri Slaby wrote: > >> On 16. 07. 20, 20:08, Gustavo A. R. Silva wrote: > >>> One-element arrays are being deprecated[1]. Replace the one-element arrays > >

Re: [PATCH][next] tty: Avoid the use of one-element arrays

2020-07-22 Thread Jiri Slaby
On 22. 07. 20, 20:24, Gustavo A. R. Silva wrote: > > > On 7/17/20 01:10, Jiri Slaby wrote: >> On 16. 07. 20, 20:08, Gustavo A. R. Silva wrote: >>> One-element arrays are being deprecated[1]. Replace the one-element arrays >>> with simple value types 'char reserved_char' and 'compat_int_t reserved

Re: [PATCH][next] tty: Avoid the use of one-element arrays

2020-07-22 Thread Gustavo A. R. Silva
On 7/17/20 01:10, Jiri Slaby wrote: > On 16. 07. 20, 20:08, Gustavo A. R. Silva wrote: >> One-element arrays are being deprecated[1]. Replace the one-element arrays >> with simple value types 'char reserved_char' and 'compat_int_t reserved'[2], >> once it seems these are just placeholders for al

Re: [PATCH][next] tty: Avoid the use of one-element arrays

2020-07-16 Thread Jiri Slaby
On 16. 07. 20, 20:08, Gustavo A. R. Silva wrote: > One-element arrays are being deprecated[1]. Replace the one-element arrays > with simple value types 'char reserved_char' and 'compat_int_t reserved'[2], > once it seems these are just placeholders for alignment. > > Also, while there, use the pre

[PATCH][next] tty: Avoid the use of one-element arrays

2020-07-16 Thread Gustavo A. R. Silva
One-element arrays are being deprecated[1]. Replace the one-element arrays with simple value types 'char reserved_char' and 'compat_int_t reserved'[2], once it seems these are just placeholders for alignment. Also, while there, use the preferred form for passing a size of a struct. The alternative