uapi: fix linux/rds.h userspace compilation errors
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 23 Feb 2017 11:35:23 +0000 (14:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2017 15:55:08 +0000 (10:55 -0500)
Consistently use types from linux/types.h to fix the following
linux/rds.h userspace compilation errors:

/usr/include/linux/rds.h:198:2: error: unknown type name 'u8'
  u8 rx_traces;
/usr/include/linux/rds.h:199:2: error: unknown type name 'u8'
  u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX];
/usr/include/linux/rds.h:203:2: error: unknown type name 'u8'
  u8 rx_traces;
/usr/include/linux/rds.h:204:2: error: unknown type name 'u8'
  u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX];
/usr/include/linux/rds.h:205:2: error: unknown type name 'u64'
  u64 rx_trace[RDS_MSG_RX_DGRAM_TRACE_MAX];

Fixes: 3289025aedc0 ("RDS: add receive message trace used by application")
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rds.h

index 47c03ca5c4047d111c408af8f84c79b0f860051a..198892b95f09499d50614c0149990b61fad772e3 100644 (file)
@@ -195,14 +195,14 @@ enum rds_message_rxpath_latency {
 };
 
 struct rds_rx_trace_so {
-       u8 rx_traces;
-       u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX];
+       __u8 rx_traces;
+       __u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX];
 };
 
 struct rds_cmsg_rx_trace {
-       u8 rx_traces;
-       u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX];
-       u64 rx_trace[RDS_MSG_RX_DGRAM_TRACE_MAX];
+       __u8 rx_traces;
+       __u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX];
+       __u64 rx_trace[RDS_MSG_RX_DGRAM_TRACE_MAX];
 };
 
 /*