Attachment 'rr62x-linuxla-src-v1.0-natty.patch'
Download
Toggle line numbers
1 diff -Naur rr62x-linuxla-src-v1.0/osm/linux/os_linux.c rr62x-linuxla-src-v1.0-patch/osm/linux/os_linux.c
2 --- rr62x-linuxla-src-v1.0/osm/linux/os_linux.c 2010-04-20 22:20:41.000000000 -0700
3 +++ rr62x-linuxla-src-v1.0-patch/osm/linux/os_linux.c 2011-06-25 12:49:28.058368483 -0700
4 @@ -260,7 +260,7 @@
5 struct block_device *bdev = bdget(MKDEV(major[i], minor));
6 if (bdev &&
7 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
8 - blkdev_get(bdev, FMODE_READ)
9 + blkdev_get(bdev, FMODE_READ, NULL)
10 #else
11 blkdev_get(bdev, FMODE_READ, 0 __BDEV_RAW)
12 #endif
13 diff -Naur rr62x-linuxla-src-v1.0/osm/linux/osm_linux.c rr62x-linuxla-src-v1.0-patch/osm/linux/osm_linux.c
14 --- rr62x-linuxla-src-v1.0/osm/linux/osm_linux.c 2010-04-20 22:20:41.000000000 -0700
15 +++ rr62x-linuxla-src-v1.0-patch/osm/linux/osm_linux.c 2011-06-25 12:37:31.565164140 -0700
16 @@ -922,7 +922,7 @@
17 }
18 }
19
20 -static int hpt_queuecommand (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
21 +static int hpt_queuecommand_lck (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
22 {
23 struct Scsi_Host *phost = sc_host(SCpnt);
24 PVBUS_EXT vbus_ext = get_vbus_ext(phost);
25 @@ -1456,6 +1456,12 @@
26 return 0;
27 }
28
29 +#ifdef DEF_SCSI_QCMD
30 +DEF_SCSI_QCMD(hpt_queuecommand)
31 +#else
32 +#define hpt_queuecommand hpt_queuecommand_lck
33 +#endif
34 +
35 static int hpt_reset (Scsi_Cmnd *SCpnt)
36 {
37 PVBUS_EXT vbus_ext = get_vbus_ext(sc_host(SCpnt));
38 diff -Naur rr62x-linuxla-src-v1.0/osm/linux/osm_linux.h rr62x-linuxla-src-v1.0-patch/osm/linux/osm_linux.h
39 --- rr62x-linuxla-src-v1.0/osm/linux/osm_linux.h 2010-04-20 22:20:41.000000000 -0700
40 +++ rr62x-linuxla-src-v1.0-patch/osm/linux/osm_linux.h 2011-06-25 12:27:26.835399082 -0700
41 @@ -8,10 +8,6 @@
42
43 /* system headers */
44
45 -#ifndef AUTOCONF_INCLUDED
46 -#include <linux/config.h>
47 -#endif
48 -
49 #include <linux/version.h>
50
51 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) && defined(MODVERSIONS)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.