linux-stable/drivers/remoteproc
Arnd Bergmann ec671b5360 remoteproc: qcom: fix initializers for qcom_mss_reg_res array
The recently added initialization is rather unusual because it uses a constructor for
a variable-length array to assign a constant structure to a member that uses a fixed-length
array. This confuses clang and breaks the build.

drivers/remoteproc/qcom_q6v5_pil.c:1024:18: error: incompatible pointer types initializing 'const char *' with an expression of type
:%s      'struct qcom_mss_reg_res [4]' [-Werror,-Wincompatible-pointer-types]
        .proxy_supply = (struct qcom_mss_reg_res[]) {
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/remoteproc/qcom_q6v5_pil.c:1024:18: warning: suggest braces around initialization of subobject [-Wmissing-braces]
        .proxy_supply = (struct qcom_mss_reg_res[]) {
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We can either turn this constructor into a regular initializer by removing
the 'struct qcom_mss_reg_res[])', or we can make the array variable length.

The latter approach is used for the arrays of strings in the same structure,
so let's use that here too.

Fixes: 19f902b53b ("remoteproc: qcom: Initialize and enable proxy and active regulators.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2017-02-01 01:22:21 -08:00
..
da8xx_remoteproc.c drivers: remoteproc: constify rproc_ops structures 2017-01-18 10:46:50 -08:00
Kconfig remoteproc: add some kind of help 2017-01-18 10:46:50 -08:00
Makefile remoteproc/ste: Delete unused driver 2016-12-09 16:16:54 -08:00
omap_remoteproc.c drivers: remoteproc: constify rproc_ops structures 2017-01-18 10:46:50 -08:00
omap_remoteproc.h remoteproc/omap: add a remoteproc driver for OMAP4 2012-02-08 22:53:47 +02:00
qcom_adsp_pil.c remoteproc: qcom: Add SLPI rproc support to load and boot slpi proc. 2017-01-30 13:48:41 -08:00
qcom_mdt_loader.c remoteproc: qcom: mdt_loader: add include for sizes 2016-12-02 14:41:54 -08:00
qcom_mdt_loader.h remoteproc: qcom: Driver for the self-authenticating Hexagon v5 2016-07-13 13:38:15 -07:00
qcom_q6v5_pil.c remoteproc: qcom: fix initializers for qcom_mss_reg_res array 2017-02-01 01:22:21 -08:00
qcom_wcnss.c remoteproc: qcom_wcnss: Fix circular module dependency 2016-11-14 21:52:19 -08:00
qcom_wcnss.h remoteproc: qcom_wcnss: Fix circular module dependency 2016-11-14 21:52:19 -08:00
qcom_wcnss_iris.c remoteproc: qcom_wcnss: Fix circular module dependency 2016-11-14 21:52:19 -08:00
remoteproc_core.c remoteproc: Drop firmware_loading_complete 2017-01-30 14:18:54 -08:00
remoteproc_debugfs.c remoteproc: debugfs: Remove state entry which is duplicated is sysfs 2016-10-31 17:24:48 -07:00
remoteproc_elf_loader.c remoteproc: align code with open parenthesis 2016-08-12 21:27:49 -07:00
remoteproc_internal.h remoteproc: Assign kref to rproc_vdev 2016-11-14 21:52:15 -08:00
remoteproc_sysfs.c remoteproc: Add RPROC_DELETED state 2017-01-30 14:18:52 -08:00
remoteproc_virtio.c remoteproc: virtio: Anchor vring life cycle in vdev 2016-11-14 21:52:16 -08:00
st_remoteproc.c drivers: remoteproc: constify rproc_ops structures 2017-01-18 10:46:50 -08:00
st_slim_rproc.c drivers: remoteproc: constify rproc_ops structures 2017-01-18 10:46:50 -08:00
wkup_m3_rproc.c drivers: remoteproc: constify rproc_ops structures 2017-01-18 10:46:50 -08:00