summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-09-03 15:37:01 +0100
committerJeff Garzik <jgarzik@redhat.com>2008-09-24 18:54:42 -0400
commit31b760202a0911384fa07796df9d1905e9e89a7f (patch)
tree77f5a205930f66de8d7b43d69e06541485961c77 /drivers/net/sfc
parent13e9ab11430c4bdc4b6bb97e3d3821ebdc043712 (diff)
downloadblackbird-op-linux-31b760202a0911384fa07796df9d1905e9e89a7f.tar.gz
blackbird-op-linux-31b760202a0911384fa07796df9d1905e9e89a7f.zip
sfc: Fix type of FALCON_SPI_MAX_LEN
FALCON_SPI_MAX_LEN has type size_t while other SPI lengths have type unsigned int. This results in warnings from min() on 64-bit architectures where they are different. Add a cast to make it match. From: Steve Hodgson <shodgson@solarflare.com> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/falcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index d30c938d0fbf..31ed1f49de00 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -1605,7 +1605,7 @@ void falcon_fini_interrupt(struct efx_nic *efx)
**************************************************************************
*/
-#define FALCON_SPI_MAX_LEN sizeof(efx_oword_t)
+#define FALCON_SPI_MAX_LEN ((unsigned) sizeof(efx_oword_t))
/* Wait for SPI command completion */
static int falcon_spi_wait(struct efx_nic *efx)
OpenPOWER on IntegriCloud