From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380577; b=tu/PHwpO1lmJHagWAvHaqzBrp77Iu1gKcbRYpsotx9/tJzPMSNP74aDiNNI5KfWWJuzc SAPd0n3tBfBFqSrPBrtRL0Pv1klUSTUn3o/6IMchroV9OnbRNVu20nYHHO8FwTs0+16oR bTTrnuIO6EA8pvzLi7tJxGyfVvzISSt9VWScRRRnlQJXd8yHQ/pOQfvoqPLxTXfO0zdRT YJH2Sk6QnudjRxm/zvs7dnRDVZJHnJmaV6gH4aa14qjYW0l71nmSkkSZoz6XcwuwV5Fo1 N20IDEqNQwsVVl9q196UqA4xW3rfLL8XCIUqGZfAD8BHow9eR2qBk1zyIYCFO76N6Pw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380577; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=fBYwxB5DlJ8jo9tVLpBVyM+Ky1o6q70ZXbAlGQbdP1A=; b=4FfXGSF0a01Q0qy3EmfbmSmM8Z4oibCb48EfvG+IJgfiurOC8hic5owvIXzYozMxmoVK hQEzxrZjRFPAjRgrejwLzZGxwa2bK798Czzydq9yix+WG/+NgQR+G7/Zm6roU2OFyjFLx Redsfl+4gnYvaBqZ9OaFh2OCfOSnV+fRIT941FsLcuSqSJ36X+ZpkoH0yEGoybSHdvr4p iZ8z2jNFlM6st1dWZLI497QPFvYkonYD/toxwt1j6CuU3dJsvdB07o1uyl1rSPOciMI7k 5VlglA3EVWajvRqNIKUYzJY3NMfnhKgh/BrrLgWqKcASTHzFU7zQYMHFjhnqMZK6EXA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=D2MtosQ4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B4E8606A684; Fri, 4 Dec 2026 10:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=D2MtosQ4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6BA91F00933; Fri, 4 Dec 2026 10:36:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380577; bh=fBYwxB5DlJ8jo9tVLpBVyM+Ky1o6q70ZXbAlGQbdP1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=D2MtosQ4+1qA2CQYXotvdLavFG3NVdH9Kjz4E9lLtBgrqq2rT7S+FVUy+WucuZCG3 K308rKly6s1LsjV3nbAVZVf7Jq6/rNY909P1vCuy0kXVm5WytxeXs5u1gTtvFozrYd TTJHiKW47aduj5990qrdCeLUE0iF2QU6F6AyyY3s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sasha Levin , Ming Lei , Jens Axboe Subject: [PATCH 7.3 334/742] selftests/ublk: use the configured kernel UAPI headers Date: Fri, 4 Dec 2026 19:03:18 +0900 Message-ID: <20261204100643.921458553@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sasha Levin [ Upstream commit d9667b1a6a3387ef934667b9a2e6c099eee0e4f1 ] 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 Reviewed-by: Ming Lei Link: https://patch.msgid.link/20261126231706.1303486-1-sashal@kernel.org Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- tools/testing/selftests/ublk/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ublk/Makefile b/tools/testing/selftests/ublk/Makefile index 1a50d4695c9fa..8fc3291eaed94 100644 --- a/tools/testing/selftests/ublk/Makefile +++ b/tools/testing/selftests/ublk/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -O3 -Wl,-no-as-needed -Wall -I $(top_srcdir)/usr/include +CFLAGS += -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) CFLAGS += -D_FILE_OFFSET_BITS=64 ifneq ($(WERROR),0) CFLAGS += -Werror @@ -86,6 +86,7 @@ include ../lib.mk $(OUTPUT)/kublk: $(filter-out $(STANDALONE_UTILS),$(wildcard *.c)) $(OUTPUT)/ublk_cancel_ready: ublk_cancel_ready.c ctrl.c +$(TEST_GEN_PROGS_EXTENDED): | headers check: shellcheck -x -f gcc *.sh -- 2.53.0