Commit 5ab8cb8
libbpf: fix u64-to-pointer cast on 32-bit arches
It's been reported that (void *)map->map_extra is causing compilation
warnings on 32-bit architectures. It's easy enough to fix this by
casting to long first.
Fixes: 79ff13e ("libbpf: Add support for bpf_arena.")
Reported-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Message-ID: <20240319215143.1279312-1-andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent 7ded842 commit 5ab8cb8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5352 | 5352 | | |
5353 | 5353 | | |
5354 | 5354 | | |
5355 | | - | |
5356 | | - | |
| 5355 | + | |
| 5356 | + | |
5357 | 5357 | | |
5358 | 5358 | | |
5359 | 5359 | | |
| |||
0 commit comments