Re: New sparse warning in net/mac80211/debugfs_sta.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joe Perches <joe@...>
Cc: David Miller <davem@...>, <johannes@...>, <harvey.harrison@...>, <netdev@...>
Date: Tuesday, April 8, 2008 - 6:32 pm

Joe Perches wrote:


No, those cases probably don't matter, if there was a printk
before it can't matter that much. What should be removed is
cases like virtio_net:

static int start_xmit(struct sk_buff *skb, struct net_device *dev) 

{
...
         pr_debug("%s: xmit %p %s\n", dev->name, skb, print_mac(mac, dest));

which adds a unconditional and useless function call in a
performance critical path.

You could probably generate a better starting point than
my codiff somehow, I just redefined print_mac to
"00:00:00:00:00:00", which means it doesn't care whether
its in a printk or a pr_debug() call. Might be quicker
to go through the list manually though.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: New sparse warning in net/mac80211/debugfs_sta.c, Harvey Harrison, (Thu Feb 21, 6:01 am)
Re: New sparse warning in net/mac80211/debugfs_sta.c, David Miller, (Thu Feb 21, 6:05 am)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Patrick McHardy, (Thu Feb 21, 1:45 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Joe Perches, (Thu Feb 21, 1:17 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Johannes Berg, (Thu Feb 21, 6:17 am)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Joe Perches, (Thu Feb 21, 1:54 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Patrick McHardy, (Thu Feb 21, 2:00 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Patrick McHardy, (Thu Feb 21, 2:15 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, David Miller, (Sun Feb 24, 12:02 am)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Patrick McHardy, (Mon Feb 25, 7:47 am)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Joe Perches, (Mon Feb 25, 3:58 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Patrick McHardy, (Tue Apr 8, 4:18 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Joe Perches, (Tue Apr 8, 5:02 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Patrick McHardy, (Tue Apr 8, 5:19 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Joe Perches, (Tue Apr 8, 6:09 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Patrick McHardy, (Tue Apr 8, 6:32 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, David Miller, (Tue Apr 8, 6:30 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Joe Perches, (Tue Apr 8, 6:41 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, David Miller, (Tue Apr 8, 5:16 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Johannes Berg, (Mon Feb 25, 5:53 am)
Re: New sparse warning in net/mac80211/debugfs_sta.c, David Miller, (Mon Feb 25, 3:52 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Johannes Berg, (Mon Feb 25, 3:56 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, David Miller, (Mon Feb 25, 4:12 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Johannes Berg, (Mon Feb 25, 4:05 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, David Miller, (Mon Feb 25, 4:14 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Johannes Berg, (Mon Feb 25, 1:23 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Joe Perches, (Mon Feb 25, 12:53 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Johannes Berg, (Mon Feb 25, 1:29 pm)
Re: New sparse warning in net/mac80211/debugfs_sta.c, Harvey Harrison, (Thu Feb 21, 6:14 am)