Re: 2.4.10 build failure - atomic_dec_and_lock export

From: Andreas Schwab (schwab@suse.de)
Date: Tue Oct 02 2001 - 11:39:57 EST


Trond Myklebust <trond.myklebust@fys.uio.no> writes:

|> >>>>> " " == Ian Grant <Ian.Grant@cl.cam.ac.uk> writes:
|>
|> > Trond,
|> > 2.4.10 won't link with CONFIG_SMP and i386 CPU selected. I
|> > believe the problem
|> > lies in in the #ifndef atomic_dec_and_lock in
|> > lib/dec_and_lock.c. As far as I can see this symbol is always
|> > defined because it's exported.
|>
|> This patch looks very redundant.
|>
|> If you have CONFIG_SMP defined then atomic_dec_and_lock will never get
|> defined

Unless you use CONFIG_MODVERSIONS, which causes atomic_dec_and_lock to be
versioned and defined as a macro via <linux/modversions.h>.

Andreas.

-- 
Andreas Schwab                                  "And now for something
Andreas.Schwab@suse.de				completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
-
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/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:22 EST