openwrt-6.x/target/linux/ramips
Nick Hainke 31c4fc7414 ramips: 6.1: ralink: fix const warning in the ethernet driver
Change fe_hw_set_macaddr and the set_mac parameter to const to fix
errors in the form of:

   drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_set_mac_address':
  drivers/net/ethernet/ralink/mtk_eth_soc.c:174:53: error: passing argument 2 of 'priv->soc->set_mac' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
    174 |                         priv->soc->set_mac(priv, dev->dev_addr);
        |                                                  ~~~^~~~~~~~~~
  drivers/net/ethernet/ralink/mtk_eth_soc.c:174:53: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
  drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_hw_init':
  drivers/net/ethernet/ralink/mtk_eth_soc.c:1220:45: error: passing argument 2 of 'priv->soc->set_mac' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
   1220 |                 priv->soc->set_mac(priv, dev->dev_addr);
        |                                          ~~~^~~~~~~~~~
  drivers/net/ethernet/ralink/mtk_eth_soc.c:1220:45: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
  drivers/net/ethernet/ralink/mtk_eth_soc.c:1222:44: error: passing argument 2 of 'fe_hw_set_macaddr' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
   1222 |                 fe_hw_set_macaddr(priv, dev->dev_addr);
        |                                         ~~~^~~~~~~~~~
  drivers/net/ethernet/ralink/mtk_eth_soc.c:155:75: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
    155 | static inline void fe_hw_set_macaddr(struct fe_priv *priv, unsigned char *mac)
        |                                                            ~~~~~~~~~~~~~~~^~~
  cc1: all warnings being treated as errors

Signed-off-by: Nick Hainke <vincent@systemli.org>
2024-02-10 13:06:05 +01:00
..
base-files/etc
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 const warning in the ethernet driver 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: pwm: rewrite mtk_pwm_ops to fix pwm driver 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