lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <0890f92e-a03d-4aa7-8bc8-94123d253f22@gmail.com> Date: Tue, 10 Jun 2025 22:58:15 +0200 From: Heiner Kallweit <hkallweit1@...il.com> To: Thangaraj Samynathan <Thangaraj.S@...rochip.com>, Rengarajan Sundararajan <Rengarajan.S@...rochip.com>, Microchip Linux Driver Support <UNGLinuxDriver@...rochip.com>, Andrew Lunn <andrew+netdev@...n.ch>, Paolo Abeni <pabeni@...hat.com>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, David Miller <davem@...emloft.net> Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>, Linux USB Mailing List <linux-usb@...r.kernel.org> Subject: [PATCH v2 net-next] net: usb: lan78xx: make struct fphy_status static const Constify variable fphy_status and make it static. Signed-off-by: Heiner Kallweit <hkallweit1@...il.com> --- v2: - extend commit message --- drivers/net/usb/lan78xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 759dab980..17c23eada 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2630,7 +2630,7 @@ static int lan78xx_configure_flowcontrol(struct lan78xx_net *dev, */ static struct phy_device *lan78xx_register_fixed_phy(struct lan78xx_net *dev) { - struct fixed_phy_status fphy_status = { + static const struct fixed_phy_status fphy_status = { .link = 1, .speed = SPEED_1000, .duplex = DUPLEX_FULL, -- 2.49.0
Powered by blists - more mailing lists