Commit 3e326499 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: Move the sector size check into blkvsc_drv_init

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c1c809b5
...@@ -822,6 +822,8 @@ static int blkvsc_drv_init(void) ...@@ -822,6 +822,8 @@ static int blkvsc_drv_init(void)
struct hv_driver *drv = &blkvsc_drv.base; struct hv_driver *drv = &blkvsc_drv.base;
int ret; int ret;
BUILD_BUG_ON(sizeof(sector_t) != 8);
storvsc_drv->ring_buffer_size = blkvsc_ringbuffer_size; storvsc_drv->ring_buffer_size = blkvsc_ringbuffer_size;
memcpy(&drv->dev_type, &dev_type, sizeof(struct hv_guid)); memcpy(&drv->dev_type, &dev_type, sizeof(struct hv_guid));
...@@ -1046,8 +1048,6 @@ static int __init blkvsc_init(void) ...@@ -1046,8 +1048,6 @@ static int __init blkvsc_init(void)
{ {
int ret; int ret;
BUILD_BUG_ON(sizeof(sector_t) != 8);
ret = blkvsc_drv_init(); ret = blkvsc_drv_init();
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment