]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
uapi: fix linux/tls.h userspace compilation error
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 14 Nov 2017 03:30:11 +0000 (06:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Nov 2017 04:54:18 +0000 (13:54 +0900)
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: 3c4d7559159b ("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>
include/net/tls.h
include/uapi/linux/tls.h

index 70becd0a92996e7e7a30121af50a847e019ca186..936cfc5cab7df843439c493655460640c3d4f07b 100644 (file)
 #define _TLS_OFFLOAD_H
 
 #include <linux/types.h>
+#include <asm/byteorder.h>
+#include <linux/socket.h>
+#include <linux/tcp.h>
+#include <net/tcp.h>
 
 #include <uapi/linux/tls.h>
 
index d5e0682ab8371b5f42b573d21bd0e3d2f85640b9..293b2cdad88d94b75bbad6b953788aa77d3d7c37 100644 (file)
 #define _UAPI_LINUX_TLS_H
 
 #include <linux/types.h>
-#include <asm/byteorder.h>
-#include <linux/socket.h>
-#include <linux/tcp.h>
-#include <net/tcp.h>
 
 /* TLS socket options */
 #define TLS_TX                 1       /* Set transmit parameters */