openwrt/target/linux/ramips
Mieczyslaw Nalewaj cc4d01cd60 ramips: 6.1: ralink: fix ethernet driver with 6.1
Fixes errors in the form of:
  make[9]: Entering directory '/home/nick/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.1.77'
    CC      drivers/net/ethernet/ralink/mtk_eth_soc.o
  drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_init':
  drivers/net/ethernet/ralink/mtk_eth_soc.c:1368:51: warning: passing argument 2 of 'of_get_mac_address' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   1368 |         of_get_mac_address(priv->dev->of_node, dev->dev_addr);
        |                                                ~~~^~~~~~~~~~
  In file included from drivers/net/ethernet/ralink/mtk_eth_soc.c:26:
  ./include/linux/of_net.h:16:59: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
     16 | extern int of_get_mac_address(struct device_node *np, u8 *mac);
        |                                                       ~~~~^~~
  drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_probe':
  drivers/net/ethernet/ralink/mtk_eth_soc.c:1641:9: error: too many arguments to function 'netif_napi_add'
   1641 |         netif_napi_add(netdev, &priv->rx_napi, fe_poll, napi_weight);
        |         ^~~~~~~~~~~~~~
  In file included from ./include/linux/etherdevice.h:21,
                   from drivers/net/ethernet/ralink/mtk_eth_soc.c:21:
  ./include/linux/netdevice.h:2611:1: note: declared here
   2611 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
        | ^~~~~~~~~~~~~~

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
[split commit and rewrite commit message]
Signed-off-by: Nick Hainke <vincent@systemli.org>
2024-02-10 13:06:05 +01:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: fix dts error in LED color/function conversion 2024-02-08 00:01:22 +01:00
files/drivers ramips: 6.1: ralink: fix ethernet driver with 6.1 2024-02-10 13:06:05 +01:00
image ramips: mt76x8: add support for TP-Link RE365 v1 2024-01-10 20:56:06 +01:00
mt76x8 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
mt7620 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
mt7621 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
patches-5.15 kernel: bump 5.15 to 5.15.148 2024-02-01 21:36:00 +01:00
patches-6.1 ramips: 6.1: spi: fix patch by replacing cs_gpio with cs_gpiod 2024-02-10 13:06:05 +01:00
rt288x ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
rt305x ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
rt3883 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
Makefile ramips: Switch default kernel to 5.15 2023-02-17 16:31:53 +02:00
modules.mk ramips: 6.1: mt7621-dma: add hsdma driver to files 2024-02-10 13:06:05 +01:00