Hi,

what is the intended difference between including 
  #include <asm/delay.h>
vs
  #include <linux/delay.h>

Currently (2.2.17preX) this results in 
  ... `loops_per_sec' undeclared (first use in this function)
since <asm/delay.h> includes <asm/smp.h> but this
defines loops_per_sec only for the SMP case, while
on x86, the file  <asm/processor.h> defines it regardless of SMP.

Including <linux/delay.h> declares loops_per_sec as "extern unsigned long",
which would make these drivers compile.

A quick grep in drivers/*/*.c yields:
net/am79c961a.c:#include <asm/delay.h>
net/comx-hw-comx.c:#include <asm/delay.h>
net/seeq8005.c:#include <asm/delay.h>
sbus/dvma.c:#include <asm/delay.h>
scsi/seagate.c:#include <asm/delay.h>
video/clgenfb.c:#include <asm/delay.h>



-- 
with kind regards (mit freundlichem Grinsen),
                              Ruediger Oertel ([EMAIL PROTECTED])
----------------------------------------------------------
          does "DONT PANIC" give a hint ?

Reply via email to