Netdev List
 help / color / mirror / Atom feed
From: Marin Mitov <mitov@issp.bas.bg>
To: "David S. Miller" <davem@redhat.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH]remove deprecated and not used: print_mac()
Date: Fri, 13 Nov 2009 19:58:41 +0200	[thread overview]
Message-ID: <200911131958.42263.mitov@issp.bas.bg> (raw)

Hi all,

The function print_mac in net/ethernet/eth.c is marked __deprecated
and not used. Remove it.

The patch is against 2.6.32-rc7.

Signed-off-by: Marin Mitov <mitov@issp.bas.bg>

=====================================================================
--- a/include/linux/if_ether.h	2009-11-13 19:16:15.000000000 +0200
+++ b/include/linux/if_ether.h	2009-11-13 19:18:25.000000000 +0200
@@ -136,10 +136,6 @@
 
 extern ssize_t sysfs_format_mac(char *buf, const unsigned char *addr, int len);
 
-/*
- *	Display a 6 byte device address (MAC) in a readable format.
- */
-extern char *print_mac(char *buf, const unsigned char *addr) __deprecated;
 #define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
 #define MAC_BUF_SIZE	18
 #define DECLARE_MAC_BUF(var) char var[MAC_BUF_SIZE]

--- a/net/ethernet/eth.c	2009-11-13 19:16:30.000000000 +0200
+++ b/net/ethernet/eth.c	2009-11-13 19:20:31.000000000 +0200
@@ -393,10 +393,3 @@
 	return ((ssize_t) l);
 }
 EXPORT_SYMBOL(sysfs_format_mac);
-
-char *print_mac(char *buf, const unsigned char *addr)
-{
-	_format_mac_addr(buf, MAC_BUF_SIZE, addr, ETH_ALEN);
-	return buf;
-}
-EXPORT_SYMBOL(print_mac);

             reply	other threads:[~2009-11-13 17:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-13 17:58 Marin Mitov [this message]
2009-11-16  6:22 ` [PATCH]remove deprecated and not used: print_mac() David 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=200911131958.42263.mitov@issp.bas.bg \
    --to=mitov@issp.bas.bg \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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