File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ static struct bpf_map *dev_map_alloc(union bpf_attr *attr)
195
195
static void dev_map_free (struct bpf_map * map )
196
196
{
197
197
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
198
- int i ;
198
+ u32 i ;
199
199
200
200
/* At this point bpf_prog->aux->refcnt == 0 and this map->refcnt == 0,
201
201
* so the programs (can be more than one that used this map) were
@@ -554,7 +554,7 @@ static int dev_map_delete_elem(struct bpf_map *map, void *key)
554
554
{
555
555
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
556
556
struct bpf_dtab_netdev * old_dev ;
557
- int k = * (u32 * )key ;
557
+ u32 k = * (u32 * )key ;
558
558
559
559
if (k >= map -> max_entries )
560
560
return - EINVAL ;
@@ -576,7 +576,7 @@ static int dev_map_hash_delete_elem(struct bpf_map *map, void *key)
576
576
{
577
577
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
578
578
struct bpf_dtab_netdev * old_dev ;
579
- int k = * (u32 * )key ;
579
+ u32 k = * (u32 * )key ;
580
580
unsigned long flags ;
581
581
int ret = - ENOENT ;
582
582
You can’t perform that action at this time.
0 commit comments