u-boot/drivers/ddr/marvell/axp
Marek Behún 74f4929c2c ddr: marvell: axp: fix array types have different bounds warning
The arrays `pbs_dq_mapping`, `div_ratio1to1` and `div_ratio2to1` have
different bounds declared in header files where these variables are also
defined from the ones declared in source files.

This causes the compiler to complain (when building with LTO):
  ddr3_sdram.c:24:12: warning: type of ‘pbs_dq_mapping’ does not match
                               original declaration
			       [-Wlto-type-mismatch]
  ddr3_patterns_64bit.h:911:5: note: array types have different bounds
  ddr3_patterns_64bit.h:911:5: note: ‘pbs_dq_mapping’ was previously
                                     declared here

ddr3_dfs.c:45:11: warning: type of ‘div_ratio1to1’ does not match
                           original declaration [-Wlto-type-mismatch]
ddr3_axp_vars.h:167:4: note: array types have different bounds
ddr3_axp_vars.h:167:4: note: ‘div_ratio1to1’ was previously declared
                             here

ddr3_dfs.c:46:11: warning: type of ‘div_ratio2to1’ does not match
                           original declaration [-Wlto-type-mismatch]
ddr3_axp_vars.h:196:4: note: array types have different bounds
ddr3_axp_vars.h:196:4: note: ‘div_ratio2to1’ was previously declared
                             here

CI managed to trigger this as an error when compiling with LTO for AXP.

Fix this by using values from the header files, which seem to be the
correct ones.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
2021-03-12 07:44:21 +01:00
..
ddr3_axp.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_axp_config.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_axp_mc_static.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_axp_training_static.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_axp_vars.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_dfs.c ddr: marvell: axp: fix array types have different bounds warning 2021-03-12 07:44:21 +01:00
ddr3_dqs.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ddr3_hw_training.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ddr3_hw_training.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_init.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ddr3_init.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_patterns_64bit.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_pbs.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ddr3_read_leveling.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ddr3_sdram.c ddr: marvell: axp: fix array types have different bounds warning 2021-03-12 07:44:21 +01:00
ddr3_spd.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_write_leveling.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
xor.c ddr: marvell: axp: align signature of mv_xor_mem_init() with a38x 2021-03-12 07:44:21 +01:00
xor.h ddr: marvell: axp: align signature of mv_xor_mem_init() with a38x 2021-03-12 07:44:21 +01:00
xor_regs.h arm: mvebu: Add Marvell's integrated CPUs 2019-04-12 07:04:18 +02:00