From nobody Tue Feb 10 08:26:42 2026 Received: from mail-io1-f99.google.com (mail-io1-f99.google.com [209.85.166.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B8A12135B2 for ; Mon, 28 Apr 2025 23:10:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745881845; cv=none; b=q6NJEbUYoCsN2xEmkyomZvmlS6ZPUrorK1GTFfPSZh7hcoWzGgugWNP2S3IsHvoEGFiWL7pR29WZpdKVrlierwONnrVCNIKmIBYNc+R/3zATmrA+4GRv8ikP/jWr/OdTMqy0Ht4bDs6o9ItdraW/u5zqF3wGfVr1D8263xnlaHQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745881845; c=relaxed/simple; bh=zYkzn89KbbQhJnqGGqmLfnKEczTOQpEO0Hl9akuF+ns=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TRqVjEHGqjqVOiLqK3qjFHozYpQk20CiW0zEJHltJi+i9IEiKb6WtWVH34Ie3DkGEw1sUt3LqxRF7Qtk8OKCiWzJ4aYYjknUlK6vOAMemff2wUGozFCESC21eIKQ+6Ss9P3t5ombqI2RfNnqXQ7i0WOQ5nOClk5QLizS5gAGMp4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=KAFDD7Xt; arc=none smtp.client-ip=209.85.166.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="KAFDD7Xt" Received: by mail-io1-f99.google.com with SMTP id ca18e2360f4ac-86142446f3fso157927939f.2 for ; Mon, 28 Apr 2025 16:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1745881842; x=1746486642; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mLVSmwzlmchZcREq1TNVrtwTyqSxYv1rpw5fe1B5uZ4=; b=KAFDD7Xt5ImCRMzR6PGK8qfzJeEMF2QIY8VCAR1qa2KitrfFrmzCdC7+HF9CfpPi3n LXMjsdqfoqkvTvaYx9d558kXs+s7MUEJvkgrW6lcgTS9oVCsEsmPongOnPYKgyKmroUG 7APnGvOy4pF5YkXiRL6i2rzL52G9AH0M2GgEqvktoR7UonXDTaUOi8U7OZ860BB77DRe VWMEKmD7xTCdRVvEBIAgMuPBBnnyB8Z1sLgUzMJAbWE0cH4Rot2Ia+gXEAISemIidij8 kzJBElacK0bWW13wJklffd6LfSpK3lkhQJLwL0dOD0EAqMVyMRXusel8PCCNId5DzdXx HHbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745881842; x=1746486642; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mLVSmwzlmchZcREq1TNVrtwTyqSxYv1rpw5fe1B5uZ4=; b=IHyNO5t6nU6GovyOzswYjITJ6gs2mbW5PVm9C5nfm7EY1xP4AuQezPydUQ8Vu8wUOZ 4UzEVSSRg+4Mkg+5iSA6ZhrJEqU9Gjg8XTvuTGrPp0xjRwGRnXNry7H4eP3bvXZlaF+M 6myXdHusjnuu+8R71kHbIjSV9i6Cn4ZS83VRDPVtigAIa0CVLlCAArQA+WdmFXeT1oip Zd1pMdHS85B6sVTADDb17+6ElNU+n5E3+Ie5MtMZRK6ie1UKNTXJPU+gMoOwyaGORii5 rkLzhfPeqvCSoP1aSUf6qgX+t8181Dkll0PqznrnUX86uTWV5pQmbzTOK0kaufvW8djr eE3g== X-Forwarded-Encrypted: i=1; AJvYcCWSkKnY0hZ80iSFt0o5Tv1nwjPrz2ef3z551t1LBKSu6nw4nvgY0SNelYKCyVbxdMYHRPDFEzl1LwOoG+Y=@vger.kernel.org X-Gm-Message-State: AOJu0YzZRE4Tq8sXhSEkWUBxELT7ALgc5miaNJa5P4/LhMCHxN7yHUVM Ln+DbCsD9E4UbMeKPMV2u9QqIImq9V5XVxTG7syMM8aLwzouGcbPFfiiicYehV/hCpkyXYNj8i8 ZDjsErpH9W6XGVjDROEnuVwlRHg/RjEXq X-Gm-Gg: ASbGnctCYAKoLA8PkroHQ/6ilQ7QYeY/Y/HMyT6/ixaySk45gKrAjR63XaYBMAZ+dnF 45exfU/u9WPIBk+dzCfhuBzBfdeDiJ/4XRW7ddfI3TmIcsV/3BD01HD5l51JsvCTlbw10QUH0Zu 1UiGUow074v7mfK+52spBldYkrvpePdQn9ZqtP4g4bRw654mFQUsF4JatNRBr1GgmBdM9ZRHKd+ 3gkQV1AULNoxBHMtDrGCyY/kBpoauQdYiO4Nj42/kbSKXbCcRxoFqos9Ul/t6FgrFyouu69vulA c4Ewn4I5IHiYHFpkfRhob/5TJn7gIIGvF+gTD+EPmmvBhQ== X-Google-Smtp-Source: AGHT+IHTB/M1Wt//8i1xKmZoN1r7dW8BT4GGJKEo8aSzjqlVaNRWtx208jyBoTwQ70qkd+4ZLvbruF0uUhyE X-Received: by 2002:a05:6602:720d:b0:85b:41cc:f709 with SMTP id ca18e2360f4ac-864887dc55dmr225565639f.14.1745881842491; Mon, 28 Apr 2025 16:10:42 -0700 (PDT) Received: from c7-smtp-2023.dev.purestorage.com ([208.88.159.129]) by smtp-relay.gmail.com with ESMTPS id ca18e2360f4ac-8648bf866ebsm779239f.17.2025.04.28.16.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Apr 2025 16:10:42 -0700 (PDT) X-Relaying-Domain: purestorage.com Received: from dev-ushankar.dev.purestorage.com (dev-ushankar.dev.purestorage.com [10.7.70.36]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id 466CD34175E; Mon, 28 Apr 2025 17:10:41 -0600 (MDT) Received: by dev-ushankar.dev.purestorage.com (Postfix, from userid 1557716368) id 42314E40B9B; Mon, 28 Apr 2025 17:10:41 -0600 (MDT) From: Uday Shankar Date: Mon, 28 Apr 2025 17:10:22 -0600 Subject: [PATCH 3/3] selftests: ublk: kublk: fix include path Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250428-ublk_selftests-v1-3-5795f7b00cda@purestorage.com> References: <20250428-ublk_selftests-v1-0-5795f7b00cda@purestorage.com> In-Reply-To: <20250428-ublk_selftests-v1-0-5795f7b00cda@purestorage.com> To: Ming Lei , Shuah Khan Cc: linux-block@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Uday Shankar X-Mailer: b4 0.14.2 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 Reviewed-by: Caleb Sander Mateos Reviewed-by: Ming Lei --- tools/testing/selftests/ublk/Makefile | 2 +- tools/testing/selftests/ublk/kublk.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/ublk/Makefile b/tools/testing/selftest= s/ublk/Makefile index 86474cfe8d03b2df3f8c9bc1a5902701a0f72f58..feca641635d706a856898f8e22a= 630f5f47361b6 100644 --- a/tools/testing/selftests/ublk/Makefile +++ b/tools/testing/selftests/ublk/Makefile @@ -2,7 +2,7 @@ =20 CONFIG =3D $(top_srcdir)/include/config/auto.conf WERROR =3D $(if $(shell grep CONFIG_WERROR=3Dy ${CONFIG}),-Werror,) -CFLAGS +=3D -O3 -Wl,-no-as-needed -Wall ${WERROR} -I $(top_srcdir) +CFLAGS +=3D -O3 -Wl,-no-as-needed -Wall ${WERROR} -I $(top_srcdir)/usr/inc= lude LDLIBS +=3D -lpthread -lm -luring =20 TEST_PROGS :=3D test_generic_01.sh diff --git a/tools/testing/selftests/ublk/kublk.h b/tools/testing/selftests= /ublk/kublk.h index 918db5cd633fc1041e1e0805142f00e7e4f28bf7..4b943e57a890e5f14fa11dd19d6= 7c4c8684c4417 100644 --- a/tools/testing/selftests/ublk/kublk.h +++ b/tools/testing/selftests/ublk/kublk.h @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include --=20 2.34.1