aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/static_linked.c
diff options
context:
space:
mode:
authorHailong Liu <[email protected]>2021-05-11 14:04:29 +0000
committerAndrii Nakryiko <[email protected]>2021-05-12 19:29:43 +0000
commit0303ce17347a02863c4ddef9777a42ff0315acb6 (patch)
treeac07054188b6d51d6d18fd17241de1e3ba512e03 /tools/testing/selftests/bpf/prog_tests/static_linked.c
parentlibbpf: Treat STV_INTERNAL same as STV_HIDDEN for functions (diff)
downloadkernel-0303ce17347a02863c4ddef9777a42ff0315acb6.tar.gz
kernel-0303ce17347a02863c4ddef9777a42ff0315acb6.zip
samples, bpf: Suppress compiler warning
While cross compiling on ARM32 , the casting from pointer to __u64 will cause warnings: samples/bpf/task_fd_query_user.c: In function 'main': samples/bpf/task_fd_query_user.c:399:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 399 | uprobe_file_offset = (__u64)main - (__u64)&__executable_start; | ^ samples/bpf/task_fd_query_user.c:399:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 399 | uprobe_file_offset = (__u64)main - (__u64)&__executable_start; Workaround this by using "unsigned long" to adapt to different ARCHs. Signed-off-by: Hailong Liu <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/static_linked.c')
0 files changed, 0 insertions, 0 deletions