Re: [PATCH] examples/kni: clear warning about discarding const qualifier

2022-05-31 Thread Stephen Hemminger
On Tue, 31 May 2022 09:13:30 + Ke Zhang 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 Agree with other comments, please use eth

Re: [PATCH] examples/kni: clear warning about discarding const qualifier

2022-05-31 Thread Ferruh Yigit
On 5/31/2022 10:12 AM, Bruce Richardson wrote: [CAUTION: External Email] On Tue, May 31, 2022 at 08:13:04AM +, Ke Zhang wrote: The warning info: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type Compulsory type conversion to clear compile warning.

[PATCH] examples/kni: clear warning about discarding const qualifier

2022-05-31 Thread Ke Zhang
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 --- kernel/linux/kni/kni_misc.c | 4 ++-- kernel/linux/kni/kni_net.c | 2 +- 2 files changed, 3 insertions(

Re: [PATCH] examples/kni: clear warning about discarding const qualifier

2022-05-31 Thread Bruce Richardson
On Tue, May 31, 2022 at 08:13:04AM +, Ke Zhang 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 > --- > kernel/linux/kni/kni_misc.c

[PATCH] examples/kni: clear warning about discarding const qualifier

2022-05-31 Thread Ke Zhang
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 --- kernel/linux/kni/kni_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kern