lkml.org 
[lkml]   [2022]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH bpf] bpf: Add explicit cast to 'void *' for __BPF_DISPATCHER_UPDATE()
From
Date
Hello:

This patch was applied to bpf/bpf.git (master)
by Martin KaFai Lau <martin.lau@kernel.org>:

On Mon, 7 Nov 2022 10:07:11 -0700 you wrote:
> When building with clang:
>
> kernel/bpf/dispatcher.c:126:33: error: pointer type mismatch ('void *' and 'unsigned int (*)(const void *, const struct bpf_insn *, bpf_func_t)' (aka 'unsigned int (*)(const void *, const struct bpf_insn *, unsigned int (*)(const void *, const struct bpf_insn *))')) [-Werror,-Wpointer-type-mismatch]
> __BPF_DISPATCHER_UPDATE(d, new ?: &bpf_dispatcher_nop_func);
> ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
> ./include/linux/bpf.h:1045:54: note: expanded from macro '__BPF_DISPATCHER_UPDATE'
> __static_call_update((_d)->sc_key, (_d)->sc_tramp, (_new))
> ^~~~
> 1 error generated.
>
> [...]

Here is the summary with links:
- [bpf] bpf: Add explicit cast to 'void *' for __BPF_DISPATCHER_UPDATE()
https://git.kernel.org/bpf/bpf/c/a679120edfcf

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


\
 
 \ /
  Last update: 2022-11-08 01:11    [W:0.086 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site