Thread (14 messages) 14 messages, 4 authors, 2021-02-24

Re: [PATCH] selftests/bpf: Fix a compiler warning in global func test

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-02-24 16:09:14

Hello:

This patch was applied to bpf/bpf.git (refs/heads/master):

On Tue, 23 Feb 2021 12:22:11 +0400 you wrote:
Add an explicit 'const void *' cast to pass program ctx pointer type into
a global function that expects pointer to structure.

warning: incompatible pointer types
passing 'struct __sk_buff *' to parameter of type 'const struct S *'
[-Wincompatible-pointer-types]
        return foo(skb);
                   ^~~
progs/test_global_func11.c:10:36: note: passing argument to parameter 's' here
__noinline int foo(const struct S *s)
                                   ^

[...]
Here is the summary with links:
  - selftests/bpf: Fix a compiler warning in global func test
    https://git.kernel.org/bpf/bpf/c/c41d81bfbb45

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help