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

USB: gadget-storage needs BLOCK

With CONFIG_BLOCK=n, this build error happens:
WARNING: "bdev_read_only" [drivers/usb/gadget/g_file_storage.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Randy Dunlap and committed by
Greg Kroah-Hartman
87840289 2add5229

+1
+1
drivers/usb/gadget/Kconfig
··· 370 370 371 371 config USB_FILE_STORAGE 372 372 tristate "File-backed Storage Gadget" 373 + depends on BLOCK 373 374 help 374 375 The File-backed Storage Gadget acts as a USB Mass Storage 375 376 disk drive. As its storage repository it can use a regular