public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Why does test_bit() take a volatile addr?
@ 2013-09-16  4:08 Rusty Russell
  2013-09-16  6:53 ` Stephen Rothwell
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Rusty Russell @ 2013-09-16  4:08 UTC (permalink / raw)
  To: torvalds; +Cc: Michael S. Tsirkin, LKML

Predates git, does anyone remember the rationale?

ie:
        int test_bit(int nr, const volatile unsigned long *addr)

I noticed because gcc failed to elimiate some code in a patch I was
playing with.

I'm nervous about subtle bugs involved in ripping it out, even if noone
knows why.  Should I add __test_bit()?

Thanks,
Rusty.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-09-23  1:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-16  4:08 Why does test_bit() take a volatile addr? Rusty Russell
2013-09-16  6:53 ` Stephen Rothwell
2013-09-16  7:26   ` Michael S. Tsirkin
2013-09-16  8:02     ` Stephen Rothwell
2013-09-16  8:47       ` Michael S. Tsirkin
2013-09-16  8:20 ` Geert Uytterhoeven
2013-09-16  8:37 ` Michael S. Tsirkin
2013-09-16  8:40 ` Oliver Neukum
2013-09-16  8:44   ` Michael S. Tsirkin
2013-09-16  8:49     ` Oliver Neukum
2013-09-16 11:59 ` Linus Torvalds
2013-09-22 21:37 ` Rob Landley
2013-09-23  1:13   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox