Skip to content

Commit

Permalink
Staging: hv: Move the sector size check into blkvsc_drv_init
Browse files Browse the repository at this point in the history
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 11, 2011
1 parent c1c809b commit 3e32649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3e32649

Please sign in to comment.