Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp823135lqh; Thu, 28 Mar 2024 19:04:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkK5B6YXeAfpngtUThlR7qupVF6yZriuvnBJ/Tj8iWTZs8wpmtW64jErbGbaNHFCMqJV/vsADZwHuao+AQcHjyH1mQcXoaVcCSZmjVFw== X-Google-Smtp-Source: AGHT+IEL/Mt7iQ8l1wD2SQoE0TQu1MqiMXLrNbB/U1M92qR3qqwRP7nRvIxxbQtZ8xwonwl5+14a X-Received: by 2002:a05:6102:41ab:b0:476:aea4:7b77 with SMTP id cd43-20020a05610241ab00b00476aea47b77mr1064833vsb.1.1711677853739; Thu, 28 Mar 2024 19:04:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711677853; cv=pass; d=google.com; s=arc-20160816; b=hEbJvLTMJTZu77waPdrAa/XvWs5Hoz/+knVsSI4IRgOg/GzXSW6OlhWdXQC2UICt8x RwfUSAmi4VV+T//wLi1VipsvuOz/2r7PeOhGhPELtBdn6beut1eiHPxSKGFI+71loS18 Ut9WdpGOXHDoyOAjPYiou9zWsg7AcZRjvU7g829Y01D2OAS/ptvjN+wzIv7ccSLb58Mv xJtkQnIY/fOf+mxdWtwAaej5OcZV7hSXHNG3Z+baVx6KTbUYMUqGuRAWECBVPoKcdyWa Q+kbFnXW+Fbm2QXSfX6omSrQ9c+VgUd6WH/21GYBF8VRCTKXnhNjBKbvNh5Bdj1+jMMb uHAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=/G940zvh+KpSLBvufKEbVa5uESG7TAs31JyWujh5JiA=; fh=Kx1ujGSW/xg3BvMtjIMOyRZk+JPNd79dAjn5APsGmGY=; b=BanaVer4l6axZH76og2YUF7A5jZHFDkL9OS7dXomiHWdPh64IkDN6Uv75xQs+E7Nz7 lnylRUoR1R9YtWYxbqQdKP7npk+C398SoHb+qTo44fYMTY4clcTOJW9p6aSwY3XkglIe thdtoMxjdJy1O1wyzIDMLgsLPNsGP70vKzL0syBSmQDnZi7FaOAZ1nuvrQDnE9C2f1q0 WA6HqCX4mXHs95Yv4lLWnIQ1IcWGMIoYrMPFTlDlCLiyNMtTup4nN/UQECAl4a8aAOWz FARssfB7jvwBcgfG9HZsqD8NNLG5L+VZS40hciWCdHeWz6B5MwCUY7kPvnhkkSAWNjjU wMfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=cGvlUFtl; arc=pass (i=1 spf=pass spfdomain=flex--drosen.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-124007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pr26-20020a056214141a00b00696b46bba5fsi2790048qvb.583.2024.03.28.19.04.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 19:04:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124007-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=@google.com header.s=20230601 header.b=cGvlUFtl; arc=pass (i=1 spf=pass spfdomain=flex--drosen.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-124007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 75BD91C28441 for ; Fri, 29 Mar 2024 02:04:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28D082D60F; Fri, 29 Mar 2024 01:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="cGvlUFtl" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 CB22A85635 for ; Fri, 29 Mar 2024 01:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711677304; cv=none; b=XZnSQw6Z+Awkpw64qSho8Xph3da9oMcKOOUTfvg4IGNud07okcvRc9FckG+8Xf+uuzhKINvFjNqGhuxodBr92TcdHWF9YdlQi8sxWz6A56Mz5XjGSI2XtCa+OdAfq2gelwyeAALaDb2Q9IQZojSB/sVMFI1b3bk/dUBSg1Uz700= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711677304; c=relaxed/simple; bh=KCoIZNUHcwv2RV9ZRbHBJii4HaQ9xYYtK2VIovQhTY4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=OiI32WfVeZHzQpcxjF7Wa5kpK/RAsffHUsBWqTIR6Wi5x2rAlb2MvmlB9lyjqEzSc6VfJTJA6a7rSyX5Z1xpu1kaUP1MY0PW4DGi7hYeh7xjVPhNhhg2ZJEM/d8ILt9FJ5RnfWGDCqBLol6WvxI9u+sqHf1SiLbXho8UpQFzemw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--drosen.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=cGvlUFtl; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--drosen.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-60a2386e932so29402037b3.1 for ; Thu, 28 Mar 2024 18:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711677301; x=1712282101; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=/G940zvh+KpSLBvufKEbVa5uESG7TAs31JyWujh5JiA=; b=cGvlUFtlWGRTPkcyYNCMwvSxvP8qlwrZr3JOFvlMOAHhswasUvQzmPZLlH01AY8Kke CDnQgoMEJhPRIKJsyS04oYc8Uuu55Dzdh5jmQyxNhfsUDMZZEkM1xiv1h5HuuzYlN6zl PODUMjxw8QyB8/DxnT+YoKR3DI/rJSNob2BNPMMEmg+Bogh048li815kIsg18b85Utld Iymm98q4jMGrSCjfKBjmefZPnJZpcMtoplmG+B4yi7PxdPAoPOD9gEgZgZCkQSQESDHb zNE7xCcmRxlLfrm4sMPXWZKy3jJxhIq7sq9SCl2/E0a/qS5mSG6DsrzM9EQEaQppU9Hb 4vfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711677301; x=1712282101; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/G940zvh+KpSLBvufKEbVa5uESG7TAs31JyWujh5JiA=; b=dYe3NNlzFH504VyqRSdzNtZo1e1R4ePyCakZI5Pldaq69DMNPAGhYUxMUzyeQ+pFZk EV9fJd5CM8/dyBjw2ep5MnrkNfUDUQlBkB9WL+HGpW3v1HHKam/kzoupYADaN6rUNun0 /V8Ahbgw3c1c+HXuFw8aWQ+zRBVMHPNUtfCr7nJ7AS2b1zcDO8j0l3ovxKBaqS/hKrKn Z+LPLT9f07Ex/nVVaFhgBIw/Bzks+jwFIdOdvX7BCbKVo+BmOH+/N5CZ6OcRyCFu8tAK 5qWCy3t+NGG9KZTgwoazoD3kjwij1d3g0AyoUkMBLXS6ilwZlYgCcJZ5Jm9EWD0AiUqI Bnsw== X-Forwarded-Encrypted: i=1; AJvYcCVhGqzG+R7CnwS0KgO5umf8XJlTLjxwZkOtOJbanr5z35rsN+eDNQ765oczoAWRTEvokuxhhiaxdsGIDR6AB+sUf/jTqGENU3IerOh5 X-Gm-Message-State: AOJu0Yy/C0Lm3RRQaPPRYXicyuJ5VJmL9A9YhKEjuyW4mWFXy7Nc6kB5 z05zbVPEbo0saPX9sviEumGx7KyiylZkvw/ctyjYoJpINkvcrfrmackj99X3OaJ+unkX4jC4kX9 MSA== X-Received: from drosen.mtv.corp.google.com ([2620:15c:211:201:fcce:d6ab:804c:b94b]) (user=drosen job=sendgmr) by 2002:a0d:d8c5:0:b0:614:4c1:c8d with SMTP id a188-20020a0dd8c5000000b0061404c10c8dmr308593ywe.6.1711677300998; Thu, 28 Mar 2024 18:55:00 -0700 (PDT) Date: Thu, 28 Mar 2024 18:53:42 -0700 In-Reply-To: <20240329015351.624249-1-drosen@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240329015351.624249-1-drosen@google.com> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog Message-ID: <20240329015351.624249-28-drosen@google.com> Subject: [RFC PATCH v4 27/36] fuse-bpf: Export Functions From: Daniel Rosenberg To: Miklos Szeredi , bpf@vger.kernel.org, Alexei Starovoitov Cc: Amir Goldstein , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Eduard Zingerman , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jonathan Corbet , Joanne Koong , Mykola Lysenko , Christian Brauner , kernel-team@android.com, Daniel Rosenberg Content-Type: text/plain; charset="UTF-8" These functions needed to be exported to build fuse as a module Signed-off-by: Daniel Rosenberg --- kernel/bpf/bpf_struct_ops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/bpf/bpf_struct_ops.c b/kernel/bpf/bpf_struct_ops.c index 43356faaa057..ae76b99c07c1 100644 --- a/kernel/bpf/bpf_struct_ops.c +++ b/kernel/bpf/bpf_struct_ops.c @@ -1024,6 +1024,7 @@ bool bpf_struct_ops_get(const void *kdata) map = __bpf_map_inc_not_zero(&st_map->map, false); return !IS_ERR(map); } +EXPORT_SYMBOL_GPL(bpf_struct_ops_get); void bpf_struct_ops_put(const void *kdata) { @@ -1035,6 +1036,7 @@ void bpf_struct_ops_put(const void *kdata) bpf_map_put(&st_map->map); } +EXPORT_SYMBOL_GPL(bpf_struct_ops_put); static bool bpf_struct_ops_valid_to_reg(struct bpf_map *map) { -- 2.44.0.478.gd926399ef9-goog