From: Paul Mackerras <paulus@samba.org>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: "Randy.Dunlap" <rddunlap@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: bitmaps/bitops
Date: Sun, 16 Mar 2003 12:41:57 +1100 (EST) [thread overview]
Message-ID: <15987.54885.269534.490554@nanango.paulus.ozlabs.org> (raw)
In-Reply-To: <200303160131.h2G1V3B10636@devserv.devel.redhat.com>
Pete Zaitcev writes:
> > but the prototype for test_and_set_bit() depends on $(ARCH), and it's
> > not consistent, with the second arg (bitmap address) being one of:
> > volatile void *
> > void *
> > volatile unsigned long *
>
> It should be unsigned long pointer. I have no idea why
> volatile is still alive. Perhaps Linus can remember why he
> left it in on is386. Other arch maintainers midnlessly ape him
> in this area. I think I even kept his e-mail where he explains
> why volatile has to go.
The volatile is there (at least in ppc) because without it you get
compile warnings. I don't see why the bitops particularly should be
the anti-volatile police. I agree that using volatile is usually a
bad idea (unless you are accessing a memory-mapped I/O device).
Paul.
next prev parent reply other threads:[~2003-03-16 1:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1047762781.3457.linux-kernel2news@redhat.com>
2003-03-16 1:31 ` bitmaps/bitops Pete Zaitcev
2003-03-16 1:41 ` Paul Mackerras [this message]
2003-03-16 21:42 ` bitmaps/bitops Alan Cox
2003-03-15 21:09 bitmaps/bitops Randy.Dunlap
2003-03-15 21:51 ` bitmaps/bitops Geert Uytterhoeven
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=15987.54885.269534.490554@nanango.paulus.ozlabs.org \
--to=paulus@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
--cc=zaitcev@redhat.com \
/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®