Re: linux-2.4.9: atomic_dec_and_lock sometimes used while not defined

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Fri Aug 17 2001 - 04:20:18 EST


>>>>> " " == Adam J Richter <adam@yggdrasil.com> writes:

> If I try to build a kernel that can do SMP and run on a 386,
> the linux-2.4.9 NFS client gets compiled with an undefined
> reference to atomic_dec_and_lock().

Why aren't you seeing the same error in linux/fs/inode.c? That also
references atomic_dec_and_lock when compiling 386 SMP...

> However, I'm really not clear enough on the semantics of
> atomic_dec_and_lock vs. atomic_dec_and_test to know whether
> this is safe.

> Also, it looks like arch/sparc64/sparc64_ksyms.c references
> atomic_dec_and_test without it every being defined on any
> architecture other than x86, so I am suspicious of a partially
> applied patch here.

See linux/arch/sparc64/lib/dec_and_lock.S. atomic_dec_and_lock should
indeed be defined on a sparc64.

Cheers,
   Trond
-
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 : Thu Aug 23 2001 - 21:00:22 EST