]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: fix unknown type name u_int in uapi header
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 4 Jun 2019 08:23:14 +0000 (17:23 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2019 21:12:19 +0000 (14:12 -0700)
commit726b634e138853dafebca4289e321bf3ad7f5c3e
tree1e1aa6bfc7d7d98b673b2820dc77603362eaf4d3
parente1f49fd2eba026d830aab857cb0f39d66dcdb93b
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>
arch/sparc/include/uapi/asm/openpromio.h