Re: errors when compiling 2.6 kernel source
> > I tried compiling a 2.6 kernel from sources (2.6.11 from kernel.org to
> > be exact), and I got the following:
> > What's causing this ?
> That looks like the swim3 driver. Last I heard, it hadn't been updated
> when some of the other parts of the kernel changed.
Looks like it hasn't been touched in ages, then. BenH should correct me if
I'm way off base, but you basically need to replace, at a minimum:
save_flags(flags)+cli() by local_irq_save(flags)
restore_flags(flags) by local_irq_restore(flags)
sti() by local_irq_enable()
for uniprocessor use (are there any SMP capable machines with SWIM3??). If
that compiles and runs, you can proceed to using proper spinlock
functions (a spinlock has already been added to the driver but isn't
See swim_iop.c and floppy.c for guidance.