diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-04 04:23:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-13 17:12:19 -0400 |
commit | 15d5dfaf4adb9e4d38fd6d4c88590817dc32c7cf (patch) | |
tree | 1e1aa6bfc7d7d98b673b2820dc77603362eaf4d3 | |
parent | 6284ad9453ba8eb093de046e2f9ba86537f4b27a (diff) |
sparc: fix unknown type name u_int in uapi header
'u_int' is a shorthand that is only available in the kernel space
because it is defined in include/linux/types.h, which is not exported
to the user space.
You cannot use it in uapi headers even if you include <linux/types.h>
Detected by compile-testing exported headers.
./usr/include/asm/openpromio.h:16:2: error: unknown type name ‘u_int’
u_int oprom_size; /* Actual size of the oprom_array. */
^~~~~
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/include/uapi/asm/openpromio.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/include/uapi/asm/openpromio.h b/arch/sparc/include/uapi/asm/openpromio.h index 8817f7d1a70c..d4494b679e99 100644 --- a/arch/sparc/include/uapi/asm/openpromio.h +++ b/arch/sparc/include/uapi/asm/openpromio.h | |||
@@ -4,7 +4,6 @@ | |||
4 | 4 | ||
5 | #include <linux/compiler.h> | 5 | #include <linux/compiler.h> |
6 | #include <linux/ioctl.h> | 6 | #include <linux/ioctl.h> |
7 | #include <linux/types.h> | ||
8 | 7 | ||
9 | /* | 8 | /* |
10 | * SunOS and Solaris /dev/openprom definitions. The ioctl values | 9 | * SunOS and Solaris /dev/openprom definitions. The ioctl values |
@@ -13,7 +12,7 @@ | |||
13 | 12 | ||
14 | struct openpromio | 13 | struct openpromio |
15 | { | 14 | { |
16 | u_int oprom_size; /* Actual size of the oprom_array. */ | 15 | unsigned int oprom_size; /* Actual size of the oprom_array. */ |
17 | char oprom_array[1]; /* Holds property names and values. */ | 16 | char oprom_array[1]; /* Holds property names and values. */ |
18 | }; | 17 | }; |
19 | 18 | ||