u-boot/arch/arm/mach-imx
Marek Vasut 3f7afddc9c ARM: imx: bootaux: Fix LTO -Wlto-type-mismatch
Commit 56c2dbdaba ("imx: bootaux: cleanup code") introduces the
following LTO related warning:

"
arch/arm/mach-imx/imx_bootaux.c:24:31: warning: type of ‘hostmap’ does not match original declaration [-Wlto-type-mismatch]
   24 | const __weak struct rproc_att hostmap[] = { };
      |                               ^
arch/arm/mach-imx/imx8m/soc.c:1590:24: note: array types have different bounds
 1590 | const struct rproc_att hostmap[] = {
      |                        ^
arch/arm/mach-imx/imx8m/soc.c:1590:24: note: ‘hostmap’ was previously declared here
../aarch64-linux-gnu/bin/ld: warning: u-boot has a LOAD segment with RWX permissions
"

This is because the weak empty array of structures "hostmap" is eventually
replaced by non-empty array of structures with different number of elements.
Fix this by avoiding weak variable size array, instead use a weak function
which returns single pointer to the array.

Fixes: 56c2dbdaba ("imx: bootaux: cleanup code")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2023-01-30 23:23:02 +01:00
..
imx8 Revert "imx: imx8: apalis: switch to binman" 2022-11-21 09:23:00 -05:00
imx8m ARM: imx: bootaux: Fix LTO -Wlto-type-mismatch 2023-01-30 23:23:02 +01:00
imx8ulp global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_* 2022-12-05 16:06:07 -05:00
imx9 imx: imx93_evk: Set ARM clock to 1.7Ghz 2022-07-26 11:29:01 +02:00
imxrt imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK 2022-09-18 20:42:56 +02:00
mx3 arm: Remove mx31pdk board 2020-07-09 20:58:06 +05:30
mx5 global: Remove extraneous DM_ETH imply/select 2022-12-07 16:04:16 -05:00
mx6 Added dcp_rng driver initialization code 2023-01-12 11:25:46 -05:00
mx7 ARM: imx: bootaux: Fix LTO -Wlto-type-mismatch 2023-01-30 23:23:02 +01:00
mx7ulp global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
mxs arm: Remove bg0900 board 2021-10-01 21:08:19 -04:00
cache.c imx: Enable ACTLR.SMP in SPL for i.MX6/7 2022-02-05 13:38:39 +01:00
cmd_bmode.c ARM: imx: Add support for reading out the primary/secondary bmode 2020-08-17 17:55:17 +02:00
cmd_dek.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
cmd_hdmidet.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
cmd_mfgprot.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
cmd_nandbcb.c arm: mach-imx: cmd_nandbcb fix bad block handling 2022-05-20 12:36:48 +02:00
cpu.c video: Rename CONFIG_DM_VIDEO to CONFIG_VIDEO 2022-10-30 20:07:17 +01:00
ddrmc-vf610-calibration.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ddrmc-vf610-calibration.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ddrmc-vf610.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
hab.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
i2c-mxv7.c ARM: imx: imx8mp: Enable support for i2c5 and i2c6 on i.MX8MP 2022-11-07 22:45:05 +01:00
image-container.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
imx_bootaux.c ARM: imx: bootaux: Fix LTO -Wlto-type-mismatch 2023-01-30 23:23:02 +01:00
init.c ARM: imx: Add support for switching primary/secondary boot mode to bmode 2020-08-17 17:54:01 +02:00
iomux-v3.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig Convert CONFIG_DM9000_BYTE_SWAPPED et al to Kconfig 2022-12-22 10:31:47 -05:00
lowlevel.S imx: add lowlevel init for ARM64 2019-04-25 19:16:24 +02:00
mac.c arm: mach-imx: Update MAC fuse for i.MX8MP 2021-10-21 13:59:26 +02:00
Makefile Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
misc.c lmb: Remove imx board_lmb_reserve() 2021-09-23 14:15:32 -04:00
mmc_env.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mmdc_size.c arm/mach-imx: Fix macros in mmdc_size.c 2021-07-10 16:53:34 +02:00
parse-container.c arm: imx: parse-container: add some missing end of line 2022-04-12 17:33:55 +02:00
priblob.c imx: cmd: use struct cmd_tbl 2021-08-09 14:46:51 +02:00
rdc-sema.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
romapi.c ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables 2023-01-30 23:23:01 +01:00
sata.c arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
speed.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
spl.c global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_* 2022-12-05 16:06:07 -05:00
spl_imx_romapi.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_qspi.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
spl_sd.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
syscounter.c global: Migrate CONFIG_SC_TIMER_CLK to CFG 2022-12-23 10:15:12 -05:00
timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
video.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00