[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071113.205227.185844387.davem@davemloft.net>
Date: Tue, 13 Nov 2007 20:52:27 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: auke-jan.h.kok@...el.com
Cc: jeff@...zik.org, netdev@...r.kernel.org, jesse.brandeburg@...el.com
Subject: Re: [PATCH 3/6] e1000: convert regtest macro's to functions
From: Auke Kok <auke-jan.h.kok@...el.com>
Date: Tue, 13 Nov 2007 15:11:23 -0800
> Minimal macro to function conversion in e1000_ethtool.c
>
> Adds functions reg_pattern_test and reg_set_and_check
> Changes REG_PATTERN_TEST and REG_SET_AND_CHECK macros
> to call these functions.
>
> Saves ~2.5KB
>
> Compiled x86, untested (no hardware)
>
> old:
>
> $ size drivers/net/e1000/e1000_ethtool.o
> text data bss dec hex filename
> 16778 0 0 16778 418a drivers/net/e1000/e1000_ethtool.o
>
> new:
>
> $ size drivers/net/e1000/e1000_ethtool.o
> text data bss dec hex filename
> 14128 0 0 14128 3730 drivers/net/e1000/e1000_ethtool.o
>
> Signed-off-by: Joe Perches <joe@...ches.com>
> Signed-off-by: Auke Kok <auke-jan.h.kok@...el.com>
Definitely this looks nicer :-)
Applied to netdev-2.6, thanks!
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists