On Wed, Nov 19 2025 at 11:00, Wake Liu wrote:
The `FIXTURE(args)` macro defines an empty `struct _test_data_args`, leading to `sizeof(struct _test_data_args)` evaluating to 0. This caused a build error due to a compiler warning on a `memset` call with a zero size argument.
Where is that memset? The only possibly related one I can find in the kselftest harness is:
if (sizeof(foo) > 0) memset(foo, 0, sizeof(foo));
If your compiler complains about that, then you need to fix your compiler and not perfectly correct code.
You again fail to provide enough information to understand what you are trying to "fix" including the compiler version and related built options.
Thanks,
tglx