]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Automatically size stat/test string arrays
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Apr 2011 11:05:06 +0000 (11:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2011 00:10:07 +0000 (17:10 -0700)
commit67088ff0857ced3aae0707952074db1f95344087
tree9f8a3c77bbb17b414f51125003d44fb41bc306dd
parent3895231c3d39323c7527dd224044ea7b47250f7b
tg3: Automatically size stat/test string arrays

This patch reimplements the size preprocessor constants of the stats and
ethtool test string arrays.  The size is calculated at compile time
rather than using static constants.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c