Re: [PATCH] of: unittest: move misplaced function declaration

2018-03-18 Thread Rob Herring
On Tue, Mar 13, 2018 at 02:15:42PM +0100, Arnd Bergmann wrote: > The overlay_data_apply() declaration is outside of the #ifdef that contains > both the user and the definition, causing a compile-time warning in > some configurations: > > drivers/of/unittest.c:48:19: error: 'overlay_data_apply' dec

[PATCH] of: unittest: move misplaced function declaration

2018-03-13 Thread Arnd Bergmann
The overlay_data_apply() declaration is outside of the #ifdef that contains both the user and the definition, causing a compile-time warning in some configurations: drivers/of/unittest.c:48:19: error: 'overlay_data_apply' declared 'static' but never defined [-Werror=unused-function] static int _