Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix compile while compiling drivers/mmc/host/mmc_spi.o with !BLOCK

Make sure the mmc_spi driver can build without CONFIG_BLOCK.
Issue noted by "Avuton Olrich" <avuton@gmail.com> and randconfig.

While that won't be a common configuration, sometimes embedded
boards use SDIO to interface WLAN or Bluetooth chips (vs some
parallel interface), and don't provide an MMC/SD socket for use
with flash memory cards.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Brownell and committed by
Linus Torvalds
23fd5045 59d66ce2

+1 -1
+1 -1
drivers/mmc/host/mmc_spi.c
··· 26 26 */ 27 27 #include <linux/hrtimer.h> 28 28 #include <linux/delay.h> 29 - #include <linux/blkdev.h> 29 + #include <linux/bio.h> 30 30 #include <linux/dma-mapping.h> 31 31 #include <linux/crc7.h> 32 32 #include <linux/crc-itu-t.h>