Skip to content

Commit 15d5dfa

Browse files
masahir0ydavem330
authored andcommitted
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>
1 parent 6284ad9 commit 15d5dfa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/sparc/include/uapi/asm/openpromio.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include <linux/compiler.h>
66
#include <linux/ioctl.h>
7-
#include <linux/types.h>
87

98
/*
109
* SunOS and Solaris /dev/openprom definitions. The ioctl values
@@ -13,7 +12,7 @@
1312

1413
struct openpromio
1514
{
16-
u_int oprom_size; /* Actual size of the oprom_array. */
15+
unsigned int oprom_size; /* Actual size of the oprom_array. */
1716
char oprom_array[1]; /* Holds property names and values. */
1817
};
1918

0 commit comments

Comments
 (0)