The patch titled spi: fix spidev for >sizeof(long)/32 devices has been added to the -mm tree. Its filename is spi-fix-spidev-for-sizeoflong-32-devices.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: spi: fix spidev for >sizeof(long)/32 devices From: Domen Puncer <domen@xxxxxxxxxxxx> find_first_zero_bit accepts number of bits, not longs. Signed-off-by: Domen Puncer <domen.puncer@xxxxxxxxxxx> Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/spi/spidev.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/spi/spidev.c~spi-fix-spidev-for-sizeoflong-32-devices drivers/spi/spidev.c --- a/drivers/spi/spidev.c~spi-fix-spidev-for-sizeoflong-32-devices +++ a/drivers/spi/spidev.c @@ -484,7 +484,7 @@ static int spidev_probe(struct spi_devic * Reusing minors is fine so long as udev or mdev is working. */ mutex_lock(&device_list_lock); - minor = find_first_zero_bit(minors, ARRAY_SIZE(minors)); + minor = find_first_zero_bit(minors, N_SPI_MINORS); if (minor < N_SPI_MINORS) { spidev->dev.parent = &spi->dev; spidev->dev.class = &spidev_class; _ Patches currently in -mm which might be from domen@xxxxxxxxxxxx are spi-fix-spidev-for-sizeoflong-32-devices.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html