From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: linux-2.4.9: atomic_dec_and_lock sometimes used while not defined
Date: 17 Aug 2001 11:20:18 +0200 [thread overview]
Message-ID: <shs8zgjdovh.fsf@charged.uio.no> (raw)
In-Reply-To: <200108161821.LAA02805@adam.yggdrasil.com>
In-Reply-To: "Adam J. Richter"'s message of "Thu, 16 Aug 2001 11:21:45 -0700"
>>>>> " " == 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
next prev parent reply other threads:[~2001-08-17 9:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-16 18:21 Adam J. Richter
2001-08-17 9:20 ` Trond Myklebust [this message]
2001-08-17 10:15 ` Trond Myklebust
2001-08-17 10:31 ` Christoph Hellwig
2001-08-17 10:40 ` Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=shs8zgjdovh.fsf@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=adam@yggdrasil.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®