Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2366315lqp; Sun, 24 Mar 2024 16:02:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkImXSs73jMSj+RwBEMs0VET1eGMfIqyWAODCB/XJ2SnAxHW9W6OuiLFvYMkla3BiARyK6pyyhW8OrHwzk2Bik7qzabpKRP1MrB10DWA== X-Google-Smtp-Source: AGHT+IFO2FQOZeMj6tfLK0ox+rvf1G2ORG3bw/mu+VlijXXULfVPk/Clcf4H7UsENSakPbCxC8Dj X-Received: by 2002:a05:6359:458b:b0:17f:5ba6:3e93 with SMTP id no11-20020a056359458b00b0017f5ba63e93mr6635747rwb.15.1711321374603; Sun, 24 Mar 2024 16:02:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711321374; cv=pass; d=google.com; s=arc-20160816; b=pydmG10s7qTq52dxzr7Dx+GHQ/T2qqEOybIxgDhbS7rUBwHOnRWLJBukwOJNduvM9a 8OvKRuvUoLDPx9tQi457FibYxULuEXTVi7pyJNmx92XcQ+oV0USsg4IbKbYpjbwTQl1v WmpK0fQWWtPAd7Zsnp329ultZupMD36WOGFG1Q5pIX2BIQX1moBlxDwKNX9EGP+IezWf sV8HShPNXdDX1AEt4URPMumAxt1JlNUrvIZ3m11HT/PSc89febiaGDrq3sKHEhGYc+Ng AthkBYgllNFzlKtfL6eQ/5bKueu9oKOXYCaHDkjha+HJTVWfLbvBAnMrNjEf9NRD1q3H j5jg== 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:dkim-signature; bh=O4H1uItr5cF2zWcqS2N1qYqiLssee+D70n/cwaN/7+A=; fh=F0P4d1VZCFW3kJvyUtQt3r2/XCRGPb2N/9eOR+1qAPU=; b=esQjgarUvJJIdmqcryxMo+csIidCdue2XN2Qe4t3DoFwgcNSC51k/yNFi6HF9wnxKB GhDWRlWbH+gEWTok/I2SjgDL7/Eft8Xa1ZTditj6zZLf5B0jqBI4ZDpwYKzqgSpeNjmw mmnVgCrVvqiD4Uh1Pe4w6XVKpq2Dm2n2zNhtrtHbEddHK9T2iA6nxCYupVI+FKX9OIHA r7ysZutXpq/fCQKVc1B/gr1sUQxMBpKdWzy1TjhMRCRSXaZQrCJw0wBXBZ65d2YO96kq MSHYa20GQEC73ttjQYMPrpg2UvLShzQoR/RH3fkMJ6f2YVmJQuRJrHE+1IMnlY1Or5lJ iO6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ete0feBV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c1-20020a631c01000000b005e2b17cd8a0si6333321pgc.270.2024.03.24.16.02.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ete0feBV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B4D88280DFA for ; Sun, 24 Mar 2024 23:02:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 866D0130E33; Sun, 24 Mar 2024 22:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ete0feBV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A303F130AF0; Sun, 24 Mar 2024 22:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319816; cv=none; b=jwJ8x2s/aQGBJsqaZZQruAqYweiwy7pkqcapE5vun4DlS0Ole5O7oKaQay9fIAi9y/Zb9RcuSuB6Jx02g9KZmDOg93w4ejG+vZGvf6AAmaKXcXIouQaoYGW6xJN8fC4/FWGh3FQjIKvzYiELYWm1OvnzBqcVSLZJpVY2HFb13LA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319816; c=relaxed/simple; bh=v7G71XpAS4tiF9hc66eXK5SwNfvpgF8Od1uEjij+cHg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RqAPuABDRCcmVPoYmHU6hgiNaskqKILtBF8nmoGOfZOual/FwIbQ6Rs232Aebwm115Cdm9mqvBJttIZ5Rn0b4xWGTQQi0Ow0mo9gXxizpcy31MAvPUl8VYPt7HuiDVRTL/yzlof1hi6doN9HqFTDrKaDTyYAMpQzxbdEdzob1zI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ete0feBV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F53AC433A6; Sun, 24 Mar 2024 22:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319816; bh=v7G71XpAS4tiF9hc66eXK5SwNfvpgF8Od1uEjij+cHg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ete0feBVfHrCncrbkfowqj5GRp8LIBvupWxIHatgHxA6X4tuLeyNFEfCr0Zamn1Fe soWpsJqXjFZGNLQ2BDrxDijHJ+b/SH9E5rC0SgqTsjN0ASFvLVUJvsieqjw+xT6+1A PRrzJ0iSbSk7BtpCwEMhpknt6k0Z9lKzgQCAqDbmYH5J36U0mmatgTBbgyfTQeTN/8 e/2WF1IpSwjLh15UTyHPEurCl4iXCE/W0YKZx+ihHLor5E8ELZoVJx+D5KNc2Chv3d aLpIeLaufjQ2giCNKElz2jzc/1F0M1BcGfur3Xyku7FpOmyEC1+Vg91QsZ0jjh9y+U CeqalD3GEoUXQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andrii Nakryiko , Daniel Borkmann , Eduard Zingerman , Sasha Levin Subject: [PATCH 6.8 118/715] libbpf: Add missing LIBBPF_API annotation to libbpf_set_memlock_rlim API Date: Sun, 24 Mar 2024 18:24:57 -0400 Message-ID: <20240324223455.1342824-119-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Andrii Nakryiko [ Upstream commit 93ee1eb85e28d1e35bb059c1f5965d65d5fc83c2 ] LIBBPF_API annotation seems missing on libbpf_set_memlock_rlim API, so add it to make this API callable from libbpf's shared library version. Fixes: e542f2c4cd16 ("libbpf: Auto-bump RLIMIT_MEMLOCK if kernel needs it for BPF") Fixes: ab9a5a05dc48 ("libbpf: fix up few libbpf.map problems") Signed-off-by: Andrii Nakryiko Signed-off-by: Daniel Borkmann Acked-by: Eduard Zingerman Link: https://lore.kernel.org/bpf/20240201172027.604869-3-andrii@kernel.org Signed-off-by: Sasha Levin --- tools/lib/bpf/bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h index d0f53772bdc02..dad7917903d19 100644 --- a/tools/lib/bpf/bpf.h +++ b/tools/lib/bpf/bpf.h @@ -35,7 +35,7 @@ extern "C" { #endif -int libbpf_set_memlock_rlim(size_t memlock_bytes); +LIBBPF_API int libbpf_set_memlock_rlim(size_t memlock_bytes); struct bpf_map_create_opts { size_t sz; /* size of this struct for forward/backward compatibility */ -- 2.43.0