Ignore:
Timestamp:
Jun 4, 2007, 3:50:19 AM (18 years ago)
Author:
Brendan Oakley
Message:

Muted some compile warnings, moved atomic_dec_and_test from compat_22.h to atomic.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/compat_22.h

    r77 r118  
    406406#endif
    407407
    408 #define ATOMIC_INIT(i)  { (i) }
    409 
    410 /**
    411  * atomic_dec_and_test - decrement and test
    412  * @v: pointer of type atomic_t
    413  *
    414  * Atomically decrements @v by 1 and
    415  * returns true if the result is 0, or false for all other
    416  * cases.  Note that the guaranteed
    417  * useful range of an atomic_t is only 24 bits.
    418  */
    419 static inline int atomic_dec_and_test(volatile atomic_t *v)
    420 {
    421     atomic_dec(v);
    422     if (v->counter == 0)
    423         return 1;
    424     return 0;
    425 }
    426 
    427408/**
    428409 * list_for_each_safe   -       iterate over a list safe against removal of list entry
Note: See TracChangeset for help on using the changeset viewer.