From 7b9e38d380c487cf49434bf9d2a11ec222da71a6 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 13 Jan 2016 15:12:50 +0100 Subject: [PATCH] fpga: xilinx: Fix fpga code compilation for arm64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Compilation warning: w-../drivers/fpga/xilinx.c: In function ‘fpga_loadbitstream’: w-../drivers/fpga/xilinx.c:78:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Michal Simek --- drivers/fpga/xilinx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c index 877409c56a1..d459a2f7a57 100644 --- a/drivers/fpga/xilinx.c +++ b/drivers/fpga/xilinx.c @@ -75,7 +75,7 @@ int fpga_loadbitstream(int devnum, char *fpgadata, size_t size, buffer[i] = *dataptr++; if (xdesc->name) { - i = (unsigned int)strstr(buffer, xdesc->name); + i = (ulong)strstr(buffer, xdesc->name); if (!i) { printf("%s: Wrong bitstream ID for this device\n", __func__); -- 2.47.3