netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one
@ 2024-12-25  1:24 linux
  2024-12-30  9:05 ` Miquel Raynal
  2024-12-30 15:53 ` Stefan Schmidt
  0 siblings, 2 replies; 6+ messages in thread
From: linux @ 2024-12-25  1:24 UTC (permalink / raw)
  To: alex.aring, stefan, miquel.raynal, davem, edumazet, kuba, pabeni,
	horms, linux-wpan, netdev
  Cc: linux-kernel, Dr. David Alan Gilbert

From: "Dr. David Alan Gilbert" <linux@treblig.org>

ieee802154_mlme_tx_one() was added in 2022 by
commit ddd9ee7cda12 ("net: mac802154: Introduce a synchronous API for MLME
commands") but has remained unused.

Remove it.

Note, there's still a ieee802154_mlme_tx_one_locked()
variant that is used.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 net/mac802154/ieee802154_i.h |  3 ---
 net/mac802154/tx.c           | 13 -------------
 2 files changed, 16 deletions(-)

diff --git a/net/mac802154/ieee802154_i.h b/net/mac802154/ieee802154_i.h
index 08dd521a51a5..8f2bff268392 100644
--- a/net/mac802154/ieee802154_i.h
+++ b/net/mac802154/ieee802154_i.h
@@ -194,9 +194,6 @@ int ieee802154_mlme_tx_locked(struct ieee802154_local *local,
 			      struct ieee802154_sub_if_data *sdata,
 			      struct sk_buff *skb);
 void ieee802154_mlme_op_post(struct ieee802154_local *local);
-int ieee802154_mlme_tx_one(struct ieee802154_local *local,
-			   struct ieee802154_sub_if_data *sdata,
-			   struct sk_buff *skb);
 int ieee802154_mlme_tx_one_locked(struct ieee802154_local *local,
 				  struct ieee802154_sub_if_data *sdata,
 				  struct sk_buff *skb);
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c
index 337d6faf0d2a..4d13f18f6f2c 100644
--- a/net/mac802154/tx.c
+++ b/net/mac802154/tx.c
@@ -178,19 +178,6 @@ void ieee802154_mlme_op_post(struct ieee802154_local *local)
 	ieee802154_release_queue(local);
 }
 
