From: Martin Schiller <ms@dev.tdt.de>
To: linux@treblig.org
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, linux-x25@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net/x25: Remove unused x25_terminate_link()
Date: Mon, 14 Jul 2025 08:11:49 +0200 [thread overview]
Message-ID: <6c677b5f49f57abdaaf499db719131f8@dev.tdt.de> (raw)
In-Reply-To: <20250712205759.278777-1-linux@treblig.org>
On 2025-07-12 22:57, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> x25_terminate_link() has been unused since the last use was removed
> in 2020 by:
> commit 7eed751b3b2a ("net/x25: handle additional netdev events")
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
> include/net/x25.h | 1 -
> net/x25/x25_dev.c | 22 ----------------------
> 2 files changed, 23 deletions(-)
>
> diff --git a/include/net/x25.h b/include/net/x25.h
> index 5e833cfc864e..414f3fd99345 100644
> --- a/include/net/x25.h
> +++ b/include/net/x25.h
> @@ -203,7 +203,6 @@ void x25_send_frame(struct sk_buff *, struct
> x25_neigh *);
> int x25_lapb_receive_frame(struct sk_buff *, struct net_device *,
> struct packet_type *, struct net_device *);
> void x25_establish_link(struct x25_neigh *);
> -void x25_terminate_link(struct x25_neigh *);
>
> /* x25_facilities.c */
> int x25_parse_facilities(struct sk_buff *, struct x25_facilities *,
> diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c
> index 748d8630ab58..fb8ac1aa5826 100644
> --- a/net/x25/x25_dev.c
> +++ b/net/x25/x25_dev.c
> @@ -170,28 +170,6 @@ void x25_establish_link(struct x25_neigh *nb)
> dev_queue_xmit(skb);
> }
>
> -void x25_terminate_link(struct x25_neigh *nb)
> -{
> - struct sk_buff *skb;
> - unsigned char *ptr;
> -
> - if (nb->dev->type != ARPHRD_X25)
> - return;
> -
> - skb = alloc_skb(1, GFP_ATOMIC);
> - if (!skb) {
> - pr_err("x25_dev: out of memory\n");
> - return;
> - }
> -
> - ptr = skb_put(skb, 1);
> - *ptr = X25_IFACE_DISCONNECT;
> -
> - skb->protocol = htons(ETH_P_X25);
> - skb->dev = nb->dev;
> - dev_queue_xmit(skb);
> -}
> -
> void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb)
> {
> unsigned char *dptr;
Acked-by: Martin Schiller <ms@dev.tdt.de>
next prev parent reply other threads:[~2025-07-14 6:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-12 20:57 [PATCH net-next] net/x25: Remove unused x25_terminate_link() linux
2025-07-14 6:11 ` Martin Schiller [this message]
2025-07-15 0:30 ` patchwork-bot+netdevbpf
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=6c677b5f49f57abdaaf499db719131f8@dev.tdt.de \
--to=ms@dev.tdt.de \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-x25@vger.kernel.org \
--cc=linux@treblig.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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