Home
last modified time | relevance | path

Searched refs:__compiletime_strlen (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/lib/
Dfortify_kunit.c52 #ifndef __compiletime_strlen
53 # define __compiletime_strlen __builtin_strlen macro
86 KUNIT_EXPECT_EQ(test, __compiletime_strlen("88888888"), 8); in fortify_test_known_sizes()
87 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_of_10), 10); in fortify_test_known_sizes()
88 KUNIT_EXPECT_EQ(test, __compiletime_strlen(ptr_of_11), 11); in fortify_test_known_sizes()
90 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX); in fortify_test_known_sizes()
92 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX); in fortify_test_known_sizes()
114 return __compiletime_strlen(str); in want_minus_one()
/linux-6.12.1/include/linux/
Dfortify-string.h63 #define __compiletime_strlen(p) \ macro
222 const size_t p_len = __compiletime_strlen(p); in strnlen()
297 len = __compiletime_strlen(q); in sized_strscpy()