Re: [PATCH v2] selftests/ublk: use the configured kernel UAPI headers
From: Jens Axboe
Date: Fri Nov 27 2026 - 21:47:26 EST
On Thu, 26 Nov 2026 18:17:06 -0500, Sasha Levin wrote:
> With generated headers in an output directory, the hardcoded source-tree
> include path falls through to distribution headers. New ublk flags and
> structure members, including UBLK_F_IO_DESC_SIZE, are then missing.
>
> Use KHDR_INCLUDES to consume the headers from the kernel under test, and
> add the headers target as an order-only prerequisite of the ublk
> programs, as nolibc-test does, so that a standalone build installs them
> first. Baseline builds fail on the missing definitions; GCC 14 and Clang
> 21 builds succeed with the output-directory headers and target liburing
> development files available.
>
> [...]
Applied, thanks!
[1/1] selftests/ublk: use the configured kernel UAPI headers
commit: d9667b1a6a3387ef934667b9a2e6c099eee0e4f1
Best regards,
--
Jens Axboe