[U-Boot] [PATCH 1/4] fsl/ddr: Fix compiling warning

york sun york.sun at nxp.com
Wed Nov 16 22:54:48 CET 2016


On 11/15/2016 01:28 AM, Shengzhou Liu wrote:
> Fix following warning in case multiple erratum macro was not defined.
> warning: unused variable 'tmp'
> warning: unused variable 'ddr_freq'
>
> Signed-off-by: Shengzhou Liu <Shengzhou.Liu at nxp.com>
> ---
>  drivers/ddr/fsl/fsl_ddr_gen4.c | 43 +++++++++++++++++-------------------------
>  1 file changed, 17 insertions(+), 26 deletions(-)
>

Shengzhou,

I got a lot of compiling warning such as


../drivers/ddr/fsl/fsl_ddr_gen4.c:272:2: error: 'ddr_freq' undeclared 
(first use in this function)
../drivers/ddr/fsl/fsl_ddr_gen4.c:273:2: error: 'tmp' undeclared (first 
use in this function)

for these platforms

ls1046aqds_sdcard_ifc ls2080aqds_SECURE_BOOT ls2080aqds_nand ls1043aqds 
ls1043ardb ls2080a_simu ls1046aqds_nand ls2080ardb_SECURE_BOOT 
ls2080aqds_qspi ls1046aqds ls1046ardb_qspi ls1043aqds_qspi 
ls1043aqds_nand ls1046aqds_lpuart ls1043ardb_SECURE_BOOT ls2080a_emu 
ls1043aqds_lpuart ls1043ardb_nand ls1046aqds_sdcard_qspi ls2080aqds 
ls2080ardb ls1043aqds_sdcard_qspi ls1046ardb_sdcard ls2080ardb_nand 
ls1046aqds_qspi ls1043ardb_sdcard ls1043aqds_sdcard_ifc ls1046ardb_emmc
ls1021aqds_ddr4_nor ls1021aqds_ddr4_nor_lpuart

Some warning goes away after your 2nd patch. Please make sure you test 
them before sending an update.

York


More information about the U-Boot mailing list