]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sfc: Fix type of FALCON_SPI_MAX_LEN
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 3 Sep 2008 14:37:01 +0000 (15:37 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:54:42 +0000 (18:54 -0400)
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>
drivers/net/sfc/falcon.c

index d30c938d0fbf784e20d692275ba1a8963d85e809..31ed1f49de008a547e61828174a39331d00c2512 100644 (file)
@@ -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)