# \[PATCH v4 19/79\] hsi\_char.h: use \_\_u32 from linux/types.h

- Subsystems: HSI SUBSYSTEM, THE REST
- Maintainers: Sebastian Reichel, Linus Torvalds
- Status: SUPERSEDED (Superseded by v06 posted 2017-08-06)
- Superseded by v06 (posted 2017-08-06).
- Revision v4 (4 revisions archived).
- List: linux-api
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-api/2015/10/4598271/t

## \[PATCH v4 19/79\] hsi\_char.h: use \_\_u32 from linux/types.h

- From: Mikko Rapeli \<hidden\>
- Date: 2015-10-15 06:09:14 
- Message: https://ratatoskr.run/linux-api/2015/10/4598271.md

```text
Fixes userspace compiler errors like:

linux/hsi/hsi_char.h:51:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <redacted>
---
 include/uapi/linux/hsi/hsi_char.h | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/include/uapi/linux/hsi/hsi_char.h b/include/uapi/linux/hsi/hsi_char.h
index 76160b4..c00a463 100644
--- a/include/uapi/linux/hsi/hsi_char.h
+++ b/include/uapi/linux/hsi/hsi_char.h
@@ -20,10 +20,11 @@
  * 02110-1301 USA
  */
 
-
 #ifndef __HSI_CHAR_H
 #define __HSI_CHAR_H
 
+#include <linux/types.h>
+
 #define HSI_CHAR_MAGIC		'k'
 #define HSC_IOW(num, dtype)	_IOW(HSI_CHAR_MAGIC, num, dtype)
 #define HSC_IOR(num, dtype)	_IOR(HSI_CHAR_MAGIC, num, dtype)
@@ -48,16 +49,16 @@
 #define HSC_ARB_PRIO		1
 
 struct hsc_rx_config {
-	uint32_t mode;
-	uint32_t flow;
-	uint32_t channels;
+	__u32 mode;
+	__u32 flow;
+	__u32 channels;
 };
 
 struct hsc_tx_config {
-	uint32_t mode;
-	uint32_t channels;
-	uint32_t speed;
-	uint32_t arb_mode;
+	__u32 mode;
+	__u32 channels;
+	__u32 speed;
+	__u32 arb_mode;
 };
 
 #endif /* __HSI_CHAR_H */
-- 
2.5.0
```
