From: sbabic at denx.de Date: Wed, 30 Jan 2019 08:57:11 +0000 (UTC) Subject: [U-Boot] spi: mxc_spi: Fix build warning on ARM64 platforms In-Reply-To: <1546593943-41374-1-git-send-email-ye.li@nxp.com> Message-ID: <20190130085725.A3037C21DA6@lists.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de > When building mxc_spi driver on ARM64 platforms, get below build warnings. > Fix it in this patch. > In file included from include/common.h:48:0, > from drivers/spi/mxc_spi.c:9: > drivers/spi/mxc_spi.c: In function ‘spi_xchg_single’: > drivers/spi/mxc_spi.c:232:21: warning: cast from pointer to integer of > different size [-Wpointer-to-int-cast] > _func_, bitlen, (u32)dout, (u32)din); > ^ > include/log.h:135:26: note: in definition of macro ‘debug_cond’ > printf(pr_fmt(fmt), ##args); \ > ^~~~ > drivers/spi/mxc_spi.c:231:2: note: in expansion of macro ‘debug’ > debug("%s: bitlen %d dout 0x%x din 0x%x\n", > ^~~~~ > drivers/spi/mxc_spi.c:232:32: warning: cast from pointer to integer of > different size [-Wpointer-to-int-cast] > _func_, bitlen, (u32)dout, (u32)din); > ^ > include/log.h:135:26: note: in definition of macro ‘debug_cond’ > printf(pr_fmt(fmt), ##args); \ > ^~~~ > drivers/spi/mxc_spi.c:231:2: note: in expansion of macro ‘debug’ > debug("%s: bitlen %d dout 0x%x din 0x%x\n", > ^~~~~ > Signed-off-by: Ye Li > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================