hpt374 kernel driver will not compile on kernel 2.6

You may get the following error compiling hpt374:

[root@backup4 hpt]# make
> cp -f raid.o raid.obj
> make -C /usr/src/linux SUBDIRS=`pwd` modules
> make[1]: Entering directory `/usr/src/linux-2.6.10′
> CC [M] /usr/src/hpt/hpt.o
> In file included from /usr/src/hpt/hpt.c:49:
> drivers/scsi/hosts.h:1:2: warning: #warning “This file is obsolete, please
> use instead”
> In file included from /usr/src/hpt/hpt.c:116:
> /usr/src/hpt/entry.c:1099: unknown field `abort’ specified in initializer
> /usr/src/hpt/entry.c:1099: unknown field `reset’ specified in initializer
> make[2]: *** [/usr/src/hpt/hpt.o] Error 1
> make[1]: *** [_module_/usr/src/hpt] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.10′
> make: *** [default] Error 2

To correct edit hpttempl.h and remove line 23-24. They will be labelled abourt and reset.

You may also want to change line 49 in hpt.c to
#include “/usr/src/linux/include/scsi/scsi_host.h”
to correct the obsolete error.