Ignore:
Timestamp:
Jul 22, 2010, 7:20:45 PM (15 years ago)
Author:
David Azarewicz
Message:

flush_workqueue hack, compiler warnings

File:
1 edited

Legend:

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

    r305 r522  
     1Apparently this file is not used on OS2
    12#ifndef __SOUND_LOCAL_DRIVER_H
    23#define __SOUND_LOCAL_DRIVER_H
     
    678679#define schedule_work(w) snd_compat_schedule_work(w)
    679680struct workqueue_struct *snd_compat_create_workqueue(const char *name);
    680 #ifndef TARGET_OS2
    681 #define create_workqueue(name) snd_compat_create_workqueue((name))
    682 #endif
     681
    683682void snd_compat_flush_workqueue(struct workqueue_struct *wq);
    684683#define flush_workqueue(wq) snd_compat_flush_workqueue((wq));
    685684void snd_compat_destroy_workqueue(struct workqueue_struct *wq);
    686 #ifndef TARGET_OS2
    687 #define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq));
    688 #endif
    689685int snd_compat_queue_work(struct workqueue_struct *wq, struct work_struct *work);
    690 #ifndef TARGET_OS2
    691 #define queue_work(wq, work) snd_compat_queue_work((wq), (work))
    692 #endif
    693686int snd_compat_queue_delayed_work(struct workqueue_struct *wq, struct delayed_work *work, unsigned long delay);
    694 #ifndef TARGET_OS2
    695 #define queue_delayed_work(wq, work, delay) snd_compat_queue_delayed_work((wq), (work), (delay))
    696 #endif
    697687#define schedule_delayed_work(work, delay) snd_compat_queue_delayed_work(NULL, (work), (delay))
    698688int snd_compat_cancel_delayed_work(struct delayed_work *work);
    699689#define cancel_delayed_work(work) snd_compat_cancel_delayed_work(work)
    700690#define flush_scheduled_work()
     691
     692#ifndef TARGET_OS2
     693#define create_workqueue(name) snd_compat_create_workqueue((name))
     694#define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq));
     695#define queue_work(wq, work) snd_compat_queue_work((wq), (work))
     696#define queue_delayed_work(wq, work, delay) snd_compat_queue_delayed_work((wq), (work), (delay))
     697#endif
     698
    701699#ifdef TARGET_OS2
    702700struct completion {
     
    963961        MODULE_PARM(name, SNDRV_MODULE_TYPE_##type)
    964962#else
    965 #define module_param_array(name, type, nump, perm) 
    966 #define module_param(name, type, perm) 
     963#define module_param_array(name, type, nump, perm)
     964#define module_param(name, type, perm)
    967965#endif /* TARGET_OS2 */
    968966#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 10)
Note: See TracChangeset for help on using the changeset viewer.