Skip to contentSkip to conversation

appletalk: Remove deadcode

RFC In review [email protected] 3 participants 3 messages Sep 21, 2024 – Sep 25, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 appletalk: Remove deadcode

From: "Dr. David Alan Gilbert" <[email protected]>

alloc_ltalkdev in net/appletalk/dev.c is dead since commit 00f3696f7555 ("net: appletalk: remove cops support")

Removing it (and it's helper) leaves dev.c and if_ltalk.h empty; remove them and the Makefile entry.

tun.c was including that if_ltalk.h but actually wanted the uapi version for LTALK_ALEN, fix up the path.

---
 drivers/net/tun.c        |  2 +-
 include/linux/if_ltalk.h |  8 -------
 net/appletalk/Makefile   |  2 +-
 net/appletalk/dev.c      | 46 ----------------------------------------
 4 files changed, 2 insertions(+), 56 deletions(-)
 delete mode 100644 include/linux/if_ltalk.h
 delete mode 100644 net/appletalk/dev.c
drivers/net/tun.c +1 -1
index 5f77faef0ff1..82abe79c98fa 100644
@@ -71,7 +71,7 @@
 #include <linux/bpf_trace.h>
 #include <linux/mutex.h>
 #include <linux/ieee802154.h>
-#include <linux/if_ltalk.h>
+#include <uapi/linux/if_ltalk.h>
 #include <uapi/linux/if_fddi.h>
 #include <uapi/linux/if_hippi.h>
 #include <uapi/linux/if_fc.h>
include/linux/if_ltalk.h deleted +0 -8
deleted file mode 100644
index 4cc1c0b77870..000000000000
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __LINUX_LTALK_H
-#define __LINUX_LTALK_H
-
-#include <uapi/linux/if_ltalk.h>
-
-extern struct net_device *alloc_ltalkdev(int sizeof_priv);
-#endif
net/appletalk/Makefile +1 -1
index 33164d972d37..152312a15180 100644
@@ -5,6 +5,6 @@
 
 obj-$(CONFIG_ATALK) += appletalk.o
 
-appletalk-y			:= aarp.o ddp.o dev.o
+appletalk-y			:= aarp.o ddp.o
 appletalk-$(CONFIG_PROC_FS)	+= atalk_proc.o
 appletalk-$(CONFIG_SYSCTL)	+= sysctl_net_atalk.o
net/appletalk/dev.c deleted +0 -46

46 lines not on this page · raw message

Signature · 1 line
2.46.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · linux@ wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

alloc_ltalkdev in net/appletalk/dev.c is dead since commit 00f3696f7555 ("net: appletalk: remove cops support")

Quoted 7 lines

Removing it (and it's helper) leaves dev.c and if_ltalk.h empty; remove them and the Makefile entry.

tun.c was including that if_ltalk.h but actually wanted the uapi version for LTALK_ALEN, fix up the path.

Acked-by
#2 lore raw
Quoted 10 lines · Willem de Bruijn
Quoted 8 lines · linux@ wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

alloc_ltalkdev in net/appletalk/dev.c is dead since commit 00f3696f7555 ("net: appletalk: remove cops support")

Removing it (and it's helper) leaves dev.c and if_ltalk.h empty; remove them and the Makefile entry.

Quoted 7 lines
Quoted 4 lines

tun.c was including that if_ltalk.h but actually wanted the uapi version for LTALK_ALEN, fix up the path.

Thanks