Skip to content

Commit 7ac5d7b

Browse files
mcfrisksre
authored andcommitted
HSI: hsi_char.h: use __u32 from linux/types.h
Fixes userspace compiler errors like: linux/hsi/hsi_char.h:51:2: error: unknown type name ‘uint32_t’ Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi> Signed-off-by: Sebastian Reichel <sre@kernel.org>
1 parent 29b4817 commit 7ac5d7b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

include/uapi/linux/hsi/hsi_char.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
* 02110-1301 USA
2121
*/
2222

23-
2423
#ifndef __HSI_CHAR_H
2524
#define __HSI_CHAR_H
2625

26+
#include <linux/types.h>
27+
2728
#define HSI_CHAR_MAGIC 'k'
2829
#define HSC_IOW(num, dtype) _IOW(HSI_CHAR_MAGIC, num, dtype)
2930
#define HSC_IOR(num, dtype) _IOR(HSI_CHAR_MAGIC, num, dtype)
@@ -48,16 +49,16 @@
4849
#define HSC_ARB_PRIO 1
4950

5051
struct hsc_rx_config {
51-
uint32_t mode;
52-
uint32_t flow;
53-
uint32_t channels;
52+
__u32 mode;
53+
__u32 flow;
54+
__u32 channels;
5455
};
5556

5657
struct hsc_tx_config {
57-
uint32_t mode;
58-
uint32_t channels;
59-
uint32_t speed;
60-
uint32_t arb_mode;
58+
__u32 mode;
59+
__u32 channels;
60+
__u32 speed;
61+
__u32 arb_mode;
6162
};
6263

6364
#endif /* __HSI_CHAR_H */

0 commit comments

Comments
 (0)