[PATCH] examples/kni: clear warning about discarding const qualifier
Stephen Hemminger
stephen at networkplumber.org
Tue May 31 16:55:34 CEST 2022
On Tue, 31 May 2022 09:13:30 +0000
Ke Zhang <ke1x.zhang at intel.com> wrote:
> The warning info:
> warning: passing argument 1 of ‘memcpy’ discards ‘const’
> qualifier from pointer target type
>
> Compulsory type conversion to clear compile warning.
>
> Signed-off-by: Ke Zhang <ke1x.zhang at intel.com>
Agree with other comments, please use eth_hw_addr_set()
and eth_hw_addr_random() helpers.
More information about the dev
mailing list