From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Pauli Virtanen <pav@iki.fi>
Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org,
johan.hedberg@gmail.com, luiz.dentz@gmail.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/5] Bluetooth: L2CAP: export l2cap_chan_hold for modules
Date: Tue, 4 Nov 2025 11:44:47 +0100 [thread overview]
Message-ID: <faa2eeba-4af4-4ba0-845e-e2d440231614@molgen.mpg.de> (raw)
In-Reply-To: <79a6190fd55c2ac425450e1dac0fc7d8cd20b6c5.1762194056.git.pav@iki.fi>
Dear Pauli,
Thank you for the patch.
Am 03.11.25 um 19:29 schrieb Pauli Virtanen:
> l2cap_chan_put() is exported, so export also l2cap_chan_hold() for
> modules.
>
> l2cap_chan_hold() has use case in net/bluetooth/6lowpan.c
>
> Signed-off-by: Pauli Virtanen <pav@iki.fi>
> ---
>
> Notes:
> v2:
> - New patch for v2
> - Used for build fix with CONFIG_BT_6LOWPAN=m
>
> net/bluetooth/l2cap_core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
> index d08320380ad6..35c57657bcf4 100644
> --- a/net/bluetooth/l2cap_core.c
> +++ b/net/bluetooth/l2cap_core.c
> @@ -497,6 +497,7 @@ void l2cap_chan_hold(struct l2cap_chan *c)
>
> kref_get(&c->kref);
> }
> +EXPORT_SYMBOL_GPL(l2cap_chan_hold);
>
> struct l2cap_chan *l2cap_chan_hold_unless_zero(struct l2cap_chan *c)
> {
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Kind regards,
Paul
next prev parent reply other threads:[~2025-11-04 10:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-03 18:29 [PATCH v2 1/5] Bluetooth: 6lowpan: reset link-local header on ipv6 recv path Pauli Virtanen
2025-11-03 18:29 ` [PATCH v2 2/5] Bluetooth: 6lowpan: fix BDADDR_LE vs ADDR_LE_DEV address type confusion Pauli Virtanen
2025-11-03 18:29 ` [PATCH v2 3/5] Bluetooth: L2CAP: export l2cap_chan_hold for modules Pauli Virtanen
2025-11-04 10:44 ` Paul Menzel [this message]
2025-11-03 18:29 ` [PATCH v2 4/5] Bluetooth: 6lowpan: Don't hold spin lock over sleeping functions Pauli Virtanen
2025-11-03 18:29 ` [PATCH v2 5/5] Bluetooth: 6lowpan: add missing l2cap_chan_lock() Pauli Virtanen
2025-11-07 19:10 ` [PATCH v2 1/5] Bluetooth: 6lowpan: reset link-local header on ipv6 recv path patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=faa2eeba-4af4-4ba0-845e-e2d440231614@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=pav@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®