mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 23:51:02 +02:00
sparse doesn't know __builtin_dynamic_object_size() and so the two size
checks in the fdtable test fall apart on every config where the compiler
has __counted_by_ptr:
fs/tests/fdtable_kunit.c:25:9: sparse: undefined identifier '__builtin_dynamic_object_size'
fs/tests/fdtable_kunit.c:25:9: sparse: incompatible types for operation (==):
Use __struct_size() instead. Every compiler that has __counted_by_ptr also
has __builtin_dynamic_object_size() so it expands to the same builtin and
the test checks the same thing. sparse lacks the builtin and gets the
__builtin_object_size() fallback which it does understand.
Fixes:
|
||
|---|---|---|
| .. | ||
| .kunitconfig | ||
| binfmt_elf_kunit.c | ||
| exec_kunit.c | ||
| fdtable_kunit.c | ||