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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:40 +0000 (08:40 +0000)
commit33e58deefa0907ffba4d5a4c69f3641a649358d3
tree26fd4718cc34d02f4ffd94b63450a2e834755d55
parent30d3389d80eb0c6d2a49ffa07c8fd1eec5a49873
uapi: fix linux/tls.h userspace compilation error

commit b9f3eb499d84f8d4adcb2f9212ec655700b28228 upstream.

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")
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/tls.h
include/uapi/linux/tls.h