Ignore:
Timestamp:
May 16, 2020, 10:38:27 AM (5 years ago)
Author:
Paul Smedley
Message:

Fix some warnings

Location:
GPL/branches/uniaud32-linux-3.2.102
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-linux-3.2.102/alsa-kernel/core/control.c

    r612 r614  
    459459 * You don't need to call snd_ctl_free_one(). You must be in
    460460 * the write lock - down_write(&card->controls_rwsem).
    461  *
     461 * 
    462462 * Returns 0 if successful, or a negative error code on failure.
    463463 */
     
    484484 * @card: the card instance
    485485 * @id: the control id to remove
    486  *
     486 * 
    487487 * Finds the control instance with the given id, removes it from the
    488488 * card list and releases it.
  • GPL/branches/uniaud32-linux-3.2.102/include/linux/kernel.h

    r612 r614  
    6767        printk(KERN_INFO fmt,##arg)
    6868
    69 #define pr_warn(fmt, arg) \
     69#define pr_warn(fmt, arg, ...) \
    7070        printk(KERN_WARNING fmt, ##arg)
    7171
  • GPL/branches/uniaud32-linux-3.2.102/include/linux/string.h

    r612 r614  
    1212
    1313char *kstrdup(const char *s, unsigned int gfp_flags);
     14void *memdup_user(const void __user *src, size_t len);
    1415#define strnlen strnlen_s
     16_WCRTLINK extern size_t  strnlen_s( const char *__s, size_t __maxsize );
    1517#endif
    1618
  • GPL/branches/uniaud32-linux-3.2.102/include/linux/workqueue.h

    r612 r614  
    5959#define INIT_DELAYED_WORK(_work, _func) INIT_WORK(&(_work)->work, _func)
    6060#define work_pending(work) test_bit(0, &(work)->pending)
     61int schedule_work(struct work_struct *works);
    6162#define delayed_work_pending(w) work_pending(&(w)->work)
    6263#define schedule_delayed_work(work, delay) queue_delayed_work(NULL, (work), (delay))
  • GPL/branches/uniaud32-linux-3.2.102/include/proto.h

    r518 r614  
    1 extern void *memdup_user(void __user *src, size_t len);
    21extern void snd_free_dev_pages(struct device *dev, size_t size, void *ptr, dma_addr_t dma);
    32extern void *snd_malloc_dev_pages(struct device *dev, size_t size, dma_addr_t *dma);
  • GPL/branches/uniaud32-linux-3.2.102/lib32/misc.c

    r598 r614  
    399399//******************************************************************************
    400400//******************************************************************************
    401 void *memdup_user(void __user *src, size_t len)
     401void *memdup_user(const void __user *src, size_t len)
    402402{
    403403        void *p = kmalloc(len, GFP_KERNEL);
Note: See TracChangeset for help on using the changeset viewer.