MLK-24874-4: include: uapi: tsn: fix the UAPI_HEADER_TEST failure

Enable CONFIG_UAPI_HEADER_TEST turns out the following build issues:

 HDRTEST usr/include/linux/tsn.h
In file included from <command-line>: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 <jason.hui.liu@nxp.com>
(cherry picked from commit 328bf99d8b42aca38538b6122878c7a9da9234d0)
This commit is contained in:
Jason Liu 2020-10-09 11:54:46 +08:00
parent c7a21c0448
commit 586d6d4a3c
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@
#ifndef __UAPI_GENL_TSN_H
#define __UAPI_GENL_TSN_H
#include <linux/types.h>
#define TSN_GENL_NAME "TSN_GEN_CTRL"
#define TSN_GENL_VERSION 0x1