提交 3e326499 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: Move the sector size check into blkvsc_drv_init

Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: NHank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册