diff options
author | Hailong Liu <liu.hailong6@zte.com.cn> | 2021-05-11 22:04:29 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-05-12 12:29:43 -0700 |
commit | 0303ce17347a02863c4ddef9777a42ff0315acb6 (patch) | |
tree | ac07054188b6d51d6d18fd17241de1e3ba512e03 /.gitattributes | |
parent | e5670fa0293b05e8e24dae7d18481aba281cb85d (diff) | |
download | linux-0303ce17347a02863c4ddef9777a42ff0315acb6.tar.bz2 |
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 <liu.hailong6@zte.com.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210511140429.89426-1-liuhailongg6@163.com
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions