From: Dmitry V. Levin Date: Tue, 14 Nov 2017 03:30:11 +0000 (+0300) Subject: uapi: fix linux/tls.h userspace compilation error X-Git-Tag: iommu-v4.15-rc3~35^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b9f3eb499d84f8d4adcb2f9212ec655700b28228;p=users%2Fdwmw2%2Flinux.git uapi: fix linux/tls.h userspace compilation error Move inclusion of a private kernel header from uapi/linux/tls.h to its only user - net/tls.h, to fix the following linux/tls.h userspace compilation error: /usr/include/linux/tls.h:41:21: fatal error: net/tcp.h: No such file or directory As to this point uapi/linux/tls.h was totaly unusuable for userspace, cleanup this header file further by moving other redundant includes to net/tls.h. Fixes: 3c4d7559159b ("tls: kernel TLS support") Cc: # v4.13+ Signed-off-by: Dmitry V. Levin Signed-off-by: David S. Miller --- diff --git a/include/net/tls.h b/include/net/tls.h index 70becd0a92996..936cfc5cab7df 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -35,6 +35,10 @@ #define _TLS_OFFLOAD_H #include +#include +#include +#include +#include #include diff --git a/include/uapi/linux/tls.h b/include/uapi/linux/tls.h index d5e0682ab8371..293b2cdad88d9 100644 --- a/include/uapi/linux/tls.h +++ b/include/uapi/linux/tls.h @@ -35,10 +35,6 @@ #define _UAPI_LINUX_TLS_H #include -#include -#include -#include -#include /* TLS socket options */ #define TLS_TX 1 /* Set transmit parameters */