Skip to content

Commit b9f3eb4

Browse files
ldv-altdavem330
authored andcommitted
uapi: fix linux/tls.h userspace compilation error
Move inclusion of a private kernel header <net/tcp.h> 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: 3c4d755 ("tls: kernel TLS support") Cc: <stable@vger.kernel.org> # v4.13+ Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bb1b40c commit b9f3eb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/net/tls.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
#define _TLS_OFFLOAD_H
3636

3737
#include <linux/types.h>
38+
#include <asm/byteorder.h>
39+
#include <linux/socket.h>
40+
#include <linux/tcp.h>
41+
#include <net/tcp.h>
3842

3943
#include <uapi/linux/tls.h>
4044

include/uapi/linux/tls.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
#define _UAPI_LINUX_TLS_H
3636

3737
#include <linux/types.h>
38-
#include <asm/byteorder.h>
39-
#include <linux/socket.h>
40-
#include <linux/tcp.h>
41-
#include <net/tcp.h>
4238

4339
/* TLS socket options */
4440
#define TLS_TX 1 /* Set transmit parameters */

0 commit comments

Comments
 (0)