Changeset 80d2bdb in mainline for generic/include/synch/spinlock.h


Ignore:
Timestamp:
2005-12-15T16:10:19Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b4cad8b2
Parents:
7dd2561
Message:

We are now almost -Wall clean.

  • redefined atomic_t
  • deleted many, many unused variables
  • some minor code cleanups found using compiler warning.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/synch/spinlock.h

    r7dd2561 r80d2bdb  
    3333#include <typedefs.h>
    3434#include <preemption.h>
     35#include <arch/atomic.h>
    3536
    3637#ifdef CONFIG_SMP
     
    3940        char *name;
    4041#endif
    41         int val;
     42        atomic_t val;
    4243};
    4344
     
    5657        spinlock_t slname = {           \
    5758                .name = #slname,        \
    58                 .val = 0                \
     59                .val = { 0 }            \
    5960        }
    6061#else
    6162#define SPINLOCK_INITIALIZE(slname)     \
    6263        spinlock_t slname = {           \
    63                 .val = 0                \
     64                .val = { 0 }            \
    6465        }
    6566#endif
Note: See TracChangeset for help on using the changeset viewer.