net: dsa: mv88e6xxx: make const read-only array lanes static
Subsystems (5)
PATCH 1/1 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]>
--- drivers/net/dsa/mv88e6xxx/pcs-639x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/mv88e6xxx/pcs-639x.c +1 -1
@@ -208,7 +208,7 @@ static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs,static int mv88e6390_erratum_3_14 (struct mv88e639x_pcs *mpcs) { -const int lanes[] = {MV88E6390_PORT9_LANE0 ,MV88E6390_PORT9_LANE1 , +static const int lanes[] = {MV88E6390_PORT9_LANE0 ,MV88E6390_PORT9_LANE1 ,MV88E6390_PORT9_LANE2 ,MV88E6390_PORT9_LANE3 ,MV88E6390_PORT10_LANE0 ,MV88E6390_PORT10_LANE1 ,MV88E6390_PORT10_LANE2 ,MV88E6390_PORT10_LANE3 };
Signature · 1 line
2.39.2
Quoted 4 lines · Colin Ian King
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]>
Andrew
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 7 lines · On Tue, 19 Sep 2023 10:40:21 +0100 you wrote:
Don't populate the const read-only array lanes on the stack, instead make it static.
Signed-off-by Colin Ian King <[email protected]>--- drivers/net/dsa/mv88e6xxx/pcs-639x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [next] net: dsa: mv88e6xxx: make const read-only array lanes static
https://git.kernel.org/netdev/net-next/c/ccd663caffc7
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html