asm-generic/atomic.h: fix type used in atomic_clear_mask
commitf6081bd3f8152cdd3d857f55631bbb4b72182b82
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Jul 2011 23:09:10 +0000 (26 16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 23:49:47 +0000 (26 16:49 -0700)
treefa6cf9b5432ea33d8182d2a64465d28ecfc13315
parent3eea44ea753923c6af90be808426ecddc482de61
asm-generic/atomic.h: fix type used in atomic_clear_mask

The atomic helpers are supposed to take an atomic_t pointer, not a random
unsigned long pointer.  So convert atomic_clear_mask over.

While we're here, also add some nice documentation to the func.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Arun Sharma <asharma@fb.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/atomic.h