appletalk: Remove deadcode
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
Quoted 5 lines · linux@ wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
alloc_ltalkdevinnet/appletalk/dev.cis dead since commit00f3696f7555("net: appletalk: remove cops support")
Quoted 7 lines
Removing it (and it's helper) leaves
dev.candif_ltalk.hempty; remove them and theMakefileentry.
tun.cwas including thatif_ltalk.hbut actually wanted the uapi version forLTALK_ALEN, fix up the path.Signed-off-by Dr. David Alan Gilbert <[email protected]>
Jason Wang
Acked-byQuoted 10 lines · Willem de Bruijn
Quoted 8 lines · linux@ wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
alloc_ltalkdevinnet/appletalk/dev.cis dead since commit00f3696f7555("net: appletalk: remove cops support")Removing it (and it's helper) leaves
dev.candif_ltalk.hempty; remove them and theMakefileentry.
Quoted 7 lines
Quoted 4 lines
tun.cwas including thatif_ltalk.hbut actually wanted the uapi version forLTALK_ALEN, fix up the path.Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Willem de Bruijn <[email protected]>
Thanks