Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp61375rbb; Fri, 23 Feb 2024 11:45:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVNeHVoMsEbLrDb2fQRtt+LLJsBnVwSy+mVkcJtYP/+HTNwjCrFI//vJfLtiSjcL9Vrgtif6Oq6h7ot0eHr1zE5fNZFsL2lb55LCh8/SA== X-Google-Smtp-Source: AGHT+IHto7Hu4mBFVrWB0Nkufo3M4qAvY0Gn16YCE6cC1ANWs0PrgA5HTmtV8yeFLB4hO3yiIphY X-Received: by 2002:ac8:5c10:0:b0:42e:586d:1234 with SMTP id i16-20020ac85c10000000b0042e586d1234mr156344qti.28.1708717530197; Fri, 23 Feb 2024 11:45:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708717530; cv=pass; d=google.com; s=arc-20160816; b=N8jA7YQULgjw8dgEEtFYi36XAmnXHllElQcHZQ1rY5Of8hCU/F+eHJ/NFIa+4PBYxc EigR3LjEB6y5slV44YbG4GTA1/PSbAlwvyp7XGocXmLE9R9Tyg0RfWKDjg8GS1mSolHd pOLBVG1DQ3McOW0LmDyWf4bsSRt8mO4nVSocHiQN9Xc3zlMkTm2T52nIPS1OopgP09n9 GUrhcIjkq55IdD3rBwUPe1OeCSsMVBPH9TSH1qc29xwnljr3vL9E3ef49ramQUE8ZtYj ID0ZWx8Ye7zmAzAIM+ruTzjIiwoTIkVwE6rhctGyjvPb0EkZoE5uou5YNuwI5g/ZsfOx /7bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eJEeVWlry/i+nLNA68wYMWdBOMahWRcLDHEHg7dfg1k=; fh=nRK4yoTKg1+cQ3tvzSbLaTNNdRWe7mZSggDF7kMMBLg=; b=rWs1auCGXEQYQ0PeHzPZpjLzPIYiLys49f40ddbaNsu8HaG+po5RUxMKYtIRyq3zPE FZIEXJzAnHrYiuamcbiJYZB7+I3x/chV/ZeC3acyV5C2MfI3yGdVZZV3LIsV7GiEFWdB 4muxQbSa5plgw8oK0n3XiwjMwOF9i/EnyHnG661+eGIbn7f3LhGAoL4+cE0Vy5btQaT7 QmQm/1a2lyXI9d+7/+SC62L7PYNGCjKzxkR+bqkKzZo1RMT/IZO9YMG2aYbuTeSUsFg1 aLJPjHuElHklP+AP2lA3XjLxHf1qAIdb0qVoGhe3drcE8nlRRhJDHYycyK9WdR6zD00k Xerg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NJkGTk8d; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79048-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. [147.75.199.223]) by mx.google.com with ESMTPS id j5-20020ac85c45000000b0042e6b9c0c3asi778781qtj.496.2024.02.23.11.45.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 11:45:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79048-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=@kernel.org header.s=k20201202 header.b=NJkGTk8d; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79048-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 CDB461C23955 for ; Fri, 23 Feb 2024 19:45:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E26F145358; Fri, 23 Feb 2024 19:45:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NJkGTk8d" 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 44E1F46AB; Fri, 23 Feb 2024 19:45:03 +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=1708717504; cv=none; b=L11Iudbvpi7j3TdSarzeVw2IEP+5vBldjkGtV9S+JLBFglSNwNkUegByPcrQb2E9b60lksOLyoScxxRQVV9bNa/Zco+1Imo00q0j97aEr+hKpUwwzPXFFoUpx2rbVIH7d9E41txiCSFfQ7p+Nlu+WBVqdHXR2wnZNcbX47F9d1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708717504; c=relaxed/simple; bh=61ZPwyu9SRxE8LspTKZJRDCV3i5FHGC9oOaA/Lh95VY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oEQvh3snkwiWAGpn8GSKjQHxmQOHxS772jQ3PkfvN1zBiDUTviCG8bQJ06GRXMBLhz46+k5sdbwlkMpSoKpbD88Ba+rMIe8WC7A36+koymiIuTy5R0cP/MX3YmPxkIUYSkappjcI1fTSN9AoqLQitfbAo1y5ExvlP2I2ZFLEUvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NJkGTk8d; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C04F3C433F1; Fri, 23 Feb 2024 19:44:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708717503; bh=61ZPwyu9SRxE8LspTKZJRDCV3i5FHGC9oOaA/Lh95VY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NJkGTk8dGv7PfYkNiMIrg9eHvTzqU//JoVn9bWxqA1BGDfd16B6R/c//u5KREMfD1 86A8HqPNt7vqdb9O6I5QIrKkPiAgtWf3qI55XUEu3Qr2Ipu4DGNZCHy/LGAAyqqNSK FBrKD6XJ0hvsV+dkWwRvLs+6sG6+tzNzwz7hMtn4o7dOUcWT9I/MUHEocjptQzTmke w6Whzs2nxwEbGju8DFtJ3r+5hgj25SLA4GPOf98ALP0ybsd6Z4p3lhn9paMSFPYfWg bm3+BAtj0iOIaGrdTQ+x/UUfozS1O+bqOZ32X9To5vzVdJJIJvzNM/f5WY8hDRWyZa x3wglURpuyuyw== Date: Fri, 23 Feb 2024 20:44:55 +0100 From: Benjamin Tissoires To: Eduard Zingerman Cc: Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Jiri Kosina , Benjamin Tissoires , Jonathan Corbet , Shuah Khan , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH RFC bpf-next v3 09/16] HID: bpf/dispatch: regroup kfuncs definitions Message-ID: References: <20240221-hid-bpf-sleepable-v3-0-1fb378ca6301@kernel.org> <20240221-hid-bpf-sleepable-v3-9-1fb378ca6301@kernel.org> <962a182f514e96ce258e7173608c282a6183775a.camel@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <962a182f514e96ce258e7173608c282a6183775a.camel@gmail.com> On Feb 22 2024, Eduard Zingerman wrote: > On Wed, 2024-02-21 at 17:25 +0100, Benjamin Tissoires wrote: > > [...] > > > diff --git a/drivers/hid/bpf/hid_bpf_dispatch.c b/drivers/hid/bpf/hid_bpf_dispatch.c > > index e630caf644e8..52abb27426f4 100644 > > --- a/drivers/hid/bpf/hid_bpf_dispatch.c > > +++ b/drivers/hid/bpf/hid_bpf_dispatch.c > > @@ -143,48 +143,6 @@ u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *s > > } > > EXPORT_SYMBOL_GPL(call_hid_bpf_rdesc_fixup); > > > > -/* Disables missing prototype warnings */ > > -__bpf_kfunc_start_defs(); > > Note: > this patch does not apply on top of current bpf-next [0] because > __bpf_kfunc_start_defs and __bpf_kfunc are not present in [0]. > > [0] commit 58fd62e0aa50 ("bpf: Clarify batch lookup/lookup_and_delete semantics") Right... this was in Linus' tree as a late 6.8-rcx addition. Depending on how bpf-next will be rebased/merged, I'll see if I merge this subseries through the HID tree or the BPF one. Cheers, Benjamin > > > - > > -/** > > - * hid_bpf_get_data - Get the kernel memory pointer associated with the context @ctx > > - * > > - * @ctx: The HID-BPF context > > - * @offset: The offset within the memory > > - * @rdwr_buf_size: the const size of the buffer > > - * > > - * @returns %NULL on error, an %__u8 memory pointer on success > > - */ > > -__bpf_kfunc __u8 * > > -hid_bpf_get_data(struct hid_bpf_ctx *ctx, unsigned int offset, const size_t rdwr_buf_size) > > -{ > > - struct hid_bpf_ctx_kern *ctx_kern; > > - > > - if (!ctx) > > - return NULL; > > [...]