staging: hv: make the block driver depend on LBDAF
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 5 May 2010 19:27:43 +0000 (15:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:14 +0000 (11:36 -0700)
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/Kconfig
drivers/staging/hv/blkvsc_drv.c

index 79afb1e96c339087f4a59949d295a45d99aa1780..97480f5c659939c2cd359b3705b330d09d91156e 100644 (file)
@@ -17,7 +17,7 @@ config HYPERV_STORAGE
 
 config HYPERV_BLOCK
        tristate "Microsoft Hyper-V virtual block driver"
-       depends on BLOCK && SCSI
+       depends on BLOCK && SCSI && LBDAF
        default HYPERV
        help
          Select this option to enable the Hyper-V virtual block driver.
index b6a2cb8752d37ef23d5536f9d37957bb04653cd8..8a25154c06f516d7e34914c47adcacc5fe75f08e 100644 (file)
@@ -1489,7 +1489,7 @@ static int __init blkvsc_init(void)
 {
        int ret;
 
-       ASSERT(sizeof(sector_t) == 8); /* Make sure CONFIG_LBD is set */
+       BUILD_BUG_ON(sizeof(sector_t) != 8);
 
        DPRINT_ENTER(BLKVSC_DRV);