Re: [PATCH net-next v2] net: fix sock compilation error under CONFIG_PREEMPT_RT

From: patchwork-bot+netdevbpf

Date: Sat Feb 28 2026 - 11:03:02 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Sat, 28 Feb 2026 19:13:18 +0800 you wrote:
> From: Jiayuan Chen <jiayuan.chen@xxxxxxxxxx>
>
> 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