From: Heiner Kallweit Date: Wed, 5 Nov 2025 22:09:17 +0000 (+0100) Subject: net: phy: fixed_phy: shrink size of struct fixed_phy_status X-Git-Tag: v6.19-rc1~170^2~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f73e0f46bbfab29b111ff52d047f15aa13623972;p=thirdparty%2Flinux.git net: phy: fixed_phy: shrink size of struct fixed_phy_status All three members are effectively of type bool, so make this explicit and shrink size of struct fixed_phy_status. Signed-off-by: Heiner Kallweit Link: https://patch.msgid.link/9eca3d7e-fa64-4724-8fdc-f2c1a8f2ae8f@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c index d498d8a9bba6f..9bd6937411e43 100644 --- a/drivers/net/phy/fixed_phy.c +++ b/drivers/net/phy/fixed_phy.c @@ -224,7 +224,7 @@ EXPORT_SYMBOL_GPL(fixed_phy_register); struct phy_device *fixed_phy_register_100fd(void) { static const struct fixed_phy_status status = { - .link = 1, + .link = true, .speed = SPEED_100, .duplex = DUPLEX_FULL, }; diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h index 8bade999831c8..436bff20f324f 100644 --- a/include/linux/phy_fixed.h +++ b/include/linux/phy_fixed.h @@ -5,11 +5,11 @@ #include struct fixed_phy_status { - int link; int speed; int duplex; - int pause; - int asym_pause; + bool link:1; + bool pause:1; + bool asym_pause:1; }; struct device_node;