Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2554140lqp; Mon, 25 Mar 2024 02:22:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSkQ1XXhUgapajZ9E36a7HzKvp6VgbXVn+RmFuINqF12yNHZKLt4jbxMU92wSDYL8HZ+dkI2msoXKpNfY+rrxmudDGtzP9hFzom6Y2dQ== X-Google-Smtp-Source: AGHT+IE9/OhsjPEXVjBWRY+et0gm3kROCqgoWXoU8dJRoM4yZ1Ep+F5zpLVt0O2G2bJlCEBKwV0k X-Received: by 2002:ac8:7fd3:0:b0:431:4e82:fb72 with SMTP id b19-20020ac87fd3000000b004314e82fb72mr4703145qtk.18.1711358566896; Mon, 25 Mar 2024 02:22:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711358566; cv=pass; d=google.com; s=arc-20160816; b=yo8dfheHfbg3Ed2mbL/+ittrmwBLjH3j2E5MmQZv1C3/6hN13BfmPANZ/AnlJktLw4 5ba3GxLu22SUKP+tcOb4BxQ7SRHOsXH8JVo/zneYap2ZqvfpNsguz6MwTaP51L0eFuQc 4vUdkozhtyBLK6CNKRxg1BfbJua6vt4Achna9/1yp4oixdZHvmemYoutFonPrVTggD7i CPRAhZcpVjLesxhVC5wzFt9XI6cOiCzB4X3McMpapp/pBf9RtzpoaOHrTg9wioClZmVb 4sypeni5ij73doIpW7Z33OovvciFvp1aQ3nxN6Bsaq9FA1gYCwpKZUaHJ/YgIPq7Wtz7 5OKg== 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=AY2q2kJkBEa9a62bhzZQVl2ksjlyZheN7OtLu5e3HqM=; fh=F0P4d1VZCFW3kJvyUtQt3r2/XCRGPb2N/9eOR+1qAPU=; b=nRRqNbrY73wDikuRMO44ZQUZrWOXBHroQX9jVBkzFkXpo6NZHx+aw6n3BhG3kdakp2 9dNw0r7pBVMU1joe2RdNkb15SYBji7+pBuZCDmgqseJgQ+3sVO9+3mD5B3Bq0UztBFI2 riHe/INXs/RfmDp6LHokRykbTgsLckSEW5UF4CML2Oxs7CC5Zhey3noxqyx7b3DgnpAN ga8sDDndf4xCtr//oBkajaFywEqKbYtxPfj9rdhgc9QaN6MvHilh+qm5l3dI0d2FyePm 0WtNAszM6OApSnWSo25M7+nBnO4NbNhwAgVelSMhBAsQhS/eIJmDOTjHfKXYnuytx2Ko 6fqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kyFS5gOU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g3-20020ac87d03000000b004316180b1aesi325210qtb.391.2024.03.25.02.22.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:22:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kyFS5gOU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115794-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CF1B1C310B1 for ; Mon, 25 Mar 2024 09:22:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA201371FB8; Mon, 25 Mar 2024 03:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kyFS5gOU" 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 6C72F145FE5; Sun, 24 Mar 2024 23:14:02 +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=1711322042; cv=none; b=MD9DMB/ncG0wSxUWfArM9wvAZ5O0VOO5eytMAkdfUZf9xl+vm+t1vBhszgrHzeoX9BHnznz2yZPpybQDWU6k5+SZYOnkXSVFL0POacBii+eOZG6Ld71/JaoPMFUGEZlJo5IU+rxzg4UDGZCMYvzxJg/BLPm0oueU/CxEUO0LQWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322042; c=relaxed/simple; bh=OCy11gfgu5eVzkYHZYR+teWLiQJLMXzg8ub7/3DQAw8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nq0MBeMrk1u9tEnMr+lr3GOIRE2VvRa2BRWid6SaU74gIV/FNzTTNSeX6UljKuPgtiukd19y9w5sxjFVBLiY9gI9kCn6UPS3j7Y55u/ExUbKP20Ui0I5ffXu9xYJc3noaf2Jz8Ze8kZb4JUo6gADaSgqg9WG8A9WLkKpR6sIghg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kyFS5gOU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49A7AC433F1; Sun, 24 Mar 2024 23:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322042; bh=OCy11gfgu5eVzkYHZYR+teWLiQJLMXzg8ub7/3DQAw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kyFS5gOUslImStGMXizI3x0j3fY15PbAFJYUJKuEQhzcHTDA+ksnYwPKNPVHRNv38 FQVALqLKJgfqifFrIUByqM9ecvr0bkPN5U5fA2m82DVfbI+eeaAYf1NS2g9OQB21LV AJr1euWpXdj0K3qbttMrhXdYVxULXqXQtpqN47zEcGcX8NLNMHTAMA5pCVIv0700DH NHTSvzg+3l57oGEOxxraKytdrA4Y/AC7nUVSI4evhBaj3a6iv4RXEEJmDoSDkvr/UF bTFW/wvezwPUzjI1LrBJ8scpOZ0zF8b1VteFNVdCuRfy7l59Zqvnt6LCPxSTJMoa18 JPdeE7WILTNFw== 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.1 114/451] libbpf: Add missing LIBBPF_API annotation to libbpf_set_memlock_rlim API Date: Sun, 24 Mar 2024 19:06:30 -0400 Message-ID: <20240324231207.1351418-115-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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 fddc05c667b5d..874fe362375de 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