Replace enum with fixed-width int in UAPI structs
In order to avoid struct layout misalignment issues between user and
kernel space, raising from size of enum members being implementation-
defined, the enum members of structs in the UAPI header file have now
been replaced with fixed-width integers.
Change-Id: I44a41c6d6669d116ca239da72676dd0539bf88b9
Signed-off-by: Ledion Daja <ledion.daja@arm.com>
diff --git a/kernel/uapi/ethosu.h b/kernel/uapi/ethosu.h
index b35cd05..69f8d3a 100644
--- a/kernel/uapi/ethosu.h
+++ b/kernel/uapi/ethosu.h
@@ -256,7 +256,7 @@
* ETHOSU_UAPI_STATUS_OK.
*/
struct ethosu_uapi_result_status {
- enum ethosu_uapi_status status;
+ __u32 status;
struct ethosu_uapi_pmu_config pmu_config;
struct ethosu_uapi_pmu_counts pmu_count;
};
@@ -267,7 +267,7 @@
* @status OK if inference cancellation was performed, ERROR otherwise.
*/
struct ethosu_uapi_cancel_inference_status {
- enum ethosu_uapi_status status;
+ __u32 status;
};
#ifdef __cplusplus