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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/6/21 2:50 PM, Brendan Higgins wrote:
On Tue, Apr 6, 2021 at 10:29 AM Daniel Latypov <dlatypov@xxxxxxxxxx> 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 Latypov <dlatypov@xxxxxxxxxx>
Fixes: 359a376081d4 ("kunit: support failure from dynamic analysis tools")


Signed-off-by comes after Fixes. Also good to add Reported-by for Stephen acknowledging the reporter.

I will fix this up when I apply - for future reference.

Reviewed-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>


thanks,
-- Shuah



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux