Re: [PATCH v2] selftests/ublk: use the configured kernel UAPI headers
From: Ming Lei
Date: Tue Nov 03 2026 - 09:52:34 EST
On Tue, Nov 3, 2026 at 7:01 AM Sasha Levin <sashal@xxxxxxxxxx> 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.
>
> Fixes: e371b9d3368c ("selftests: ublk: kublk: fix include path")
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
> ---
> Changes since v1:
> - Rebased on v7.4-rc1. ublk_cancel_ready got its own rule next to
> kublk in the meantime, no other changes.
Reviewed-by: Ming Lei <tom.leiming@xxxxxxxxx>
Thanks,