Skip to content

Commit ccd663c

Browse files
ColinIanKingdavem330
authored andcommitted
net: dsa: mv88e6xxx: make const read-only array lanes static
Don't populate the const read-only array lanes on the stack, instead make it static. Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3a69ab8 commit ccd663c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/mv88e6xxx/pcs-639x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs,
208208

209209
static int mv88e6390_erratum_3_14(struct mv88e639x_pcs *mpcs)
210210
{
211-
const int lanes[] = { MV88E6390_PORT9_LANE0, MV88E6390_PORT9_LANE1,
211+
static const int lanes[] = { MV88E6390_PORT9_LANE0, MV88E6390_PORT9_LANE1,
212212
MV88E6390_PORT9_LANE2, MV88E6390_PORT9_LANE3,
213213
MV88E6390_PORT10_LANE0, MV88E6390_PORT10_LANE1,
214214
MV88E6390_PORT10_LANE2, MV88E6390_PORT10_LANE3 };

0 commit comments

Comments
 (0)