* [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
* Re: [PATCH/RFC] deprecate print_mac
2008-10-25 0:09 [PATCH/RFC] deprecate print_mac Johannes Berg
@ 2008-10-27 22:49 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-10-27 22:49 UTC (permalink / raw)
To: johannes; +Cc: netdev
From: Johannes Berg <johannes@sipsolutions.net>
Date: Sat, 25 Oct 2008 02:09:55 +0200
> 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.
I've decided not to apply this one. Anyone who wants to help get rid
of this can run grep, otherwise it's just compile noise that doesn't
really help but does annoy. :-)
^ 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