Re: [PATCH] xdp: fix type of string pointer in __XDP_ACT_SYM_TAB

2019-10-22 Thread Daniel Borkmann
On Tue, Oct 22, 2019 at 01:59:25PM +0100, Ben Dooks (Codethink) wrote: > The table entry in __XDP_ACT_SYM_TAB for the last item is set > to { -1, 0 } where it should be { -1, NULL } as the second item > is a pointer to a string. > > Fixes the following sparse warnings: > >

Re: [PATCH] xdp: fix type of string pointer in __XDP_ACT_SYM_TAB

2019-10-22 Thread Andrii Nakryiko
On Tue, Oct 22, 2019 at 6:51 AM Ben Dooks (Codethink) wrote: > > The table entry in __XDP_ACT_SYM_TAB for the last item is set > to { -1, 0 } where it should be { -1, NULL } as the second item > is a pointer to a string. > > Fixes the following sparse warnings: > >

[PATCH] xdp: fix type of string pointer in __XDP_ACT_SYM_TAB

2019-10-22 Thread Ben Dooks (Codethink)
The table entry in __XDP_ACT_SYM_TAB for the last item is set to { -1, 0 } where it should be { -1, NULL } as the second item is a pointer to a string. Fixes the following sparse warnings: ./include/trace/events/xdp.h:28:1: warning: Using plain integer as NULL pointer