* [PATCH] net: deprecate print_mac
@ 2009-07-15 15:23 Johannes Berg
2009-07-15 18:31 ` David Miller
2009-07-27 2:48 ` David Miller
0 siblings, 2 replies; 5+ messages in thread
From: Johannes Berg @ 2009-07-15 15:23 UTC (permalink / raw)
To: netdev
We've had %pM for long enough now, time to deprecate
print_mac() and remove the __maybe_unused attribute
from DECLARE_MAC_BUF so that variables declared with
that can be found and removed. Otherwise people are
putting in new users of print_mac().
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
On my tree, with three other patches I have submitted
to gianfar, fcoe and wireless, there's now no user of
DECLARE_MAC_BUF() left. I'm open to just killing it
right away, but that seems like a pain to coordinate
and would likely get merge conflicts, so this is much
simpler and then killing it next cycle.
include/linux/if_ether.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- wireless-testing.orig/include/linux/if_ether.h 2009-07-15 17:13:31.000000000 +0200
+++ wireless-testing/include/linux/if_ether.h 2009-07-15 17:13:36.000000000 +0200
@@ -138,10 +138,10 @@ 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);
+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] __maybe_unused
+#define DECLARE_MAC_BUF(var) char var[MAC_BUF_SIZE]
#endif
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: deprecate print_mac
2009-07-15 15:23 [PATCH] net: deprecate print_mac Johannes Berg
@ 2009-07-15 18:31 ` David Miller
2009-07-15 18:35 ` Johannes Berg
2009-07-27 2:48 ` David Miller
1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2009-07-15 18:31 UTC (permalink / raw)
To: johannes; +Cc: netdev
From: Johannes Berg <johannes@sipsolutions.net>
Date: Wed, 15 Jul 2009 17:23:23 +0200
> We've had %pM for long enough now, time to deprecate
> print_mac() and remove the __maybe_unused attribute
> from DECLARE_MAC_BUF so that variables declared with
> that can be found and removed. Otherwise people are
> putting in new users of print_mac().
>
> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
> ---
> On my tree, with three other patches I have submitted
> to gianfar, fcoe and wireless, there's now no user of
> DECLARE_MAC_BUF() left. I'm open to just killing it
> right away, but that seems like a pain to coordinate
> and would likely get merge conflicts, so this is much
> simpler and then killing it next cycle.
I think I'm going to apply this after John's next
wireless merge to me for net-next-2.6
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: deprecate print_mac
2009-07-15 18:31 ` David Miller
@ 2009-07-15 18:35 ` Johannes Berg
2009-07-15 18:40 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2009-07-15 18:35 UTC (permalink / raw)
To: David Miller; +Cc: netdev
[-- Attachment #1: Type: text/plain, Size: 691 bytes --]
On Wed, 2009-07-15 at 11:31 -0700, David Miller wrote:
> From: Johannes Berg <johannes@sipsolutions.net>
> Date: Wed, 15 Jul 2009 17:23:23 +0200
>
> > We've had %pM for long enough now, time to deprecate
> > print_mac() and remove the __maybe_unused attribute
> > from DECLARE_MAC_BUF so that variables declared with
> > that can be found and removed. Otherwise people are
> > putting in new users of print_mac().
> I think I'm going to apply this after John's next
> wireless merge to me for net-next-2.6
Sounds good. There was one more user in fcoe where I've sent the
conversion to the scsi folks, here:
http://marc.info/?l=linux-scsi&m=124767208229782&w=2
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: deprecate print_mac
2009-07-15 18:35 ` Johannes Berg
@ 2009-07-15 18:40 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2009-07-15 18:40 UTC (permalink / raw)
To: johannes; +Cc: netdev
From: Johannes Berg <johannes@sipsolutions.net>
Date: Wed, 15 Jul 2009 20:35:26 +0200
> There was one more user in fcoe where I've sent the
> conversion to the scsi folks, here:
> http://marc.info/?l=linux-scsi&m=124767208229782&w=2
Yep, I noticed that.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: deprecate print_mac
2009-07-15 15:23 [PATCH] net: deprecate print_mac Johannes Berg
2009-07-15 18:31 ` David Miller
@ 2009-07-27 2:48 ` David Miller
1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2009-07-27 2:48 UTC (permalink / raw)
To: johannes; +Cc: netdev
From: Johannes Berg <johannes@sipsolutions.net>
Date: Wed, 15 Jul 2009 17:23:23 +0200
> We've had %pM for long enough now, time to deprecate
> print_mac() and remove the __maybe_unused attribute
> from DECLARE_MAC_BUF so that variables declared with
> that can be found and removed. Otherwise people are
> putting in new users of print_mac().
>
> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Applied.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-27 2:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15 15:23 [PATCH] net: deprecate print_mac Johannes Berg
2009-07-15 18:31 ` David Miller
2009-07-15 18:35 ` Johannes Berg
2009-07-15 18:40 ` David Miller
2009-07-27 2:48 ` David Miller
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).