From: Magnus Karlsson <hidden> Date: 2021-09-29 06:14:34
From: Magnus Karlsson <magnus.karlsson@intel.com>
Fix a build error with clang in __xp_alloc().
net/xdp/xsk_buff_pool.c:465:15: error: variable 'xskb' is uninitialized
when used here [-Werror,-Wuninitialized]
xp_release(xskb);
^~~~
This is correctly detected by clang, but not gcc. In fact, the
xp_release() statement should not be there at all in the refactored
code, so just remove it.
Fixes: 94033cd8e73b ("xsk: Optimize for aligned case")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
---
net/xdp/xsk_buff_pool.c | 1 -
1 file changed, 1 deletion(-)
From: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Date: 2021-09-29 10:13:37
On Wed, Sep 29, 2021 at 08:14:03AM +0200, Magnus Karlsson wrote:
From: Magnus Karlsson <magnus.karlsson@intel.com>
Fix a build error with clang in __xp_alloc().
net/xdp/xsk_buff_pool.c:465:15: error: variable 'xskb' is uninitialized
when used here [-Werror,-Wuninitialized]
xp_release(xskb);
^~~~
This is correctly detected by clang, but not gcc. In fact, the
xp_release() statement should not be there at all in the refactored
code, so just remove it.
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Hello:
This patch was applied to bpf/bpf-next.git (refs/heads/master):
On Wed, 29 Sep 2021 08:14:03 +0200 you wrote:
From: Magnus Karlsson <magnus.karlsson@intel.com>
Fix a build error with clang in __xp_alloc().
net/xdp/xsk_buff_pool.c:465:15: error: variable 'xskb' is uninitialized
when used here [-Werror,-Wuninitialized]
xp_release(xskb);
^~~~
[...]