numam-dpdk/kernel/linux/kni
Ke Zhang b99bd4a0aa kni: use dedicated function to set MAC address
The warning info:
warning: passing argument 1 of ‘memcpy’ discards ‘const’
qualifier from pointer target type

Variable dev_addr is done const intentionally in v5.17 to prevent using
it directly.  See the following Linux kernel changeset for details:

commit adeef3e32146 ("net: constify netdev->dev_addr")

Used helper function was introduced earlier in v5.15.

Fixes: ea6b39b5b8 ("kni: remove ethtool support")
Cc: stable@dpdk.org

Signed-off-by: Ke Zhang <ke1x.zhang@intel.com>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
2022-06-08 19:17:21 +02:00
..
compat.h kni: use dedicated function to set MAC address 2022-06-08 19:17:21 +02:00
Kbuild kni: remove ethtool support 2019-05-29 23:38:45 +02:00
kni_dev.h kni: allow configuring thread granularity 2022-02-02 20:45:18 +01:00
kni_fifo.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
kni_misc.c kni: use dedicated function to set MAC address 2022-06-08 19:17:21 +02:00
kni_net.c kni: use dedicated function to set MAC address 2022-06-08 19:17:21 +02:00
meson.build build: remove deprecated Meson functions 2022-02-02 18:46:53 +01:00