From 586d6d4a3c3fa0ddb1b1aa1491a5f83a1e336c42 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Fri, 9 Oct 2020 11:54:46 +0800 Subject: [PATCH] MLK-24874-4: include: uapi: tsn: fix the UAPI_HEADER_TEST failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable CONFIG_UAPI_HEADER_TEST turns out the following build issues: HDRTEST usr/include/linux/tsn.h In file included from :32:0: ./usr/include/linux/tsn.h:384:2: error: unknown type name ‘__u8’ __u8 admin_state; ^~~~ ./usr/include/linux/tsn.h:390:2: error: unknown type name ‘__u32’ __u32 hold_advance; ^~~~~ ./usr/include/linux/tsn.h:397:2: error: unknown type name ‘__u32’ __u32 release_advance; ^~~~~ ./usr/include/linux/tsn.h:403:2: error: unknown type name ‘__u8’ __u8 preemption_active; ^~~~ ./usr/include/linux/tsn.h:412:2: error: unknown type name ‘__u8’ __u8 hold_request; ^~~~ ./usr/include/linux/tsn.h:426:2: error: unknown type name ‘__u8’ __u8 delta_bw; /* percentage, 0~100 */ ^~~~ ./usr/include/linux/tsn.h:427:2: error: unknown type name ‘__u32’ __u32 idleslope; ^~~~~ ./usr/include/linux/tsn.h:428:2: error: unknown type name ‘__s32’ __s32 sendslope; ^~~~~ ./usr/include/linux/tsn.h:429:2: error: unknown type name ‘__u32’ __u32 maxframesize; ^~~~~ The fix is to add the necessary header file into the tsn.h file Signed-off-by: Jason Liu (cherry picked from commit 328bf99d8b42aca38538b6122878c7a9da9234d0) --- include/uapi/linux/tsn.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/tsn.h b/include/uapi/linux/tsn.h index fb304c9b1e2d..192130f276f0 100644 --- a/include/uapi/linux/tsn.h +++ b/include/uapi/linux/tsn.h @@ -4,6 +4,8 @@ #ifndef __UAPI_GENL_TSN_H #define __UAPI_GENL_TSN_H +#include + #define TSN_GENL_NAME "TSN_GEN_CTRL" #define TSN_GENL_VERSION 0x1