Using libc types and headers from the UAPI headers is problematic as it introduces a dependency on a full C toolchain. Use the fixed-width integer type provided by the UAPI headers instead.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -8,11 +8,7 @@ · 7 unmodified lines | ||
| 8 | 8 | #ifndef _UAPI_REGULATOR_H |
| 9 | 9 | #define _UAPI_REGULATOR_H |
| 10 | 10 | |
| 11 | −#ifdef __KERNEL__ | |
| 12 | 11 | #include <linux/types.h> |
| 13 | −#else | |
| 14 | −#include <stdint.h> | |
| 15 | −#endif | |
| 16 | 12 | |
| 17 | 13 | /* |
| 18 | 14 | * Regulator notifier events. |
| @@ -62,7 +58,7 @@ · 43 unmodified lines | ||
| 62 | 58 | |
| 63 | 59 | struct reg_genl_event { |
| 64 | 60 | char reg_name[32]; |
| 65 | − uint64_t event; | |
| 61 | + __u64 event; | |
| 66 | 62 | }; |
| 67 | 63 | |
| 68 | 64 | /* attributes of reg_genl_family */ |