numam-dpdk/kernel
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
..
freebsd build: remove deprecated Meson functions 2022-02-02 18:46:53 +01:00
linux kni: use dedicated function to set MAC address 2022-06-08 19:17:21 +02:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00