File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ static struct bpf_map *dev_map_alloc(union bpf_attr *attr)
184
184
static void dev_map_free (struct bpf_map * map )
185
185
{
186
186
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
187
- int i ;
187
+ u32 i ;
188
188
189
189
/* At this point bpf_prog->aux->refcnt == 0 and this map->refcnt == 0,
190
190
* so the programs (can be more than one that used this map) were
@@ -821,7 +821,7 @@ static long dev_map_delete_elem(struct bpf_map *map, void *key)
821
821
{
822
822
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
823
823
struct bpf_dtab_netdev * old_dev ;
824
- int k = * (u32 * )key ;
824
+ u32 k = * (u32 * )key ;
825
825
826
826
if (k >= map -> max_entries )
827
827
return - EINVAL ;
@@ -838,7 +838,7 @@ static long dev_map_hash_delete_elem(struct bpf_map *map, void *key)
838
838
{
839
839
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
840
840
struct bpf_dtab_netdev * old_dev ;
841
- int k = * (u32 * )key ;
841
+ u32 k = * (u32 * )key ;
842
842
unsigned long flags ;
843
843
int ret = - ENOENT ;
844
844
You can’t perform that action at this time.
0 commit comments