Re: busy_loop in compile kernel 2.5.68-mm2

William Lee Irwin III (wli@holomorphy.com)
Thu, 24 Apr 2003 20:14:59 -0700


On Thu, Apr 24, 2003 at 08:28:12PM -0600, jds wrote:
> I have problems when compile kernel 2.5.68-mm2 the message is:
> make -f scripts/Makefile.build obj=net/unix
[...]
> arch/i386/pci/built-in.o net/built-in.o --end-group -o .tmp_vmlinux1
> drivers/built-in.o(.text+0x9d70b): In function `busy_loop':
> : undefined reference to `save_flags'
> drivers/built-in.o(.text+0x9d710): In function `busy_loop':
> : undefined reference to `sti'
> drivers/built-in.o(.text+0x9d72d): In function `busy_loop':
> : undefined reference to `restore_flags'
> make: *** [.tmp_vmlinux1] Error 1
> Help me please
> Regards

You have an SMP-unsafe driver configured.
A little birdy called grep(1) told me:

$ grep -nr busy_loop drivers
drivers/net/pcmcia/xirc2ps_cs.c:443:busy_loop(u_long len)
drivers/net/pcmcia/xirc2ps_cs.c:1788: busy_loop(HZ/25); /* wait 40 msec */
drivers/net/pcmcia/xirc2ps_cs.c:1793: busy_loop(HZ/50); /* wait 20 msec */
drivers/net/pcmcia/xirc2ps_cs.c:1807: busy_loop(HZ/50); /* wait 20 msec */
drivers/net/pcmcia/xirc2ps_cs.c:1809: busy_loop(HZ/25); /* wait 40 msec */
drivers/net/pcmcia/xirc2ps_cs.c:1820: busy_loop(HZ/2); /* about 500ms */
drivers/net/pcmcia/xirc2ps_cs.c:1839: busy_loop(HZ/25); /* wait 40 msec to let it complete */
drivers/net/pcmcia/xirc2ps_cs.c:1898: busy_loop(HZ/50);
drivers/net/pcmcia/xirc2ps_cs.c:1907: busy_loop(HZ/25); /* wait 40 msec to let it complete */
drivers/net/pcmcia/xirc2ps_cs.c:2000: busy_loop(HZ/10); /* wait 100 msec */

-- wli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/