mirror of https://github.com/acidanthera/audk.git
ArmPkg: Fix Ecc error 7008 for OPTEE_MESSAGE_PARAM
This patch fixes the following Ecc reported error: Complex types should be typedef-ed The error is due to the a nested structure declaration. Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
39b3e14c99
commit
60e49aac4e
|
@ -2,6 +2,7 @@
|
||||||
OP-TEE specific header file.
|
OP-TEE specific header file.
|
||||||
|
|
||||||
Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR>
|
Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR>
|
||||||
|
Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
|
@ -45,12 +46,14 @@ typedef struct {
|
||||||
UINT64 C;
|
UINT64 C;
|
||||||
} OPTEE_MESSAGE_PARAM_VALUE;
|
} OPTEE_MESSAGE_PARAM_VALUE;
|
||||||
|
|
||||||
typedef struct {
|
typedef union {
|
||||||
UINT64 Attribute;
|
|
||||||
union {
|
|
||||||
OPTEE_MESSAGE_PARAM_MEMORY Memory;
|
OPTEE_MESSAGE_PARAM_MEMORY Memory;
|
||||||
OPTEE_MESSAGE_PARAM_VALUE Value;
|
OPTEE_MESSAGE_PARAM_VALUE Value;
|
||||||
} Union;
|
} OPTEE_MESSAGE_PARAM_UNION;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
UINT64 Attribute;
|
||||||
|
OPTEE_MESSAGE_PARAM_UNION Union;
|
||||||
} OPTEE_MESSAGE_PARAM;
|
} OPTEE_MESSAGE_PARAM;
|
||||||
|
|
||||||
#define OPTEE_MAX_CALL_PARAMS 4
|
#define OPTEE_MAX_CALL_PARAMS 4
|
||||||
|
|
Loading…
Reference in New Issue