public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* cmpxchg is not available to generic code
@ 2007-07-19  7:05 Andrew Morton
  2007-07-19  7:27 ` David Miller
  2007-07-19  8:02 ` Dave Airlie
  0 siblings, 2 replies; 12+ messages in thread
From: Andrew Morton @ 2007-07-19  7:05 UTC (permalink / raw)
  To: Dave Airlie; +Cc: linux-kernel

arm:

drivers/char/drm/drm_lock.c: In function `drm_lock_take':
drivers/char/drm/drm_lock.c:221: error: implicit declaration of function `cmpxchg'

You might be able to use atomic_cmpxchg, which _is_ present
on all architectures.  Or use a spinlock.

What's that code doing anyway?  driver-private locking primitives?

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

end of thread, other threads:[~2007-07-23  6:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-19  7:05 cmpxchg is not available to generic code Andrew Morton
2007-07-19  7:27 ` David Miller
2007-07-19  8:15   ` Dave Airlie
2007-07-19  8:21     ` Andrew Morton
2007-07-19  8:23       ` Dave Airlie
2007-07-23  6:48         ` Nick Piggin
2007-07-19 20:54       ` David Miller
2007-07-19 20:58     ` David Miller
2007-07-19  8:02 ` Dave Airlie
2007-07-19  8:10   ` Andrew Morton
2007-07-19  8:19     ` Dave Airlie
2007-07-19  8:36       ` Andrew Morton

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