Skip to content

Commit 8784028

Browse files
rddunlapgregkh
authored andcommitted
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 <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2add522 commit 8784028

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/gadget/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ config USB_GADGETFS
370370

371371
config USB_FILE_STORAGE
372372
tristate "File-backed Storage Gadget"
373+
depends on BLOCK
373374
help
374375
The File-backed Storage Gadget acts as a USB Mass Storage
375376
disk drive. As its storage repository it can use a regular

0 commit comments

Comments
 (0)