realtek: 5.15: fix compilation warning with PHY_INTERFACE_MODE_HSGMII
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 May 2023 23:37:48 +0000 (01:37 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:39 +0000 (03:15 +0200)
commit7fa7cbc0b9fcc34bd0d4710664dcdadc723854c6
tree2bbeb31ab76d224ce0228c1ec480a332d9b0aaf0
parentda2f5e8776da6ca7ca5ae9646243dc0f04ce24b9
realtek: 5.15: fix compilation warning with PHY_INTERFACE_MODE_HSGMII

PHY_INTERFACE_MODE_HSGMII was not handled in phylink_get_linkmodes and
phylink_parse_mode.
Fix compilation warning by adding it in the enum:
drivers/net/phy/phylink.c: In function 'phylink_get_linkmodes':
drivers/net/phy/phylink.c:360:9: error: enumeration value 'PHY_INTERFACE_MODE_HSGMII' not handled in switch [-Werror=switch]
  360 |         switch (interface) {
      |         ^~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/realtek/patches-5.15/704-include-linux-add-phy-hsgmii-mode.patch