]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86adbcc107342b504c9a80247d71233406040746
tree77f5a205930f66de8d7b43d69e06541485961c77
parentc5954204abde61c2718eeea3c2e93bc5b840ce8a
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>
drivers/net/sfc/falcon.c