layerscape: port "-Werror" fix from NXP tree
authorPawel Dembicki <paweldembicki@gmail.com>
Thu, 19 Oct 2023 10:07:03 +0000 (12:07 +0200)
committerPawel Dembicki <paweldembicki@gmail.com>
Thu, 19 Oct 2023 10:12:02 +0000 (12:12 +0200)
commitf54b752764ee92062afc39def1f0138a68ba3872
tree900e1c9f69781d59c19d5332ace6367f41cd42d7
parent8d95482ca5947e3a2eb252fc384f8b2e2dc1180c
layerscape: port "-Werror" fix from NXP tree

At this moment, 702-phy-Add-2.5G-SGMII-interface-mode.patch cause error
durring kernel compilation:

  CC      drivers/net/phy/phylink.o
drivers/net/phy/phylink.c: In function 'phylink_get_capabilities':
drivers/net/phy/phylink.c:443:9: error: enumeration value 'PHY_INTERFACE_MODE_2500SGMII' not handled in switch [-Werror=switch]
  443 |         switch (interface) {
      |         ^~~~~~
cc1: all warnings being treated as errors

NXP take care of it. Let's port their patch.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
target/linux/layerscape/patches-6.1/704-net-phylink-treat-PHY_INTERFACE_MODE_2500SGMII-in-ph.patch [new file with mode: 0644]