Re: [PATCH net-next v2] net: fix sock compilation error under CONFIG_PREEMPT_RT
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-02-28 15:50:03
Also in:
linux-rt-devel, lkml
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-02-28 15:50:03
Also in:
linux-rt-devel, lkml
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski [off-list ref]: On Sat, 28 Feb 2026 19:13:18 +0800 you wrote:
From: Jiayuan Chen <redacted>
When CONFIG_PREEMPT_RT is enabled, __SPIN_LOCK_UNLOCKED() expands to a
brace-enclosed initializer rather than a compound literal, which cannot
be used in assignment expressions. This causes a build failure:
net/core/sock.c:3787:29: error: expected expression before '{' token
3787 | tmp.slock = __SPIN_LOCK_UNLOCKED(tmp.slock);
[...]
Here is the summary with links:
- [net-next,v2] net: fix sock compilation error under CONFIG_PREEMPT_RT
https://git.kernel.org/netdev/net-next/c/58e443b773ef
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html