Skip to content

Commit 5cccec7

Browse files
committed
selftests: harness: Remove inline qualifier for wrappers
The pointers to the wrappers are stored in function pointers, preventing them from actually being inlined. Remove the inline qualifier, aligning these wrappers with the other functions defined through macros. Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Acked-by: Shuah Khan <[email protected]> Link: https://lore.kernel.org/r/20250505-nolibc-kselftest-harness-v4-5-ee4dd5257135@linutronix.de Signed-off-by: Thomas Weißschuh <[email protected]>
1 parent c2bcc8e commit 5cccec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/kselftest_harness.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172

173173
#define __TEST_IMPL(test_name, _signal) \
174174
static void test_name(struct __test_metadata *_metadata); \
175-
static inline void wrapper_##test_name( \
175+
static void wrapper_##test_name( \
176176
struct __test_metadata *_metadata, \
177177
struct __fixture_variant_metadata __attribute__((unused)) *variant) \
178178
{ \
@@ -401,7 +401,7 @@
401401
struct __test_metadata *_metadata, \
402402
FIXTURE_DATA(fixture_name) *self, \
403403
const FIXTURE_VARIANT(fixture_name) *variant); \
404-
static inline void wrapper_##fixture_name##_##test_name( \
404+
static void wrapper_##fixture_name##_##test_name( \
405405
struct __test_metadata *_metadata, \
406406
struct __fixture_variant_metadata *variant) \
407407
{ \

0 commit comments

Comments
 (0)