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 @@ -206,7 +206,7 @@ static struct bpf_map *dev_map_alloc(union bpf_attr *attr)
206
206
static void dev_map_free (struct bpf_map * map )
207
207
{
208
208
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
209
- int i ;
209
+ u32 i ;
210
210
211
211
/* At this point bpf_prog->aux->refcnt == 0 and this map->refcnt == 0,
212
212
* so the programs (can be more than one that used this map) were
@@ -512,7 +512,7 @@ static int dev_map_delete_elem(struct bpf_map *map, void *key)
512
512
{
513
513
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
514
514
struct bpf_dtab_netdev * old_dev ;
515
- int k = * (u32 * )key ;
515
+ u32 k = * (u32 * )key ;
516
516
517
517
if (k >= map -> max_entries )
518
518
return - EINVAL ;
@@ -535,7 +535,7 @@ static int dev_map_hash_delete_elem(struct bpf_map *map, void *key)
535
535
{
536
536
struct bpf_dtab * dtab = container_of (map , struct bpf_dtab , map );
537
537
struct bpf_dtab_netdev * old_dev ;
538
- int k = * (u32 * )key ;
538
+ u32 k = * (u32 * )key ;
539
539
unsigned long flags ;
540
540
int ret = - ENOENT ;
541
541
You can’t perform that action at this time.
0 commit comments