@@ -25,11 +25,6 @@ static const char array_of_10[] = "this is 10";
25
25
static const char * ptr_of_11 = "this is 11!" ;
26
26
static char array_unknown [] = "compiler thinks I might change" ;
27
27
28
- /* Handle being built without CONFIG_FORTIFY_SOURCE */
29
- #ifndef __compiletime_strlen
30
- # define __compiletime_strlen __builtin_strlen
31
- #endif
32
-
33
28
static void known_sizes_test (struct kunit * test )
34
29
{
35
30
KUNIT_EXPECT_EQ (test , __compiletime_strlen ("88888888" ), 8 );
@@ -312,14 +307,6 @@ DEFINE_ALLOC_SIZE_TEST_PAIR(kvmalloc)
312
307
} while (0 )
313
308
DEFINE_ALLOC_SIZE_TEST_PAIR (devm_kmalloc )
314
309
315
- static int fortify_test_init (struct kunit * test )
316
- {
317
- if (!IS_ENABLED (CONFIG_FORTIFY_SOURCE ))
318
- kunit_skip (test , "Not built with CONFIG_FORTIFY_SOURCE=y" );
319
-
320
- return 0 ;
321
- }
322
-
323
310
static struct kunit_case fortify_test_cases [] = {
324
311
KUNIT_CASE (known_sizes_test ),
325
312
KUNIT_CASE (control_flow_split_test ),
@@ -336,7 +323,6 @@ static struct kunit_case fortify_test_cases[] = {
336
323
337
324
static struct kunit_suite fortify_test_suite = {
338
325
.name = "fortify" ,
339
- .init = fortify_test_init ,
340
326
.test_cases = fortify_test_cases ,
341
327
};
342
328
0 commit comments