Changeset 7c801d1 in rtems-libbsd


Ignore:
Timestamp:
Oct 10, 2013, 8:31:04 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
cc2298f
Parents:
025d8f2
git-author:
Sebastian Huber <sebastian.huber@…> (10/10/13 08:31:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:45)
Message:

Fix warnings in <sys/refcount.h>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/refcount.h

    r025d8f2 r7c801d1  
    5252{
    5353
     54#ifndef __rtems__
    5455        atomic_add_acq_int(count, 1);   
     56#else /* __rtems__ */
     57        atomic_add_acq_int((volatile int *) count, 1);
     58#endif /* __rtems__ */
    5559}
    5660
     
    6165
    6266        /* XXX: Should this have a rel membar? */
     67#ifndef __rtems__
    6368        old = atomic_fetchadd_int(count, -1);
     69#else /* __rtems__ */
     70        old = atomic_fetchadd_int((volatile int *) count, -1);
     71#endif /* __rtems__ */
    6472        KASSERT(old > 0, ("negative refcount %p", count));
    6573        return (old == 1);
Note: See TracChangeset for help on using the changeset viewer.