tcp: Add a stub for sk_defer_free_flush()
authorGal Pressman <gal@nvidia.com>
Thu, 20 Jan 2022 12:34:40 +0000 (14:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Jan 2022 04:17:32 +0000 (20:17 -0800)
commit48cec899e357cfb92d022a9c0df6bbe72a7f6951
treed4128929593f5f878f6b8dcbd7c9fa868880b66e
parentcbda1b16687580d5beee38273f6241ae3725960c
tcp: Add a stub for sk_defer_free_flush()

When compiling the kernel with CONFIG_INET disabled, the
sk_defer_free_flush() should be defined as a nop.

This resolves the following compilation error:
  ld: net/core/sock.o: in function `sk_defer_free_flush':
  ./include/net/tcp.h:1378: undefined reference to `__sk_defer_free_flush'

Fixes: 79074a72d335 ("net: Flush deferred skb free on socket destroy")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220120123440.9088-1-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h