lkml.org 
[lkml]   [1999]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] megaraid driver fix
From
Date

The following (rather trivial) patch makes the megaraid driver work
under 2.1 kernels for me. All it does is to include <linux/version.h>,
to have LINUX_VERSION_CODE defined. With my kernel configuration, this
wasn't defined when compiling drivers/scsi/hosts.c, causing the
megaraid Scsi_Host_Template to be initialized wrongly, leading to a
jump into random memory during scsi initialization. I'd guess this
problem only shows up when the megaraid is the only compiled-in scsi
driver.

--- linux-2.2.0-pre6/drivers/scsi/megaraid.h Fri Dec 18 19:12:25 1998
+++ linux-2.2.0-pre7/drivers/scsi/megaraid.h Tue Jan 19 00:10:16 1999
@@ -1,6 +1,10 @@
#ifndef __MEGARAID_H__
#define __MEGARAID_H__

+#ifndef LINUX_VERSION_CODE
+#include <linux/version.h>
+#endif
+
#define IN_ISR 0x80000000L
#define NO_INTR 0x40000000L
#define IN_TIMEOUT 0x20000000L

--
Frode Vatvedt Fjeld

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.337 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site