diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-21 16:26:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-21 16:26:15 -0500 |
commit | 503b1a529a6b62b31904bab4699752c523cf76b2 (patch) | |
tree | c78d1850e9409295ad720b56ceb0d28efe9d0e39 /drivers/net/bnx2x | |
parent | 4b4f54670859074cf7670cc6fa96fe34a65846d9 (diff) | |
parent | 215faf9c5f6e319e97edea9e178123e07825c14d (diff) |
Merge branch '20101221_static_const' of git://repo.or.cz/linux-2.6/trivial-mods
Diffstat (limited to 'drivers/net/bnx2x')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index bdc3fc26b31..cf54427a8d8 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c | |||
@@ -6208,7 +6208,7 @@ static int bnx2x_func_stop(struct bnx2x *bp) | |||
6208 | * @param cam_offset offset in a CAM to use | 6208 | * @param cam_offset offset in a CAM to use |
6209 | * @param is_bcast is the set MAC a broadcast address (for E1 only) | 6209 | * @param is_bcast is the set MAC a broadcast address (for E1 only) |
6210 | */ | 6210 | */ |
6211 | static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, u8 *mac, | 6211 | static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac, |
6212 | u32 cl_bit_vec, u8 cam_offset, | 6212 | u32 cl_bit_vec, u8 cam_offset, |
6213 | u8 is_bcast) | 6213 | u8 is_bcast) |
6214 | { | 6214 | { |
@@ -6400,7 +6400,9 @@ void bnx2x_set_eth_mac(struct bnx2x *bp, int set) | |||
6400 | 6400 | ||
6401 | if (CHIP_IS_E1(bp)) { | 6401 | if (CHIP_IS_E1(bp)) { |
6402 | /* broadcast MAC */ | 6402 | /* broadcast MAC */ |
6403 | u8 bcast[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; | 6403 | static const u8 bcast[ETH_ALEN] = { |
6404 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff | ||
6405 | }; | ||
6404 | bnx2x_set_mac_addr_gen(bp, set, bcast, 0, cam_offset + 1, 1); | 6406 | bnx2x_set_mac_addr_gen(bp, set, bcast, 0, cam_offset + 1, 1); |
6405 | } | 6407 | } |
6406 | } | 6408 | } |