From patchwork Sat Jun 8 21:16:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Xu X-Patchwork-Id: 13691112 X-Patchwork-Delegate: bpf@iogearbox.net Received: from wflow3-smtp.messagingengine.com (wflow3-smtp.messagingengine.com [64.147.123.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8B9B6F31D; Sat, 8 Jun 2024 21:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.138 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717881427; cv=none; b=sGXI/u9Hwbmn80wyOGpFsM7xbNV1KqpeTY4NCRdG+qEF7WiRFQbDdJl6XVI8DTrGcuNwnZXydeTby+jnTcQ3y7KOR6zohK+ngFhjcu/xUT9t8sDrvmKviXptx/Ncam0XD3EjgNqAxTe74GdF+Yx0JEhfeHNLu3JosNtJKOTwRkQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717881427; c=relaxed/simple; bh=TOFne6BN9+jp4V2XtWfmJB9qi/B/gw1rR+0HcAVMVvc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WnbZVct2Lf/7VRiGxrFyZzaFlyBBQIDR7j/X32Soxure5lCqj8ybApoDi4Y/MXzTpcwrp5si+YPcxLqXJ+4Kh7ALdy/LSVSJijZvQK7oyA1k4s631OJxM+qS4kEMYeIIRirh0GKVOq1u82ENhGjOoVG4yqNTSnFn/RNt4oC7gWM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz; spf=pass smtp.mailfrom=dxuuu.xyz; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b=Qt2ZFZco; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=EIN54Bk8; arc=none smtp.client-ip=64.147.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dxuuu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="Qt2ZFZco"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="EIN54Bk8" Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailflow.west.internal (Postfix) with ESMTP id D698C2CC0121; Sat, 8 Jun 2024 17:17:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 08 Jun 2024 17:17:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1717881423; x= 1717888623; bh=NBRZD+tUpDA7hRgb1FdxgpatpLh/bjjqfKZS5VAHywE=; b=Q t2ZFZcoieHlaIp6SXK2XqhL/KrkGCqMkN+MnDLQxXc5Q0JP+PwWcnhoBcCEt3BPw +0epaVdMuyZz7F5dr6V+eJX3yEbvTZPgcE3nVkTDM2floiJvBNqtrCvzOc1Ujsmu netPRox+O5cZK/yadVT4Dbp9vgg350PqYJK1oO00N2GPN2HrJgJbC5qnCVcuy1nE OQ8VduoHt+hAUmHiwiylfC/ZcSVTNqCz4CZxYhLzt9UidND3GwMX9ckjItWdoBcL 69JgLf13rhobypijpEmoqe5ozpNtWdRz99Tj8SfHNGZF+QEbszdqtnEWLJJgtSJS nf13Mrk+xh/x5pctEG6kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717881423; x= 1717888623; bh=NBRZD+tUpDA7hRgb1FdxgpatpLh/bjjqfKZS5VAHywE=; b=E IN54Bk8Is881T7yYbSg2jDeW4l1NVcSny1JbaM9XodDKsoXGl7ee+bOyjPac7V+2 KNYfEukbIZjtqRrpFCh2e+zsPssVmeRv8u/nJqGXTpQMGxfl+FaR2q138j+qch2i 4zIAuC1VouVrUhdRk74kAiTN3HTIfk4t4hQLW2hm8sWODvOYeat6D6l89UrMIRn5 dTyC5qKS3GkKb9oGY0BmQPAvsFy2oZtBTc0p56WTqEPG9nUPsLu8hOjUSnpJWDtL E56ba8Bd6zBSFLPwCiUakgSW315SzMbDysQ1GfgNZ59Kb0GWJqzLNEE2BcsCgDlU yr44gpw0wBCvDUEEOmd0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedtgedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpefhvf evufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeffrghnihgvlhcuighuuceo ugiguhesugiguhhuuhdrgiihiieqnecuggftrfgrthhtvghrnhepgfefgfegjefhudeike dvueetffelieefuedvhfehjeeljeejkefgffeghfdttdetnecuvehluhhsthgvrhfuihii vgepudenucfrrghrrghmpehmrghilhhfrhhomhepugiguhesugiguhhuuhdrgiihii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Jun 2024 17:17:01 -0400 (EDT) From: Daniel Xu To: shuah@kernel.org, daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com, ast@kernel.org, olsajiri@gmail.com, quentin@isovalent.com, alan.maguire@oracle.com, acme@kernel.org Cc: mykolal@fb.com, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: [PATCH bpf-next v4 11/12] bpf: selftests: xfrm: Opt out of using generated kfunc prototypes Date: Sat, 8 Jun 2024 15:16:07 -0600 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net The xfrm_info selftest locally defines an aliased type such that folks with CONFIG_XFRM_INTERFACE=m/n configs can still build the selftests. See commit aa67961f3243 ("selftests/bpf: Allow building bpf tests with CONFIG_XFRM_INTERFACE=[m|n]"). Thus, it is simpler if this selftest opts out of using enerated kfunc prototypes. The preprocessor macro this commit uses will be introduced in the final commit. Signed-off-by: Daniel Xu --- tools/testing/selftests/bpf/progs/xfrm_info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/progs/xfrm_info.c b/tools/testing/selftests/bpf/progs/xfrm_info.c index f6a501fbba2b..a1d9f106c3f0 100644 --- a/tools/testing/selftests/bpf/progs/xfrm_info.c +++ b/tools/testing/selftests/bpf/progs/xfrm_info.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#define BPF_NO_KFUNC_PROTOTYPES #include "vmlinux.h" #include "bpf_tracing_net.h" #include