]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: ublk: kublk: fix include path
authorUday Shankar <ushankar@purestorage.com>
Tue, 29 Apr 2025 22:41:05 +0000 (16:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 May 2025 22:54:52 +0000 (16:54 -0600)
commite371b9d3368ccb6b55fe9747be12c3107b2817b3
tree1100ee154e8d3e9b626588c41733020dd1d12a35
parent254827a32118ddb171680dc2143c777cc68f2cbc
selftests: ublk: kublk: fix include path

Building kublk currently fails (with a "could not find linux/ublk_cmd.h"
error message) if kernel headers are not installed in a system-global
location (i.e. somewhere in the compiler's default include search path).
This failure is unnecessary, as make kselftest installs kernel headers
in the build tree - kublk's build just isn't looking for them properly.
There is an include path in kublk's CFLAGS which is probably intended to
find the kernel headers installed in the build tree; fix it so that it
can actually find them.

This introduces some macro redefinition issues between glibc-provided
headers and kernel headers; fix those by eliminating one include in
kublk.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250429-ublk_selftests-v2-3-e970b6d9e4f4@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/kublk.h