]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/staging-hv-make-the-hyper-v-virtual-block-driver-build.patch
Fix oinkmaster patch.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / staging-hv-make-the-hyper-v-virtual-block-driver-build.patch
CommitLineData
2cb7cef9
BS
1From foo@baz Tue Jul 14 10:24:38 PDT 2009
2Date: Tue, 14 Jul 2009 10:24:38 -0700
3From: Greg Kroah-Hartman <gregkh@suse.de>
4Subject: Staging: hv: make the Hyper-V virtual block driver build
5
6From: Greg Kroah-Hartman <gregkh@suse.de>
7
8The #define KERNEL_2_6_27 needs to be set, and I adjusted the include
9directories a bit to get things to build properly.
10
11I also fixed up the direct access of bus_id, as that field is now gone.
12Lots of block api changes were needed, and I don't think I got it
13all correct. It would be great of someone who knows the block api better
14could review it.
15
16The hv_blkvsc code should now build, with no errors.
17
18Cc: Hank Janssen <hjanssen@microsoft.com>
19Cc: Haiyang Zhang <haiyangz@microsoft.com>
20Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21
22
23---
24 drivers/staging/hv/BlkVsc.c | 2 +-
25 drivers/staging/hv/blkvsc_drv.c | 9 +++++----
26 2 files changed, 6 insertions(+), 5 deletions(-)
27
28--- a/drivers/staging/hv/BlkVsc.c
29+++ b/drivers/staging/hv/BlkVsc.c
30@@ -21,7 +21,7 @@
31 */
32
33
34-#include "../storvsc/StorVsc.c"
35+#include "StorVsc.c"
36
37 static const char* gBlkDriverName="blkvsc";
38
39--- a/drivers/staging/hv/blkvsc_drv.c
40+++ b/drivers/staging/hv/blkvsc_drv.c
41@@ -20,6 +20,7 @@
42 *
43 */
44
45+#define KERNEL_2_6_27
46
47 #include <linux/init.h>
48 #include <linux/module.h>
49@@ -34,10 +35,10 @@
50 #include <scsi/scsi_eh.h>
51 #include <scsi/scsi_dbg.h>
52
53-#include "logging.h"
54-#include "vmbus.h"
55+#include "include/logging.h"
56+#include "include/vmbus.h"
57
58-#include "StorVscApi.h"
59+#include "include/StorVscApi.h"
60
61 //
62 // #defines
63@@ -313,7 +314,7 @@ static int blkvsc_probe(struct device *d
64 ASSERT(sizeof(struct blkvsc_request_group) <= sizeof(struct blkvsc_request));
65
66 #ifdef KERNEL_2_6_27
67- blkdev->request_pool = kmem_cache_create(device_ctx->device.bus_id,
68+ blkdev->request_pool = kmem_cache_create(dev_name(&device_ctx->device),
69 sizeof(struct blkvsc_request) + storvsc_drv_obj->RequestExtSize, 0,
70 SLAB_HWCACHE_ALIGN, NULL);
71 #else