]> err.no Git - linux-2.6/commitdiff
USB: gadget-storage needs BLOCK
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 21 Mar 2007 20:57:51 +0000 (13:57 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:37 +0000 (13:28 -0700)
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>
drivers/usb/gadget/Kconfig

index 4097a86c4b5e125c5de26dc6905259d52ab13657..e081f3ebfb6f35bf7b0802597950d9935b3ecb3d 100644 (file)
@@ -370,6 +370,7 @@ config USB_GADGETFS
 
 config USB_FILE_STORAGE
        tristate "File-backed Storage Gadget"
+       depends on BLOCK
        help
          The File-backed Storage Gadget acts as a USB Mass Storage
          disk drive.  As its storage repository it can use a regular