public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH/RFC] deprecate print_mac
@ 2008-10-25  0:09 Johannes Berg
  2008-10-27 22:49 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2008-10-25  0:09 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Or more precisely, deprecate the variables that DECLARE_MAC_BUF
creates, DECLARE_MAC_BUF is required for print_mac and the latter
uses the created variables.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
I don't think we want this without the bulk of the users removed. And
after that, it should be removed before long anyway.

 include/linux/if_ether.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- everything.orig/include/linux/if_ether.h	2008-10-25 02:02:02.000000000 +0200
+++ everything/include/linux/if_ether.h	2008-10-25 02:05:08.000000000 +0200
@@ -133,12 +133,12 @@ extern struct ctl_table ether_table[];
 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.
+ * Use the %pM printf format specifier instead of this.
  */
 extern char *print_mac(char *buf, const unsigned char *addr);
 #define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
 #define MAC_BUF_SIZE	18
-#define DECLARE_MAC_BUF(var) char var[MAC_BUF_SIZE] __maybe_unused
+#define DECLARE_MAC_BUF(var) char var[MAC_BUF_SIZE] __maybe_unused __deprecated
 
 #endif
 



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

end of thread, other threads:[~2008-10-27 22:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-25  0:09 [PATCH/RFC] deprecate print_mac Johannes Berg
2008-10-27 22:49 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox