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 @@ -180,7 +180,7 @@ static struct bpf_map *dev_map_alloc(union bpf_attr *attr)
180
180
static void dev_map_free (struct bpf_map * map )
181
181
{
182
182
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
183
- int i ;
183
+ u32 i ;
184
184
185
185
/* At this point bpf_prog->aux->refcnt == 0 and this map->refcnt == 0,
186
186
* so the programs (can be more than one that used this map) were
@@ -813,7 +813,7 @@ static long dev_map_delete_elem(struct bpf_map *map, void *key)
813
813
{
814
814
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
815
815
struct bpf_dtab_netdev * old_dev ;
816
- int k = * (u32 * )key ;
816
+ u32 k = * (u32 * )key ;
817
817
818
818
if (k >= map -> max_entries )
819
819
return - EINVAL ;
@@ -830,7 +830,7 @@ static long dev_map_hash_delete_elem(struct bpf_map *map, void *key)
830
830
{
831
831
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
832
832
struct bpf_dtab_netdev * old_dev ;
833
- int k = * (u32 * )key ;
833
+ u32 k = * (u32 * )key ;
834
834
unsigned long flags ;
835
835
int ret = - ENOENT ;
836
836
You can’t perform that action at this time.
0 commit comments