Re: [PATCH v2] net: break out nested function

2020-05-20 Thread Daniel Kiper
On Tue, May 19, 2020 at 05:18:11PM +0100, Leif Lindholm wrote: > On Tue, May 19, 2020 at 17:53:03 +0200, Javier Martinez Canillas wrote: > > Nested functions are not supported in C, but are permitted as an extension > > in the GNU C dialect. Commit cb2f15c5448 ("normal/main: Search for specific >

Re: [PATCH v2] net: break out nested function

2020-05-19 Thread Leif Lindholm
On Tue, May 19, 2020 at 17:53:03 +0200, Javier Martinez Canillas wrote: > Nested functions are not supported in C, but are permitted as an extension > in the GNU C dialect. Commit cb2f15c5448 ("normal/main: Search for specific > config files for netboot") added a nested function which caused the

[PATCH v2] net: break out nested function

2020-05-19 Thread Javier Martinez Canillas
Nested functions are not supported in C, but are permitted as an extension in the GNU C dialect. Commit cb2f15c5448 ("normal/main: Search for specific config files for netboot") added a nested function which caused the build to break when compiling with clang. Break that out into a static helper