netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove deprecated print_mac to fix warnings
@ 2009-12-06 14:08 Andi Kleen
  2009-12-06 18:10 ` Joe Perches
  2009-12-06 19:17 ` David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: Andi Kleen @ 2009-12-06 14:08 UTC (permalink / raw)
  To: davem, netdev

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@linux.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);

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Remove deprecated print_mac to fix warnings
  2009-12-06 14:08 [PATCH] Remove deprecated print_mac to fix warnings Andi Kleen
@ 2009-12-06 18:10 ` Joe Perches
  2009-12-06 19:17 ` David Miller
  1 sibling, 0 replies; 6+ messages in thread
From: Joe Perches @ 2009-12-06 18:10 UTC (permalink / raw)
  To: Andi Kleen; +Cc: davem, netdev

On Sun, 2009-12-06 at 15:08 +0100, Andi Kleen wrote:
> Remove deprecated and unused print_mac to fix warnings
[]
> --- 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]

#define MAC_BUF_SIZE and #define DECLARE_MAC_BUF
should be removed as well.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Remove deprecated print_mac to fix warnings
  2009-12-06 14:08 [PATCH] Remove deprecated print_mac to fix warnings Andi Kleen
  2009-12-06 18:10 ` Joe Perches
@ 2009-12-06 19:17 ` David Miller
  2009-12-06 19:19   ` Andi Kleen
  1 sibling, 1 reply; 6+ messages in thread
From: David Miller @ 2009-12-06 19:17 UTC (permalink / raw)
  To: andi; +Cc: netdev

From: Andi Kleen <andi@firstfloor.org>
Date: Sun, 6 Dec 2009 15:08:28 +0100

> 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@linux.intel.com>

davem@sunset:~/src/GIT/net-next-2.6$ git grep print_mac
davem@sunset:~/src/GIT/net-next-2.6$ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Remove deprecated print_mac to fix warnings
  2009-12-06 19:17 ` David Miller
@ 2009-12-06 19:19   ` Andi Kleen
  2009-12-06 19:30     ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Andi Kleen @ 2009-12-06 19:19 UTC (permalink / raw)
  To: David Miller; +Cc: andi, netdev

On Sun, Dec 06, 2009 at 11:17:39AM -0800, David Miller wrote:
> From: Andi Kleen <andi@firstfloor.org>
> Date: Sun, 6 Dec 2009 15:08:28 +0100
> 
> > 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@linux.intel.com>
> 
> davem@sunset:~/src/GIT/net-next-2.6$ git grep print_mac
> davem@sunset:~/src/GIT/net-next-2.6$ 

Great. I grepped in linux-next, but perhaps I raced with you.

But could that please be fixed in a 2.6.32 stable too? the warnings 
on every build are annoying.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Remove deprecated print_mac to fix warnings
  2009-12-06 19:19   ` Andi Kleen
@ 2009-12-06 19:30     ` David Miller
  2009-12-06 19:39       ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2009-12-06 19:30 UTC (permalink / raw)
  To: andi; +Cc: netdev

From: Andi Kleen <andi@firstfloor.org>
Date: Sun, 6 Dec 2009 20:19:26 +0100

> On Sun, Dec 06, 2009 at 11:17:39AM -0800, David Miller wrote:
>> From: Andi Kleen <andi@firstfloor.org>
>> Date: Sun, 6 Dec 2009 15:08:28 +0100
>> 
>> > 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@linux.intel.com>
>> 
>> davem@sunset:~/src/GIT/net-next-2.6$ git grep print_mac
>> davem@sunset:~/src/GIT/net-next-2.6$ 
> 
> Great. I grepped in linux-next, but perhaps I raced with you.

It's been removed in net-next-2.6 for weeks.

> But could that please be fixed in a 2.6.32 stable too? the warnings 
> on every build are annoying.

Sorry, no.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Remove deprecated print_mac to fix warnings
  2009-12-06 19:30     ` David Miller
@ 2009-12-06 19:39       ` Andi Kleen
  0 siblings, 0 replies; 6+ messages in thread
From: Andi Kleen @ 2009-12-06 19:39 UTC (permalink / raw)
  To: David Miller; +Cc: andi, netdev

> > But could that please be fixed in a 2.6.32 stable too? the warnings 
> > on every build are annoying.
> 
> Sorry, no.

Thanks. I'll remember that on every build.

-Andi

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-06 19:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-06 14:08 [PATCH] Remove deprecated print_mac to fix warnings Andi Kleen
2009-12-06 18:10 ` Joe Perches
2009-12-06 19:17 ` David Miller
2009-12-06 19:19   ` Andi Kleen
2009-12-06 19:30     ` David Miller
2009-12-06 19:39       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).