Changeset 479 for GPL/trunk/lib32/misc.c


Ignore:
Timestamp:
May 1, 2010, 9:49:10 PM (15 years ago)
Author:
David Azarewicz
Message:

Cleanup compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/misc.c

    r445 r479  
    4646mem_map_t *mem_map = 0;
    4747int this_module[64] = {0};
    48                
     48
    4949#include <stdarg.h>
    5050
     
    6464
    6565    char *pszLastALSAError;
    66    
     66
    6767    pszLastALSAError= iLastError ? szLastALSAError2 : szLastALSAError1;
    6868
     
    7575        DebugInt3();
    7676    }
    77    
     77
    7878    dprintf( (pszLastALSAError) );
    7979    if(++iLastError > 1) {
     
    240240        }
    241241        return 0;
     242}
     243//******************************************************************************
     244//******************************************************************************
     245static void run_workqueue(struct workqueue_struct *wq)
     246{
     247        unsigned long flags;
     248
     249        spin_lock_irqsave(&wq->lock, flags);
     250        while (!list_empty(&wq->worklist)) {
     251                struct work_struct *work = list_entry(wq->worklist.next,
     252                                                      struct work_struct, entry);
     253                void (*f) (void *) = work->func;
     254                void *data = work->data;
     255
     256                list_del_init(wq->worklist.next);
     257                spin_unlock_irqrestore(&wq->lock, flags);
     258                clear_bit(0, &work->pending);
     259                f(data);
     260                spin_lock_irqsave(&wq->lock, flags);
     261                wake_up(&wq->work_done);
     262        }
     263        spin_unlock_irqrestore(&wq->lock, flags);
    242264}
    243265//******************************************************************************
     
    263285                spin_unlock_irq(&wq->lock);
    264286        }
    265 }
    266 //******************************************************************************
    267 //******************************************************************************
    268 static void run_workqueue(struct workqueue_struct *wq)
    269 {
    270         unsigned long flags;
    271 
    272         spin_lock_irqsave(&wq->lock, flags);
    273         while (!list_empty(&wq->worklist)) {
    274                 struct work_struct *work = list_entry(wq->worklist.next,
    275                                                       struct work_struct, entry);
    276                 void (*f) (void *) = work->func;
    277                 void *data = work->data;
    278 
    279                 list_del_init(wq->worklist.next);
    280                 spin_unlock_irqrestore(&wq->lock, flags);
    281                 clear_bit(0, &work->pending);
    282                 f(data);
    283                 spin_lock_irqsave(&wq->lock, flags);
    284                 wake_up(&wq->work_done);
    285         }
    286         spin_unlock_irqrestore(&wq->lock, flags);
    287287}
    288288//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.