From: K. Y. Srinivasan Date: Tue, 10 May 2011 14:55:55 +0000 (-0700) Subject: Staging: hv: Move the sector size check into blkvsc_drv_init X-Git-Tag: firefly_0821_release~7613^2~1326^2~305 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3e3264996f313036df518560b58f909d269ff069;p=firefly-linux-kernel-4.4.55.git Staging: hv: Move the sector size check into blkvsc_drv_init Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index adc12ad462e0..6b665d2af0bb 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -822,6 +822,8 @@ static int blkvsc_drv_init(void) struct hv_driver *drv = &blkvsc_drv.base; int ret; + BUILD_BUG_ON(sizeof(sector_t) != 8); + storvsc_drv->ring_buffer_size = blkvsc_ringbuffer_size; memcpy(&drv->dev_type, &dev_type, sizeof(struct hv_guid)); @@ -1046,8 +1048,6 @@ static int __init blkvsc_init(void) { int ret; - BUILD_BUG_ON(sizeof(sector_t) != 8); - ret = blkvsc_drv_init(); return ret;