Skip to contentSkip to conversation

alpha: Hangcheck timer doesn't compile

DISCUSSION Jan-Benedict Glaw 2 participants 2 messages Feb 19, 2003 – Feb 23, 2003

lore
Share & tools
lore
#0 lore raw

Hi!

The hangcheck timer seems cannot be compiled on Alphas:

gcc -Wp,-MD,drivers/char/.hangcheck-timer.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -msmall-data -mcpu=ev4 -Wa,-mev6 -fomit-frame-pointer -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=hangcheck_timer -DKBUILD_MODNAME=hangcheck_timer -c -o drivers/char/hangcheck-timer.o drivers/char/hangcheck-timer.c
drivers/char/hangcheck-timer.c: In function `hangcheck_init':
drivers/char/hangcheck-timer.c:112: `current_cpu_data' undeclared (first use in this function)
drivers/char/hangcheck-timer.c:112: (Each undeclared identifier is reported only once
drivers/char/hangcheck-timer.c:112: for each function it appears in.)
make[3]: *** [drivers/char/hangcheck-timer.o] Error 1
make[2]: *** [drivers/char] Error 2
make[1]: *** [drivers] Error 2
make: *** [modules] Error 2

This is because current_cpu_data doesn't (currently) exist on alpha.

MfG, JBG

Signature · 4 lines
   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur
    fuer einen Freien Staat voll Freier Bürger" | im Internet!
   Shell Script APT-Proxy: http://lug-owl.de/~jbglaw/software/ap2/
#1 lore raw
Quoted 1 line · Jan-Benedict Glaw

This is because current_cpu_data doesn't (currently) exist on alpha.

Indeed. Hangcheck is incorrectly assuming x86 datastructures.

Anyway, the driver as written isn't going to be useful on alpha since the 32-bit TSC rolls over every 8 seconds.

r~