On Mon, Apr 28, 2025 at 05:10:22PM -0600, Uday Shankar wrote: > 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 <ushan...@purestorage.com>
kernel selftest is supposed to run under the kernel tree without installing headers system wide, nice! Reviewed-by: Ming Lei <ming....@redhat.com> Thanks, Ming