All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: davem@davemloft.net
Cc: netdev@oss.sgi.com, linux-kernel@vger.kernel.org
Subject: [2.6 patch] net/802/fc.c: #if 0 fc_type_trans
Date: Sun, 6 Mar 2005 21:57:54 +0100	[thread overview]
Message-ID: <20050306205754.GO5070@stusta.de> (raw)

The only user of fc_type_trans (drivers/net/fc/iph5526.c) is BROKEN in 
2.6 and removed in -mm.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 include/linux/fcdevice.h |    2 --
 net/802/fc.c             |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.11-mm1-full/include/linux/fcdevice.h.old	2005-03-06 21:40:36.000000000 +0100
+++ linux-2.6.11-mm1-full/include/linux/fcdevice.h	2005-03-06 21:41:07.000000000 +0100
@@ -24,12 +24,10 @@
 #define _LINUX_FCDEVICE_H
 
 
 #include <linux/if_fc.h>
 
 #ifdef __KERNEL__
-extern unsigned short	fc_type_trans(struct sk_buff *skb, struct net_device *dev); 
-
 extern struct net_device *alloc_fcdev(int sizeof_priv);
 #endif
 
 #endif	/* _LINUX_FCDEVICE_H */
--- linux-2.6.11-mm1-full/net/802/fc.c.old	2005-03-06 21:41:12.000000000 +0100
+++ linux-2.6.11-mm1-full/net/802/fc.c	2005-03-06 21:41:35.000000000 +0100
@@ -94,12 +94,13 @@
 	return arp_find(fch->daddr, skb);
 #else
 	return 0;
 #endif
 }
 
+#if 0
 unsigned short
 fc_type_trans(struct sk_buff *skb, struct net_device *dev)
 {
 	struct fch_hdr *fch = (struct fch_hdr *)skb->data;
 	struct fcllc *fcllc;
 
@@ -127,12 +128,13 @@
 		skb_pull(skb, sizeof (struct fcllc));
 		return fcllc->ethertype;
 	}
 
 	return ntohs(ETH_P_802_2);
 }
+#endif  /*  0  */
 
 static void fc_setup(struct net_device *dev)
 {
 	dev->hard_header	= fc_header;
 	dev->rebuild_header	= fc_rebuild_header;
                 


             reply	other threads:[~2005-03-06 20:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-06 20:57 Adrian Bunk [this message]
2005-03-15  5:49 ` [2.6 patch] net/802/fc.c: #if 0 fc_type_trans David S. Miller
2005-03-15 12:20   ` [2.6 patch] net/802/fc.c: remove fc_type_trans Adrian Bunk
2005-03-15 18:26     ` David S. Miller

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=20050306205754.GO5070@stusta.de \
    --to=bunk@stusta.de \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.