[ previous ] [ next ] [ threads ]
 
 From:  Gabor <gabor at vmunix dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  watchdog with 4.8 kernel
 Date:  Wed, 18 Jun 2003 14:56:46 -0400
We have compiled our own 4.8 kernel because we needed some extra
features and have tried to apply the patch to elan-mmcr.c from
http://wleiden.webweaving.org:8080/svn/node-config/soekris/watchdog/patch.elan-mmrc.c.txt
However, that patch was applied to the 5.x code base.  When I grabbed
the elan-mmcr.c file from the 5.x code base it was quite different
from the 4.x base.  That code will not compile.  Here is the
complaints.

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include opt_global.h 
-mpreferred-stack-boundary=2  ../../i386/i386/elan-mmcr.c
../../i386/i386/elan-mmcr.c:27: sys/timetc.h: No such file or directory
../../i386/i386/elan-mmcr.c:31: sys/mutex.h: No such file or directory
../../i386/i386/elan-mmcr.c: In function `init_AMD_Elan_sc520':
../../i386/i386/elan-mmcr.c:80: `thread0' undeclared (first use in this function)
../../i386/i386/elan-mmcr.c:80: (Each undeclared identifier is reported only once
../../i386/i386/elan-mmcr.c:80: for each function it appears in.)
../../i386/i386/elan-mmcr.c:89: warning: implicit declaration of function `tc_init'
../../i386/i386/elan-mmcr.c: In function `elan_drvinit':
../../i386/i386/elan-mmcr.c:132: warning: implicit declaration of function `mtx_init'
../../i386/i386/elan-mmcr.c:132: `MTX_DEF' undeclared (first use in this function)
../../i386/i386/elan-mmcr.c: In function `timeout_errled':
../../i386/i386/elan-mmcr.c:147: warning: implicit declaration of function `mtx_lock'
../../i386/i386/elan-mmcr.c:204: warning: implicit declaration of function `mtx_unlock'
../../i386/i386/elan-mmcr.c: At top level:
../../i386/i386/elan-mmcr.c:317: warning: `struct thread' declared inside parameter list
../../i386/i386/elan-mmcr.c:317: warning: its scope is only this definition or declaration, which is
probably not what you want.
../../i386/i386/elan-mmcr.c:318: conflicting types for `elan_ioctl'
../../i386/i386/elan-mmcr.c:98: previous declaration of `elan_ioctl'
../../i386/i386/elan-mmcr.c:43: storage size of `errled_mtx' isn't known
*** Error code 1