Re: [PATCH] um: remove uses of variable length arrays

2019-03-14 Thread Anton Ivanov
On 14/03/2019 13:33, Bartosz Golaszewski wrote: śr., 13 mar 2019 o 10:45 Anton Ivanov napisał(a): On 12/03/2019 13:30, Bartosz Golaszewski wrote: From: Bartosz Golaszewski While the affected code is run in user-mode, the build still warns about it. Convert all uses of VLA to dynamic alloca

Re: [PATCH] um: remove uses of variable length arrays

2019-03-14 Thread Bartosz Golaszewski
śr., 13 mar 2019 o 10:45 Anton Ivanov napisał(a): > > On 12/03/2019 13:30, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > While the affected code is run in user-mode, the build still warns > > about it. Convert all uses of VLA to dynamic allocations. > > > > Signed-off-by: Barto

Re: [PATCH] um: remove uses of variable length arrays

2019-03-13 Thread Anton Ivanov
On 12/03/2019 13:30, Bartosz Golaszewski wrote: From: Bartosz Golaszewski While the affected code is run in user-mode, the build still warns about it. Convert all uses of VLA to dynamic allocations. Signed-off-by: Bartosz Golaszewski --- arch/um/os-Linux/umid.c | 36

Re: [PATCH] um: remove uses of variable length arrays

2019-03-13 Thread Geert Uytterhoeven
Hi Bartosz, On Wed, Mar 13, 2019 at 10:50 AM Bartosz Golaszewski wrote: > śr., 13 mar 2019 o 10:45 Anton Ivanov > napisał(a): > > PID can be more than 5 digits nowdays. > > Do we have a macro in the kernel that yields the minimum size of an > array to fit a number? I can't find it. I vagely reme

Re: [PATCH] um: remove uses of variable length arrays

2019-03-13 Thread Bartosz Golaszewski
śr., 13 mar 2019 o 10:45 Anton Ivanov napisał(a): > > On 12/03/2019 13:30, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > While the affected code is run in user-mode, the build still warns > > about it. Convert all uses of VLA to dynamic allocations. > > > > Signed-off-by: Barto

[PATCH] um: remove uses of variable length arrays

2019-03-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski While the affected code is run in user-mode, the build still warns about it. Convert all uses of VLA to dynamic allocations. Signed-off-by: Bartosz Golaszewski --- arch/um/os-Linux/umid.c | 36 +++- 1 file changed, 27 insertions(+), 9 d