From: Bill Pemberton Date: Wed, 5 May 2010 19:27:43 +0000 (-0400) Subject: staging: hv: make the block driver depend on LBDAF X-Git-Tag: MMI-PSA29.97-13-9~23841^2^2~164 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5afd06ccd6b309f6a47d7e8fa4ea349b25738d97;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: hv: make the block driver depend on LBDAF Signed-off-by: Bill Pemberton Cc: Hank Janssen Cc: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/Kconfig b/drivers/staging/hv/Kconfig index 79afb1e96c33..97480f5c6599 100644 --- a/drivers/staging/hv/Kconfig +++ b/drivers/staging/hv/Kconfig @@ -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. diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index b6a2cb8752d3..8a25154c06f5 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -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);