Re: [PATCH] kunit: fix -Wunused-function warning for __kunit_fail_current_test

2021-04-06 Thread Shuah Khan
On 4/6/21 2:50 PM, Brendan Higgins wrote: On Tue, Apr 6, 2021 at 10:29 AM Daniel Latypov wrote: When CONFIG_KUNIT is not enabled, __kunit_fail_current_test() an empty static function. But GCC complains about unused static functions, *unless* they're static inline. So add inline to make GCC

Re: [PATCH] kunit: fix -Wunused-function warning for __kunit_fail_current_test

2021-04-06 Thread Brendan Higgins
On Tue, Apr 6, 2021 at 10:29 AM Daniel Latypov wrote: > > When CONFIG_KUNIT is not enabled, __kunit_fail_current_test() an empty > static function. > > But GCC complains about unused static functions, *unless* they're static > inline. > So add inline to make GCC happy. > > Signed-off-by: Daniel

[PATCH] kunit: fix -Wunused-function warning for __kunit_fail_current_test

2021-04-06 Thread Daniel Latypov
When CONFIG_KUNIT is not enabled, __kunit_fail_current_test() an empty static function. But GCC complains about unused static functions, *unless* they're static inline. So add inline to make GCC happy. Signed-off-by: Daniel Latypov Fixes: 359a376081d4 ("kunit: support failure from dynamic