Changeset 317


Ignore:
Timestamp:
Mar 24, 2008, 11:36:19 PM (17 years ago)
Author:
Paul Smedley
Message:

Fix more compiler warnings (Again)

Location:
GPL/branches/uniaud-2.0/alsa-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud-2.0/alsa-kernel/core/sound.c

    r305 r317  
    134134#endif
    135135        struct snd_minor *mptr = NULL;
     136#ifndef TARGET_OS2
    136137        const struct file_operations *old_fops;
     138#else
     139        struct file_operations *old_fops;
     140#endif
    137141        int err = 0;
    138142
     
    172176}
    173177
     178#ifndef TARGET_OS2
    174179static const struct file_operations snd_fops =
     180#else
     181static struct file_operations snd_fops =
     182#endif
    175183{
    176184#ifndef TARGET_OS2
     
    240248 */
    241249int snd_register_device_for_dev(int type, struct snd_card *card, int dev,
     250#ifndef TARGET_OS2
    242251                                const struct file_operations *f_ops,
     252#else
     253                                struct file_operations *f_ops,
     254#endif
    243255                                void *private_data,
    244256                                const char *name, struct device *device)
  • GPL/branches/uniaud-2.0/alsa-kernel/include/sound/core.h

    r305 r317  
    103103        struct file *file;
    104104        struct snd_monitor_file *next;
     105#ifndef TARGET_OS2
    105106        const struct file_operations *disconnected_f_op;
     107#else
     108        struct file_operations *disconnected_f_op;
     109#endif
    106110        struct list_head shutdown_list;
    107111};
     
    202206        int card;                       /* card number */
    203207        int device;                     /* device number */
     208#ifndef TARGET_OS2
    204209        const struct file_operations *f_ops;    /* file operations */
     210#else
     211        struct file_operations *f_ops;  /* file operations */
     212#endif
    205213        void *private_data;             /* private data for f_ops->open */
    206214        struct device *dev;             /* device for sysfs */
     
    227235int snd_register_device_for_dev(int type, struct snd_card *card,
    228236                                int dev,
     237#ifndef TARGET_OS2
    229238                                const struct file_operations *f_ops,
     239#else
     240                                struct file_operations *f_ops,
     241#endif
    230242                                void *private_data,
    231243                                const char *name,
     
    250262 */
    251263static inline int snd_register_device(int type, struct snd_card *card, int dev,
     264#ifndef TARGET_OS2
    252265                                      const struct file_operations *f_ops,
     266#else
     267                                      struct file_operations *f_ops,
     268#endif
    253269                                      void *private_data,
    254270                                      const char *name)
Note: See TracChangeset for help on using the changeset viewer.