Re: [PATCH 05/11] selftests: Add additional kernel functions to tools/include/

David Matlack
2026-05-04T21:48:48Z

On 2026-04-30 09:08 PM, Jason Gunthorpe wrote:
> These are needed by the VFIO mlx5 selftest in the following patches,
> which includes some headers from mlx5 and also needs a few more
> MMIO-related features.
>
> - DECLARE_FLEX_ARRAY in new tools/include/linux/stddef.h (wraps
> existing __DECLARE_FLEX_ARRAY from uapi/linux/stddef.h)

Is this needed? I don't see it used anywhere.

$ git grep DECLARE_FLEX_ARRAY tools/testing/selftests/vfio