net: stream: fix TCP references when INET is not enabled
Subsystems (3)
PATCH 1/1 net: stream: fix TCP references when INET is not enabled
Fix build of net/core/stream.o when CONFIG_INET is not enabled. Fixes these build errors (sample):
ld: net/core/stream.o: in function `sk_stream_write_space':
(.text+0x27e): undefined reference to `tcp_stream_memory_free'
ld: (.text+0x29c): undefined reference to `tcp_stream_memory_free'
ld: (.text+0x2ab): undefined reference to `tcp_stream_memory_free'
ld: net/core/stream.o: in function `sk_stream_wait_memory':
(.text+0x5a1): undefined reference to `tcp_stream_memory_free'
ld: (.text+0x5bf): undefined reference to `tcp_stream_memory_free'
--- include/net/sock.h | 5 +++++ 1 file changed, 5 insertions(+)
include/net/sock.h +5 -0
@@ -1271,10 +1271,15 @@ static inline bool __sk_stream_memory_frif (READ_ONCE (sk->sk_wmem_queued) >=READ_ONCE (sk->sk_sndbuf))return false; +#ifdef CONFIG_INET return sk->sk_prot->stream_memory_free ?INDIRECT_CALL_1 (sk->sk_prot->stream_memory_free, tcp_stream_memory_free, sk, wake) : true; +#else +return sk->sk_prot->stream_memory_free ? + sk->sk_prot->stream_memory_free (sk, wake) : true; +#endif }static inline bool sk_stream_memory_free (const struct sock *sk)
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 11 lines · On Wed, 18 Nov 2020 11:44:38 -0800 you wrote:
Fix build of
net/core/stream.owhenCONFIG_INETis not enabled. Fixes these build errors (sample):ld:
net/core/stream.o: in function `sk_stream_write_space':
(.text+0x27e): undefined reference to `tcp_stream_memory_free'
ld: (.text+0x29c): undefined reference to `tcp_stream_memory_free'
ld: (.text+0x2ab): undefined reference to `tcp_stream_memory_free'
ld:net/core/stream.o: in function `sk_stream_wait_memory':
(.text+0x5a1): undefined reference to `tcp_stream_memory_free'
ld: (.text+0x5bf): undefined reference to `tcp_stream_memory_free'
Quoted 1 line
[...]
Here is the summary with links:
- [net-next] net: stream: fix TCP references when INET is not enabled
https://git.kernel.org/netdev/net-next/c/fc9840fbef0c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html