Repository navigation
Commit 2e80be6
libbpf: Fix compilation warnings for 64-bit printf args
Fix compilation warnings due to __u64 defined differently as `unsigned long`
or `unsigned long long` on different architectures (e.g., ppc64le differs from
x86-64). Also cast one argument to size_t to fix printf warning of similar
nature.
Fixes: eacaaed ("libbpf: Implement enum value-based CO-RE relocations")
Fixes: 50e0946 ("libbpf: Skip well-known ELF sections when iterating ELF")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200827041109.3613090-1-andriin@fb.com1 parent f5493c5 commit 2e80be6
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2823 | 2823 | | |
2824 | 2824 | | |
2825 | 2825 | | |
2826 | | - | |
| 2826 | + | |
| 2827 | + | |
2827 | 2828 | | |
2828 | 2829 | | |
2829 | 2830 | | |
| |||
5244 | 5245 | | |
5245 | 5246 | | |
5246 | 5247 | | |
5247 | | - | |
| 5248 | + | |
| 5249 | + | |
5248 | 5250 | | |
5249 | 5251 | | |
5250 | 5252 | | |
5251 | 5253 | | |
5252 | 5254 | | |
5253 | 5255 | | |
5254 | 5256 | | |
5255 | | - | |
| 5257 | + | |
5256 | 5258 | | |
5257 | 5259 | | |
5258 | 5260 | | |
| |||
0 commit comments