-int ieee802154_mlme_tx_one(struct ieee802154_local *local,
-			   struct ieee802154_sub_if_data *sdata,
-			   struct sk_buff *skb)
-{
-	int ret;
-
-	ieee802154_mlme_op_pre(local);
-	ret = ieee802154_mlme_tx(local, sdata, skb);
-	ieee802154_mlme_op_post(local);
-
-	return ret;
-}
-
 int ieee802154_mlme_tx_one_locked(struct ieee802154_local *local,
 				  struct ieee802154_sub_if_data *sdata,
 				  struct sk_buff *skb)
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one
  2024-12-25  1:24 [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one linux
@ 2024-12-30  9:05 ` Miquel Raynal
  2024-12-30 15:53 ` Stefan Schmidt
  1 sibling, 0 replies; 6+ messages in thread
From: Miquel Raynal @ 2024-12-30  9:05 UTC (permalink / raw)
  To: linux
  Cc: alex.aring, stefan, davem, edumazet, kuba, pabeni, horms,
	linux-wpan, netdev, linux-kernel

Hello,

On 25/12/2024 at 01:24:23 GMT, linux@treblig.org wrote:

> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> ieee802154_mlme_tx_one() was added in 2022 by
> commit ddd9ee7cda12 ("net: mac802154: Introduce a synchronous API for MLME
> commands") but has remained unused.
>
> Remove it.
>
> Note, there's still a ieee802154_mlme_tx_one_locked()
> variant that is used.
>

I don't remember what this is for. I didn't find any use of it in my desperately
downstream branches, so it must be a leftover.

Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks,
Miquèl

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one
  2024-12-25  1:24 [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one linux
  2024-12-30  9:05 ` Miquel Raynal
@ 2024-12-30 15:53 ` Stefan Schmidt
  2024-12-30 17:44   ` Dr. David Alan Gilbert
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Schmidt @ 2024-12-30 15:53 UTC (permalink / raw)
  To: alex.aring, miquel.raynal, davem, edumazet, kuba, pabeni, horms,
	linux-wpan, netdev, linux
  Cc: Stefan Schmidt, linux-kernel

Hello linux@treblig.org.

On Wed, 25 Dec 2024 01:24:23 +0000, linux@treblig.org wrote:
> ieee802154_mlme_tx_one() was added in 2022 by
> commit ddd9ee7cda12 ("net: mac802154: Introduce a synchronous API for MLME
> commands") but has remained unused.
> 
> Remove it.
> 
> Note, there's still a ieee802154_mlme_tx_one_locked()
> variant that is used.
> 
> [...]

Applied to wpan/wpan-next.git, thanks!

[1/1] net: mac802154: Remove unused ieee802154_mlme_tx_one
      https://git.kernel.org/wpan/wpan-next/c/bddfe23be8f8

regards,
Stefan Schmidt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one
  2024-12-30 15:53 ` Stefan Schmidt
@ 2024-12-30 17:44   ` Dr. David Alan Gilbert
  2024-12-30 18:00     ` Stefan Schmidt
  0 siblings, 1 reply; 6+ messages in thread
From: Dr. David Alan Gilbert @ 2024-12-30 17:44 UTC (permalink / raw)
  To: Stefan Schmidt
  Cc: alex.aring, miquel.raynal, davem, edumazet, kuba, pabeni, horms,
	linux-wpan, netdev, linux-kernel

* Stefan Schmidt (stefan@datenfreihafen.org) wrote:
> Hello linux@treblig.org.
> 
> On Wed, 25 Dec 2024 01:24:23 +0000, linux@treblig.org wrote:
> > ieee802154_mlme_tx_one() was added in 2022 by
> > commit ddd9ee7cda12 ("net: mac802154: Introduce a synchronous API for MLME
> > commands") but has remained unused.
> > 
> > Remove it.
> > 
> > Note, there's still a ieee802154_mlme_tx_one_locked()
> > variant that is used.
> > 
> > [...]
> 
> Applied to wpan/wpan-next.git, thanks!

Thanks! I'd been thinking I had to wait for net-next to reopen.

Dave

> [1/1] net: mac802154: Remove unused ieee802154_mlme_tx_one
>       https://git.kernel.org/wpan/wpan-next/c/bddfe23be8f8
> 
> regards,
> Stefan Schmidt
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one
  2024-12-30 17:44   ` Dr. David Alan Gilbert
@ 2024-12-30 18:00     ` Stefan Schmidt
  2025-01-06 12:39       ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Schmidt @ 2024-12-30 18:00 UTC (permalink / raw)
  To: Dr. David Alan Gilbert
  Cc: alex.aring, miquel.raynal, davem, edumazet, kuba, pabeni, horms,
	linux-wpan, netdev, linux-kernel

Hello Dave,

On 30.12.24 18:44, Dr. David Alan Gilbert wrote:
> * Stefan Schmidt (stefan@datenfreihafen.org) wrote:
>> Hello linux@treblig.org.
>>
>> On Wed, 25 Dec 2024 01:24:23 +0000, linux@treblig.org wrote:
>>> ieee802154_mlme_tx_one() was added in 2022 by
>>> commit ddd9ee7cda12 ("net: mac802154: Introduce a synchronous API for MLME
>>> commands") but has remained unused.
>>>
>>> Remove it.
>>>
>>> Note, there's still a ieee802154_mlme_tx_one_locked()
>>> variant that is used.
>>>
>>> [...]
>>
>> Applied to wpan/wpan-next.git, thanks!
> 
> Thanks! I'd been thinking I had to wait for net-next to reopen.

It's in my wpan-next tree and I will send a pull request to net-next 
when it opens up again.

regards
Stefan Schmidt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one
  2024-12-30 18:00     ` Stefan Schmidt
@ 2025-01-06 12:39       ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 6+ messages in thread
From: Dr. David Alan Gilbert @ 2025-01-06 12:39 UTC (permalink / raw)
  To: Stefan Schmidt
  Cc: alex.aring, miquel.raynal, davem, edumazet, kuba, pabeni, horms,
	linux-wpan, netdev, linux-kernel

* Stefan Schmidt (stefan@datenfreihafen.org) wrote:
> Hello Dave,
> 
> On 30.12.24 18:44, Dr. David Alan Gilbert wrote:
> > * Stefan Schmidt (stefan@datenfreihafen.org) wrote:
> > > Hello linux@treblig.org.
> > > 
> > > On Wed, 25 Dec 2024 01:24:23 +0000, linux@treblig.org wrote:
> > > > ieee802154_mlme_tx_one() was added in 2022 by
> > > > commit ddd9ee7cda12 ("net: mac802154: Introduce a synchronous API for MLME
> > > > commands") but has remained unused.
> > > > 
> > > > Remove it.
> > > > 
> > > > Note, there's still a ieee802154_mlme_tx_one_locked()
> > > > variant that is used.
> > > > 
> > > > [...]
> > > 
> > > Applied to wpan/wpan-next.git, thanks!
> > 
> > Thanks! I'd been thinking I had to wait for net-next to reopen.
> 
> It's in my wpan-next tree and I will send a pull request to net-next when it
> opens up again.

Thanks, I see it in linux-next.

Dave

> regards
> Stefan Schmidt
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-06 12:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-25  1:24 [RFC net-next] net: mac802154: Remove unused ieee802154_mlme_tx_one linux
2024-12-30  9:05 ` Miquel Raynal
2024-12-30 15:53 ` Stefan Schmidt
2024-12-30 17:44   ` Dr. David Alan Gilbert
2024-12-30 18:00     ` Stefan Schmidt
2025-01-06 12:39       ` Dr. David Alan Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).