diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-01-10 02:17:16 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-12 08:09:10 +0300 |
commit | edcb501e543cecaff5e3d079c798911e680fea65 (patch) | |
tree | 39c22a632bfc6ac61bf042e5b6fee76adfc2429a /drivers/net/phy | |
parent | e110978d6e060a3e633e3e5e427770a66b330d48 (diff) | |
download | linux-edcb501e543cecaff5e3d079c798911e680fea65.tar.xz |
net: phy: at803x: make array offsets static
Don't populate the read-only const array offsets on the stack
but instead make it static. Also makes the object code a little smaller.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220109231716.59012-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/at803x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index dae95d9a07e8..5b6c0d120e09 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -421,7 +421,7 @@ static int at803x_set_wol(struct phy_device *phydev, const u8 *mac; int ret, irq_enabled; unsigned int i; - const unsigned int offsets[] = { + static const unsigned int offsets[] = { AT803X_LOC_MAC_ADDR_32_47_OFFSET, AT803X_LOC_MAC_ADDR_16_31_OFFSET, AT803X_LOC_MAC_ADDR_0_15_OFFSET, |