From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ley Foon Tan Date: Thu, 17 May 2018 10:23:08 +0800 Subject: [U-Boot] [PATCH] spi: cadence_qspi: Change to use devfdt_get_addr_index() In-Reply-To: References: <1525686177-49276-1-git-send-email-ley.foon.tan@intel.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Wed, May 16, 2018 at 9:33 PM, Jagan Teki wrote: > On Mon, May 7, 2018 at 3:12 PM, Ley Foon Tan wrote: >> Change to use devfdt_get_addr_index() function to get fdt address. >> >> Original code has compilation warning below: >> >> drivers/spi/cadence_qspi.c: In function ‘cadence_spi_ofdata_to_platdata’: >> drivers/spi/cadence_qspi.c:297:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] >> plat->regbase = (void *)data[0]; >> ^ >> drivers/spi/cadence_qspi.c:298:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] >> plat->ahbbase = (void *)data[2]; > > was this a coverage-tool check, I didn't see any warning with arm > compiler? make socfpga_arria5_defconfig && make This error came up if compile with ARM 64bit (aarch64-linux-gnu-). Regards Ley Foon