Pham Ngoc Hai personal web site

Syndicate

Patch for vhba-module to work with kernel >= 2.6.23
 
Written by Pham Ngoc Hai, on 11-01-2008 00:06

Patch for vhba-module to work with kernel >= 2.6.23
This is my patch to make vhba-module compiled with kernel
>= 2.6.23 with commit
18dabf473e15850c0dbc8ff13ac1e2806d542c15
If you got error like:
error: 'struct scatterlist' has no member named 'page'
then this patch is for you.
Tested with kernel 2.6.24-rc4 on x86_64 arch

--- vhba-module-1.0.0/vhba.c    2007-12-20 02:56:57.000000000 +0100
+++ vhba-module-new/vhba.c    2008-01-06 08:49:18.000000000 +0100
@@ -26,6 +26,7 @@
#include <linux/platform_device.h>
#include <linux/miscdevice.h>
#include <linux/poll.h>
+#include <linux/scatterlist.h>
#include <asm/uaccess.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
@@ -520,7 +521,7 @@
}
uaddr += len;
-                kaddr = kmap_atomic(sg[i].page, KM_USER0);
+                kaddr = kmap_atomic(sg_page(&sg[i]), KM_USER0);
memcpy(kaddr + sg[i].offset, kbuf, len);
kunmap_atomic(kaddr, KM_USER0);

Last update: 19-01-2008 08:18

Published in : Computer stuff, *nix
Keywords : Patch for vhba-module to work with kernel >= 2.6.23, error: 'struct scatterlist' has no member named 'page'
Quote this article in website Favoured Print Send to friend Related articles Save this to del.icio.us

Users' Comments (1) RSS feed comment
Posted by bedroom, on 29-06-2008 22:45, , Guest
1. Thanks
Your website was the first result on Google for this problem :) Thanks for the patch !
 
» Report this comment to administrator
» Reply to this comment...

Add your comment



mXcomment 1.0.9 © 2007-2012 - visualclinic.fr
License Creative Commons - Some rights reserved
< Prev   Next >


Search

Calendar

 Jan   February 2012   Mar

SMTWTFS
   1  2  3  4
  5  6  7  8  91011
12131415161718
19202122232425
26272829 
VLSI High Level Synthesis

Random Photos






Donate

Enter Amount:

Sponsored Links

Copyright © 2007 Joomla Templates By Joomladesigns.  Modified By Pham Ngoc Hai