Skip to content

Commit

Permalink
sparc: fix unknown type name u_int in uapi header
Browse files Browse the repository at this point in the history
'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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
masahir0y authored and davem330 committed Jun 13, 2019
1 parent 6284ad9 commit 15d5dfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc/include/uapi/asm/openpromio.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <linux/compiler.h>
#include <linux/ioctl.h>
#include <linux/types.h>

/*
* SunOS and Solaris /dev/openprom definitions. The ioctl values
Expand All @@ -13,7 +12,7 @@

struct openpromio
{
u_int oprom_size; /* Actual size of the oprom_array. */
unsigned int oprom_size; /* Actual size of the oprom_array. */
char oprom_array[1]; /* Holds property names and values. */
};

Expand Down

0 comments on commit 15d5dfa

Please sign in to comment.