Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp242583lqp; Sat, 8 Jun 2024 14:20:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdmP/np6/tAZF9WDkEQJ9gZcK8hkuzGp+XQCrLCMWKFS5xLmQHCIlCO55okuw3UbHKPLPtfM8BN3HTx+BFB6VlqXJKnJQSoBn/wP5tzg== X-Google-Smtp-Source: AGHT+IFOoAzkVWX5SLizK3gUtCP6yDDLuEf/aZ3jX3iK6oxZnjCqINqCcQ7hbjMSlcHXT8pc/52G X-Received: by 2002:a05:622a:14c7:b0:440:5bea:c96a with SMTP id d75a77b69052e-4405beacb68mr39280281cf.24.1717881604882; Sat, 08 Jun 2024 14:20:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717881604; cv=pass; d=google.com; s=arc-20160816; b=GKWow3YkpDL0nXtQuh4rQrtC9NNsGu1Yj7G2n1joK/9CJVfIH4ozx5U34/U4ykT+Qg Lh/9R0Ec4VUSBGalhJPR0iSuK3qLXPGf/CuFM91ett4Q/PF8gJDj0Trs7wOkSTAZKoX5 RHPz/5Ix+tIzhRG3qdLoCBBKvPoC3qvQeLT6nFqhKpNQyvnw3VrQClnpqw5eUTLa9HnI c8To30dckQc+9mNu4+P1M2aSwWpk56NiOiXnFXtwyUbANzOZas374Pduop2pGNOBue2A dbMWEfLtSmYYBPHt8ytQVCCUREgDAnhgLcP6eLKccLSpmNnK4E3zyJ+sj3qlYKD7rNT/ Y0Kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=rw3uf/fg2XLXP7lcRjaOwMtzCT7fUDyYAtYnSUPZFmc=; fh=/QY4nXXdv6Ov+i83RNKayZsv4x/Xpqlx8i3Ozr0XEXY=; b=EjNT9rsKv5lPRU0XPHx+xsaT5HGs+s7XWLoAqs8MTR2xExXPabej4aj7IdJlyHSQYM i2TzZsrLhoIrN+wdYNSsEV5QaH1AbkhuV1UOHcXbX+UVITMb1P+OkDJx+n8zKyxB288T Hxf5YQ5KljzK9RPzV9wC4rfgTpAcvQVbj9PcGEweOATM5afBP8QgvKSN3Heoq/IFndas CMEDMDbiJVgzCYIeVPBEM1x97trHyClFcBU+eI+DJRxql7bssz7RhKbgMvLSBf6ttdOD CFQLImZK4o/j96W8NMjzrBQJgFBySJqbe+ysovItDljsb5sqPxQWSERnWC3xfWtXgtOB 13og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b=CcNV3p3s; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=If4OpJ7u; arc=pass (i=1 spf=pass spfdomain=dxuuu.xyz dkim=pass dkdomain=dxuuu.xyz dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-207201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207201-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b39735si69837921cf.420.2024.06.08.14.20.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 14:20:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b=CcNV3p3s; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=If4OpJ7u; arc=pass (i=1 spf=pass spfdomain=dxuuu.xyz dkim=pass dkdomain=dxuuu.xyz dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-207201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207201-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8D5E31C209B8 for ; Sat, 8 Jun 2024 21:20:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2AC76F30E; Sat, 8 Jun 2024 21:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="CcNV3p3s"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="If4OpJ7u" 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 3D7816F2E8; Sat, 8 Jun 2024 21:17:02 +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=1717881423; cv=none; b=ny2k8WamZQfrv9x0V50kIZ3MrFWIE7Upq6wTp9nO71OTInrjwMNByKyYOax5Gr/ow3Nnxw2Z/cTc6/Tut9yG/VZQpIyeZ43pnj9htHLcSGm+ndvMKfbBldnyYb+0T6GdGJm7pfxBKPrQ7rxMB7d/P06ciA15aOId3XuPJ677Kg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717881423; c=relaxed/simple; bh=8wcWIDJV9i7uVZzCddioETI3Y4rYvL9XxaTQ0tokYQU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=boc2WpQ7dUs+e4Dt7DmsrQuXfB28nQ7GgfwwhtZPv/ilOfzuFtEnmifi67zirqXse8qtJdPpWbbPrbnqSVGF8n75bGFvOLDRjkj8pwNgoFp3Mph35zHQDufMZ+TwKWdN/JuXt2TabGwZj8CmGzKystsDHE94rc9Kubi6SzISmAo= 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=CcNV3p3s; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=If4OpJ7u; 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 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailflow.west.internal (Postfix) with ESMTP id E2B9F2CC011E; Sat, 8 Jun 2024 17:16:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 08 Jun 2024 17:17:01 -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=1717881419; x= 1717888619; bh=rw3uf/fg2XLXP7lcRjaOwMtzCT7fUDyYAtYnSUPZFmc=; b=C cNV3p3s/eWMl4UxvEduML/8284ozg7gEr+LqFFxTgKt626JgTKZv5aqC1PpUuB0M sx3Y2L65Ui95N55JTVibsrz5NHmEcg7V3DNuRfNvpYKlFS9ZNNnULcImQC2vVMDT TJDPfLX+bQyfZVdANpmkVDRWh4aqFR/X/4Dh84CCXJ0CGYYpxSv2eHhJ62rfdl60 COKChuVlk9pxoTWZhrn9mFCFY0yPz6WN3htAjGoY2S5Gejk1yxqoXzx4+b4WsxQo IEQnWKqsi+kV8+6SeB3cfF4QBaGeYNDPex2Q2bQ3ooIw5jAAtbLiJbLLAetTYZP9 pUPnIcJZBWL7nbXgcMWTg== 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=1717881419; x= 1717888619; bh=rw3uf/fg2XLXP7lcRjaOwMtzCT7fUDyYAtYnSUPZFmc=; b=I f4OpJ7uXjgE5l3MczCb0iCGduhsABFoZ9QLrnYQzGQpl6MaJ0utIraGTwQ4eG88N a80Pc9BxYqYXopLs6oXI5S3Ej2yxy9h11NkzC+C6jmGcxUNyFiG1f7PczOkG0/v1 sIdiPgokpT11FffLskjSXuIHnM1ADDLCPY3CTbqB3ammHAOqCuTK4yGvCycMbfqu 2E+0kK93fET/sng9yz22nxnZowQ5g6rJ5VGO2+XNQx6RLtm8QeRaaDDtrnB6hu2v /biQVnQerjEfu7BKJ2IskFt5P0NWgHaBShx7xCg3PiSDSANk4p4F/yhnfn6irsNp CTE5UI8Dxco9c2BqsRpuw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedtgedgleefucetufdoteggodetrfdotf 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:16:57 -0400 (EDT) From: Daniel Xu To: shuah@kernel.org, ast@kernel.org, andrii@kernel.org, eddyz87@gmail.com, davem@davemloft.net, daniel@iogearbox.net, hawk@kernel.org, kuba@kernel.org, john.fastabend@gmail.com, 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, 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, netdev@vger.kernel.org, kernel-team@meta.com Subject: [PATCH bpf-next v4 10/12] bpf: selftests: nf: Opt out of using generated kfunc prototypes Date: Sat, 8 Jun 2024 15:16:06 -0600 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The bpf-nf selftests play various games with aliased types such that folks with CONFIG_NF_CONNTRACK=m/n configs can still build the selftests. See commits: 1058b6a78db2 ("selftests/bpf: Do not fail build if CONFIG_NF_CONNTRACK=m/n") 92afc5329a5b ("selftests/bpf: Fix build errors if CONFIG_NF_CONNTRACK=m") Thus, it is simpler if these selftests opt out of using generated 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/test_bpf_nf.c | 1 + tools/testing/selftests/bpf/progs/test_bpf_nf_fail.c | 1 + tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c | 1 + 3 files changed, 3 insertions(+) diff --git a/tools/testing/selftests/bpf/progs/test_bpf_nf.c b/tools/testing/selftests/bpf/progs/test_bpf_nf.c index 0289d8ce2b80..f7b330ddd007 100644 --- a/tools/testing/selftests/bpf/progs/test_bpf_nf.c +++ b/tools/testing/selftests/bpf/progs/test_bpf_nf.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#define BPF_NO_KFUNC_PROTOTYPES #include #include #include diff --git a/tools/testing/selftests/bpf/progs/test_bpf_nf_fail.c b/tools/testing/selftests/bpf/progs/test_bpf_nf_fail.c index 0e4759ab38ff..a586f087ffeb 100644 --- a/tools/testing/selftests/bpf/progs/test_bpf_nf_fail.c +++ b/tools/testing/selftests/bpf/progs/test_bpf_nf_fail.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#define BPF_NO_KFUNC_PROTOTYPES #include #include #include diff --git a/tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c b/tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c index 7ea9785738b5..f8f5dc9f72b8 100644 --- a/tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c +++ b/tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: LGPL-2.1 OR BSD-2-Clause /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ +#define BPF_NO_KFUNC_PROTOTYPES #include "vmlinux.h" #include -- 2.44.0