lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091206140828.GA8600@basil.fritz.box>
Date:	Sun, 6 Dec 2009 15:08:28 +0100
From:	Andi Kleen <andi@...stfloor.org>
To:	davem@...emloft.net, netdev@...r.kernel.org
Subject: [PATCH] Remove deprecated print_mac to fix warnings

Remove deprecated and unused print_mac to fix warnings

There seems to be no user in tree of print_mac left. So just remove it.

This eliminates two compiler warnings for every build, because gcc
complains about the deprecated use of the symbol in its EXPORT_SYMBOL.

Signed-off-by: Andi Kleen <ak@...ux.intel.com>

---
 include/linux/if_ether.h |    1 -
 net/ethernet/eth.c       |    7 -------
 2 files changed, 8 deletions(-)

Index: linux-2.6.32-ak/include/linux/if_ether.h
===================================================================
--- linux-2.6.32-ak.orig/include/linux/if_ether.h
+++ linux-2.6.32-ak/include/linux/if_ether.h
@@ -139,7 +139,6 @@ extern ssize_t sysfs_format_mac(char *bu
 /*
  *	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]
Index: linux-2.6.32-ak/net/ethernet/eth.c
===================================================================
--- linux-2.6.32-ak.orig/net/ethernet/eth.c
+++ linux-2.6.32-ak/net/ethernet/eth.c
@@ -393,10 +393,3 @@ ssize_t sysfs_format_mac(char *buf, cons
 	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);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