aboutsummaryrefslogtreecommitdiffstats
path: root/package/devel/binutils/patches/001-replace-attribute_const.patch
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2024-02-08 14:48:50 +0100
committerNick Hainke <vincent@systemli.org>2024-02-10 13:06:05 +0100
commit31c4fc7414a6c01a4a8341692f1ee181bf10b436 (patch)
tree573867ad7c6d3eb4ddb2fa54bea0890710f7c62d /package/devel/binutils/patches/001-replace-attribute_const.patch
parenteeeb0b53494ec08da8b5c746890158834b5ff263 (diff)
downloadupstream-31c4fc7414a6c01a4a8341692f1ee181bf10b436.tar.gz
upstream-31c4fc7414a6c01a4a8341692f1ee181bf10b436.tar.bz2
upstream-31c4fc7414a6c01a4a8341692f1ee181bf10b436.zip
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>
Diffstat (limited to 'package/devel/binutils/patches/001-replace-attribute_const.patch')
0 files changed, 0 insertions, 0 deletions