Searched refs:__compiletime_strlen (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/lib/ |
H A D | fortify_kunit.c | 30 KUNIT_EXPECT_EQ(test, __compiletime_strlen("88888888"), 8); in known_sizes_test() 31 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_of_10), 10); in known_sizes_test() 32 KUNIT_EXPECT_EQ(test, __compiletime_strlen(ptr_of_11), 11); in known_sizes_test() 34 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX); in known_sizes_test() 36 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX); in known_sizes_test() 58 return __compiletime_strlen(str); in want_minus_one()
|
/openbmc/linux/include/linux/ |
H A D | fortify-string.h | 19 #define __compiletime_strlen(p) \ macro 182 const size_t p_len = __compiletime_strlen(p); in strnlen() 326 len = __compiletime_strlen(q); in strscpy()
|