summaryrefslogtreecommitdiff
path: root/drivers/tee/optee
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2020-12-31 14:58:26 +0300
committerJens Wiklander <jens.wiklander@linaro.org>2021-02-02 16:50:21 +0300
commitfda90b29e27156db1923ac1f120935991f792560 (patch)
treea18810babf034ba5ce6341fd98d871b2cc7db445 /drivers/tee/optee
parentc7020068bf2397b60bb62a1f71ca0fe626c1f7e7 (diff)
downloadlinux-fda90b29e27156db1923ac1f120935991f792560.tar.xz
drivers: optee: use flexible-array member instead of zero-length array
Use flexible-array member introduced in C99 instead of zero-length array. Most of zero-length array was already taken care in previous patch [1]. Now modified few more cases which were not handled earlier. [1]. https://patchwork.kernel.org/patch/11394197/ Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee')
-rw-r--r--drivers/tee/optee/optee_msg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/optee_msg.h b/drivers/tee/optee/optee_msg.h
index 7b2d919da2ac..b1f1e902b19b 100644
--- a/drivers/tee/optee/optee_msg.h
+++ b/drivers/tee/optee/optee_msg.h
@@ -199,7 +199,7 @@ struct optee_msg_arg {
u32 num_params;
/* num_params tells the actual number of element in params */
- struct optee_msg_param params[0];
+ struct optee_msg_param params[];
};
/**