File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ static void __init test_bitfields_variables(struct kunit *context)
125
125
CHECK (u64 , 0x0000001f8000000ull );
126
126
}
127
127
128
-
128
+ #ifdef TEST_BITFIELD_COMPILE
129
129
static void __init test_bitfields_compile (struct kunit * context )
130
130
{
131
131
/* these should fail compilation */
@@ -135,13 +135,11 @@ static void __init test_bitfields_compile(struct kunit *context)
135
135
/* this should at least give a warning */
136
136
u16_encode_bits (0 , 0x60000 );
137
137
}
138
+ #endif
138
139
139
140
static struct kunit_case __refdata bitfields_test_cases [] = {
140
141
KUNIT_CASE (test_bitfields_constants ),
141
142
KUNIT_CASE (test_bitfields_variables ),
142
- #ifdef TEST_BITFIELD_COMPILE
143
- KUNIT_CASE (test_bitfields_compile ),
144
- #endif
145
143
{}
146
144
};
147
145
You can’t perform that action at this time.
0 commit comments