]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
Staging: hv: Move the sector size check into blkvsc_drv_init
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:55:55 +0000 (07:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:49:22 +0000 (13:49 -0700)
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>
drivers/staging/hv/blkvsc_drv.c

index adc12ad462e048bf484676d0ae0d3fcd686b7eec..6b665d2af0bb7514ad1d638c79052a3ade097134 100644 (file)
@@ -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;