From: Ben Hutchings Date: Wed, 3 Sep 2008 14:37:01 +0000 (+0100) Subject: sfc: Fix type of FALCON_SPI_MAX_LEN X-Git-Tag: v2.6.28-rc1~717^2~195^2~43 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=31b760202a0911384fa07796df9d1905e9e89a7f;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Ben Hutchings Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c index d30c938d0fb..31ed1f49de0 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)