layerscape: fix felix DSA driver compilation
authorRafał Miłecki <rafal@milecki.pl>
Tue, 3 Jan 2023 07:34:43 +0000 (07:34 +0000)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 3 Jan 2023 10:00:30 +0000 (11:00 +0100)
commitee1eda7c7d51e107999b57b2686bb48c35f38711
tree905f6f95a8921e9290abc6d7ccd898656466f7ac
parentf5646ae0b903028c980d385273bcea6e6703685c
layerscape: fix felix DSA driver compilation

It isn't used at the moment but let's fix it anyway.

This fixes:
  CC      drivers/net/dsa/ocelot/felix.o
drivers/net/dsa/ocelot/felix.c:646:22: error: initialization of 'enum dsa_tag_protocol (*)(struct dsa_switch *, int,  enum dsa_tag_protocol)' from incompatible pointer type 'enum dsa_tag_protocol (*)(struct dsa_switch *, int)' [-Werror=incompatible-pointer-types]
  .get_tag_protocol = felix_get_tag_protocol,
                      ^~~~~~~~~~~~~~~~~~~~~~

for users enabling CONFIG_NET_DSA_MSCC_FELIX.

Fixes: 1f5024aa73fc ("kernel: backport b53/bcm_sf2 changes from v5.6")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/layerscape/patches-5.4/702-net-dsa-felix-update-.get_tag_protocol-CB-to-the-cha.patch [new file with mode: 0644]