Changeset 80d2bdb in mainline for generic/include


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.
Location:
generic/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/include/cpu.h

    r7dd2561 r80d2bdb  
    5454
    5555        #ifdef CONFIG_SMP
    56         int kcpulbstarted;
     56        atomic_t kcpulbstarted;
    5757        waitq_t kcpulb_wq;
    5858        #endif /* CONFIG_SMP */
  • generic/include/debug.h

    r7dd2561 r80d2bdb  
    3434#include <arch.h>
    3535
    36 #define CALLER       ((__address *)__builtin_return_address(0))
     36#define CALLER       ((__address)__builtin_return_address(0))
    3737
    3838#ifndef HERE
  • 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.