Changeset 647


Ignore:
Timestamp:
Jan 17, 2021, 7:58:38 AM (4 years ago)
Author:
Paul Smedley
Message:

Cleanup headers, fix warnings

Location:
GPL/branches/uniaud32-next
Files:
1 deleted
50 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified GPL/branches/uniaud32-next/alsa-kernel/include/sound/config.h

    r646 r647  
    88
    99#include <linux/version.h>
    10 #include <linux/types.h>
    11 #include <linux/fcntl.h>
    12 #include <linux/signal.h>
    13 #include <linux/kdev_t.h>
    14 #include <linux/wait.h>
    15 #include <linux/list.h>
    16 #include <linux/init.h>
    17 #include <linux/dcache.h>
    18 #include <linux/vmalloc.h>
    19 #include <linux/tqueue.h>
    20 #include <linux/time.h>
    21 #include <linux/timer.h>
    22 #include <linux/stat.h>
    23 #include <linux/major.h>
    24 #include <linux/fs.h>
    25 #include <linux/pid.h>
    26 #include <linux/err.h>
    27 #include <linux/gfp.h>
    28 #include <linux/workqueue.h>
    29 #include <linux/byteorder/little_endian.h>
    30 #include <linux/lockdep.h>
    31 #include <linux/string.h>
    32 #include <asm/ioctl.h>
    33 #include <asm/hardirq.h>
    34 #include <asm/processor.h>
    35 #include <asm/siginfo.h>
    36 #include <dbgos2.h>
    37 #include <limits.h>
    38 #include <sys/cdefs.h>
    39 #include <stdio.h>
    40 #include <linux/config.h>
    41 #include <linux/module.h>
    42 #include <linux/utsname.h>
    43 #include <linux/errno.h>
    44 #include <linux/kernel.h>
    45 #include <linux/sched.h>
    46 #include <linux/malloc.h>
    47 #include <linux/delay.h>
    48 #include <linux/ioport.h>
    49 #include <asm/io.h>
    50 #include <asm/irq.h>
    51 #include <asm/segment.h>
    52 #include <asm/uaccess.h>
    53 #include <asm/system.h>
    54 #include <asm/string.h>
    55 #include <linux/pci.h>
    56 #include <linux/interrupt.h>
    57 #include <linux/pagemap.h>
    58 #include <linux/fs.h>
    59 #include <linux/fcntl.h>
    60 #include <linux/vmalloc.h>
    61 #include <linux/poll.h>
    62 #include <linux/reboot.h>
    63 #include <linux/init.h>
    64 #include <linux/lockdep.h>
    65 #include <linux/smp_lock.h>
    66 
    67 #include <sound/asound.h>
    68 #include <sound/asoundef.h>
    6910
    7011/*
     
    11455/* Still need to work out where the following really belong */
    11556#undef interrupt
    116 #define __builtin_return_address(a)     0
    117 #define __builtin_expect(x, expected_value) (x)
    11857#define assert(a)
    11958#define no_llseek       NULL
    12059#define noop_llseek     NULL
    121 
    122 struct class_device;
    123 struct class_device_attribute {int x; }; /* dummy */
    124 #define __ATTR(cls,perm,read,write) {0 } /* dummy */
    12560
    12661#define min_t(type, x, y) ({                    \
  • TabularUnified GPL/branches/uniaud32-next/alsa-kernel/pci/emu10k1/emu10k1_patch.c

    r629 r647  
    1919#define BLANK_HEAD_SIZE         32
    2020
     21#ifdef TARGET_OS2
     22#define swap(a, b) \
     23        do { int __tmp = (a); (a) = (b); (b) = __tmp; } while (0)
     24#endif
    2125/*
    2226 * allocate a sample block and copy data from userspace
  • TabularUnified GPL/branches/uniaud32-next/alsa-kernel/synth/emux/emux.c

    r615 r647  
    4141        emu->use_time = 0;
    4242
     43#ifndef TARGET_OS2
    4344        timer_setup(&emu->tlist, snd_emux_timer_callback, 0);
     45#else
     46        init_timer(&emu->tlist);
     47        emu->tlist.function = (void(*)(unsigned long))snd_emux_timer_callback;
     48        emu->tlist.data = (unsigned long)emu;
     49#endif
    4450        emu->timer_active = 0;
    4551
  • TabularUnified GPL/branches/uniaud32-next/include/asm/byteorder.h

    r305 r647  
    44#define _ASMi386_BYTEORDER_H
    55
     6#include <linux/byteorder/little_endian.h>
    67
    78#endif
  • TabularUnified GPL/branches/uniaud32-next/include/asm/irq.h

    r32 r647  
    11#ifndef _ASM_IRQ_H
    22#define _ASM_IRQ_H
    3 
     3#include <linux/io.h>
    44void disable_irq(int irq);
    55
  • TabularUnified GPL/branches/uniaud32-next/include/linux/acpi.h

    r640 r647  
    22#define _LINUX_ACPI_H
    33#include <linux/mod_devicetable.h>
     4#include <linux/module.h>
    45#endif /* _LINUX_ACPI_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/async.h

    r615 r647  
    33
    44#include <linux/list.h>
     5#include <linux/types.h>
    56typedef u64 async_cookie_t;
    67typedef void (*async_func_t) (void *data, async_cookie_t cookie);
  • TabularUnified GPL/branches/uniaud32-next/include/linux/bitops.h

    r637 r647  
    33
    44#include <linux/types.h>
     5#include <asm/bitops.h>
    56
    67/*
  • TabularUnified GPL/branches/uniaud32-next/include/linux/byteorder/generic.h

    r32 r647  
    7878 *
    7979 */
    80 
    8180
    8281#if defined(__KERNEL__)
  • TabularUnified GPL/branches/uniaud32-next/include/linux/clocksource.h

    r625 r647  
    22#define _LINUX_CLOCKSOURCE_H
    33
     4#include <linux/init.h>
    45#include <linux/types.h>
     6#include <asm/io.h>
    57
    68/* clocksource cycle base type */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/compat.h

    r358 r647  
    11#ifndef __LINUX_COMPAT_H
    22#define __LINUX_COMPAT_H
     3#include <asm/siginfo.h>
    34#endif /* __LINUX_COMPAT_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/compiler.h

    r629 r647  
    125125#define __always_unused
    126126#define fallthrough                    do {} while (0)  /* fallthrough */
     127#define __builtin_return_address(a)     0
     128#define __builtin_expect(x, expected_value) (x)
     129
    127130#endif /* __LINUX_COMPILER_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/device.h

    r625 r647  
    22#define _LINUX_DEVICE_H
    33
     4#include <linux/types.h>
    45#include <linux/kobject.h>
    56#include <linux/pm.h>
     
    4344};
    4445
    45 #ifndef STRUCT_DEVICE
    46 struct device_private;
    47 #define STRUCT_DEVICE
    4846typedef struct device {
    4947    struct pci_dev *pci;  /* for PCI and PCI-SG types */
     
    8684  struct device_node    *of_node; /* associated device tree node */
    8785} device;
    88 #endif
    8986
    9087static inline struct device *kobj_to_dev(struct kobject *kobj)
     
    113110};
    114111
    115 #if 0
    116112struct device_driver {
    117113        const char              *name;
     
    136132        struct driver_private *p;
    137133};
    138 #endif
    139134
    140135struct device_attribute {
  • TabularUnified GPL/branches/uniaud32-next/include/linux/dma-mapping.h

    r622 r647  
    33#include <linux/pci.h>
    44#include <linux/errno.h>
     5#include <linux/string.h>
     6#include <linux/err.h>
    57
    68/* These definitions mirror those in pci.h, so they can be used
     
    141143        return false;
    142144}
    143 
     145#define pci_set_consistent_dma_mask(p,x) pci_set_dma_mask(p,x)
    144146#endif
  • TabularUnified GPL/branches/uniaud32-next/include/linux/err.h

    r615 r647  
    33#ifndef _LINUX_ERR_H
    44#define _LINUX_ERR_H
     5#include <linux/types.h>
     6
    57#define IS_ERR_VALUE(x) ((x) > (unsigned long)-1000L)
    68
  • TabularUnified GPL/branches/uniaud32-next/include/linux/export.h

    r612 r647  
    22#define _LINUX_EXPORT_H
    33
     4extern int this_module[64];
     5#define THIS_MODULE (void *)&this_module[0]
     6#define EXPORT_SYMBOL(a)
     7#define EXPORT_SYMBOL_GPL(a)
     8
    49#endif /* _LINUX_EXPORT_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/fcntl.h

    r32 r647  
    55
    66#include <asm/fcntl.h>
     7#include <linux/stat.h>
    78
    89#endif
  • TabularUnified GPL/branches/uniaud32-next/include/linux/file.h

    r615 r647  
    55#ifndef __LINUX_FILE_H
    66#define __LINUX_FILE_H
     7
     8#include <linux/types.h>
    79
    810struct fd {
  • TabularUnified GPL/branches/uniaud32-next/include/linux/fs.h

    r644 r647  
    1212 */
    1313
     14#include <linux/init.h>
    1415#include <linux/types.h>
    1516#include <linux/fcntl.h>
     
    2021#include <linux/dcache.h>
    2122#include <linux/vmalloc.h>
    22 #include <linux/tqueue.h>
     23#include <linux/pid.h>
     24#include <linux/err.h>
     25#include <linux/workqueue.h>
    2326
    2427#define FALSE   0
  • TabularUnified GPL/branches/uniaud32-next/include/linux/gameport.h

    r276 r647  
    1919 */
    2020
     21#include <asm/io.h>
     22#include <linux/types.h>
    2123
    2224#endif /* _GAMEPORT_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/gfp.h

    r615 r647  
    33
    44#include <asm/page.h>
     5#include <linux/export.h>
    56#include <linux/mm.h>
    67#include <linux/types.h>
  • TabularUnified GPL/branches/uniaud32-next/include/linux/interrupt.h

    r615 r647  
    44
    55#include <linux/kernel.h>
    6 //#include <asm/bitops.h>
     6#include <linux/bitops.h>
    77#include <asm/atomic.h>
     8#include <asm/hardirq.h>
     9#include <linux/workqueue.h>
    810
    911/*
  • TabularUnified GPL/branches/uniaud32-next/include/linux/io.h

    r634 r647  
    22#define _LINUX_IO_H
    33
     4#include <asm/io.h>
     5#include <linux/init.h>
     6#include <linux/types.h>
     7#include <linux/err.h>
     8
    49#endif /* _LINUX_IO_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/ioport.h

    r32 r647  
    1111#define _LINUX_IOPORT_H
    1212
     13#include <linux/types.h>
    1314/*
    1415 * Resources are tree-like, allowing
  • TabularUnified GPL/branches/uniaud32-next/include/linux/kernel.h

    r637 r647  
    1313#include <linux/gfp.h>
    1414#include <linux/types.h>
     15#include <linux/bitops.h>
    1516
    1617/* Optimization barrier */
     
    120121#define container_of(ptr, type, member) \
    121122( (type *)( (char *)ptr - offsetof(type,member) ) )
     123
     124_WCRTLINK extern int    sscanf( const char *__s, const char *__format, ... );
     125
    122126#endif
  • TabularUnified GPL/branches/uniaud32-next/include/linux/leds.h

    r629 r647  
    11#ifndef _LINUX_LEDS_H
    22#define _LINUX_LEDS_H
     3
     4#include <linux/workqueue.h>
    35
    46/* This is obsolete/useless. We now support variable maximum brightness. */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/lockdep.h

    r615 r647  
    11#ifndef __LINUX_LOCKDEP_H
    22#define __LINUX_LOCKDEP_H
     3
     4#include <linux/types.h>
     5
    36#define SINGLE_DEPTH_NESTING                    1
    47/*
  • TabularUnified GPL/branches/uniaud32-next/include/linux/log2.h

    r622 r647  
    11#ifndef _LINUX_LOG2_H
    22#define _LINUX_LOG2_H
     3
     4#include <linux/bitops.h>
     5#include <linux/types.h>
    36
    47/*
  • TabularUnified GPL/branches/uniaud32-next/include/linux/math64.h

    r615 r647  
    55#ifndef MATH64_COMPAT_H
    66#define MATH64_COMPAT_H
     7
     8#include <linux/types.h>
    79
    810#if BITS_PER_LONG >= 64
  • TabularUnified GPL/branches/uniaud32-next/include/linux/mm.h

    r625 r647  
    88#include <asm/atomic.h>
    99#include <linux/overflow.h>
     10#include <linux/err.h>
    1011
    1112/*
  • TabularUnified GPL/branches/uniaud32-next/include/linux/module.h

    r625 r647  
    88#define _LINUX_MODULE_H
    99
     10#include <linux/list.h>
     11#include <linux/compiler.h>
     12#include <linux/kmod.h>
     13#include <linux/init.h>
     14#include <linux/string.h>
     15#include <linux/kobject.h>
    1016#include <linux/moduleparam.h>
     17#include <linux/export.h>
    1118
    1219/* Poke the use count of a module.  */
     
    4855
    4956#ifdef TARGET_OS2
    50 #define MODULE_PARM(var,type)
    51 #define MODULE_PARM_DESC(var,desc)
    5257#define MODULE_LICENSE(a)
    53 #define EXPORT_SYMBOL_GPL(a)
    5458#else
    5559#define MODULE_PARM(var,type)                   \
     
    7377#define MODULE_ALIAS(x)
    7478
    75 extern int this_module[64];
    76 #define THIS_MODULE (void *)&this_module[0]
    7779#define MODULE_GENERIC_TABLE(gtype,name)
    7880#define MODULE_DEVICE_TABLE(type,name)
    79 #define EXPORT_SYMBOL(a)
    8081#define MODULE_ALIAS_CHARDEV(x)
    8182#define module_param(name, type, perm)
  • TabularUnified GPL/branches/uniaud32-next/include/linux/moduleparam.h

    r625 r647  
    174174#define module_param_hw_array(name, type, hwtype, nump, perm)
    175175#define module_param_hw(name, type, hwtype, perm)               
     176#define MODULE_PARM(var,type)
     177#define MODULE_PARM_DESC(var,desc)
     178
    176179#endif /* _LINUX_MODULE_PARAMS_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/mutex.h

    r625 r647  
    44#include <asm/semaphore.h>
    55#include <linux/list.h>
     6#include <linux/types.h>
    67
    78struct mutex {
  • TabularUnified GPL/branches/uniaud32-next/include/linux/nospec.h

    r615 r647  
    11#ifndef _LINUX_NOSPEC_H
    22#define _LINUX_NOSPEC_H
     3#include <asm/system.h>
    34
    45#define array_index_nospec(a,b) a
  • TabularUnified GPL/branches/uniaud32-next/include/linux/pagemap.h

    r32 r647  
    1212#include <linux/list.h>
    1313
     14#include <asm/hardirq.h>
    1415#include <asm/system.h>
    1516#include <asm/pgtable.h>
     17#include <linux/bitops.h>
    1618
    1719/*
  • TabularUnified GPL/branches/uniaud32-next/include/linux/pci.h

    r640 r647  
    2323#include <linux/device.h>
    2424#include <linux/pm.h>
     25#include <linux/io.h>
    2526
    2627#pragma pack(1) //!!! by vladest
     
    583584};
    584585
    585 #if 1
    586 struct device_driver {
    587         const char              *name;
    588         struct bus_type         *bus;
    589 
    590         struct module           *owner;
    591         const char              *mod_name;      /* used for built-in modules */
    592 
    593         bool suppress_bind_attrs;       /* disables bind/unbind via sysfs */
    594 
    595         const struct of_device_id       *of_match_table;
    596 
    597         int (*probe) (struct device *dev);
    598         int (*remove) (struct device *dev);
    599         void (*shutdown) (struct device *dev);
    600         int (*suspend) (struct device *dev, u32 state);
    601         int (*resume) (struct device *dev);
    602         const struct attribute_group **groups;
    603 
    604         const struct dev_pm_ops *pm;
    605 
    606         struct driver_private *p;
    607 };
    608 #endif
    609 
    610586struct pci_driver {
    611587        struct list_head node;
  • TabularUnified GPL/branches/uniaud32-next/include/linux/pm.h

    r615 r647  
    2424#include <linux/list.h>
    2525#include <asm/atomic.h>
     26#include <linux/workqueue.h>
    2627
    2728enum rpm_status {
  • TabularUnified GPL/branches/uniaud32-next/include/linux/poll.h

    r615 r647  
    99#include <linux/wait.h>
    1010#include <linux/fs.h>
     11#include <linux/string.h>
    1112
    1213#ifdef __KERNEL__
  • TabularUnified GPL/branches/uniaud32-next/include/linux/rwsem.h

    r646 r647  
    33#ifndef _LINUX_RWSEM_H
    44#define _LINUX_RWSEM_H
     5
     6#include <linux/err.h>
     7
    58/* rw_semaphore - replaced with mutex */
    69#define rw_semaphore semaphore
  • TabularUnified GPL/branches/uniaud32-next/include/linux/sched.h

    r615 r647  
    66#include <asm/param.h>  /* for HZ */
    77#include <asm/atomic.h>
     8#include <linux/pid.h>
    89
    910#define MAX_SCHEDULE_TIMEOUT    INT_MAX
  • TabularUnified GPL/branches/uniaud32-next/include/linux/sched/signal.h

    r616 r647  
    11#ifndef _LINUX_SCHED_SIGNAL_H
    22#define _LINUX_SCHED_SIGNAL_H
    3 
     3#include <asm/siginfo.h>
    44#endif /* _LINUX_SCHED_SIGNAL_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/seq_file.h

    r615 r647  
    11#ifndef _LINUX_SEQ_FILE_H
    22#define _LINUX_SEQ_FILE_H
     3
     4#include <linux/string.h>
    35
    46struct seq_file {
  • TabularUnified GPL/branches/uniaud32-next/include/linux/signal.h

    r128 r647  
    55
    66#include <asm/signal.h>
     7
     8#include <linux/bitops.h>
     9#include <linux/string.h>
    710
    811#ifdef __KERNEL__
  • TabularUnified GPL/branches/uniaud32-next/include/linux/slab.h

    r625 r647  
    55 */
    66
     7#include <linux/gfp.h>
     8#include <linux/overflow.h>
    79#include <linux/types.h>
    810#include <linux/list.h>
    9 #include <linux/overflow.h>
     11#include <linux/workqueue.h>
    1012
    1113#if     !defined(_LINUX_SLAB_H)
  • TabularUnified GPL/branches/uniaud32-next/include/linux/types.h

    r646 r647  
    44//#pragma off (unreferenced)
    55
     6#include <limits.h>
    67#include <linux/posix_types.h>
    78#include <linux/compiler.h>
  • TabularUnified GPL/branches/uniaud32-next/include/linux/uaccess.h

    r615 r647  
    11#ifndef _LINUX_UACCESS_H
    22#define _LINUX_UACCESS_H
     3#include <asm/uaccess.h>
    34
    45#endif /* _LINUX_UACCESS_H */
  • TabularUnified GPL/branches/uniaud32-next/include/linux/utsname.h

    r615 r647  
    33#ifndef _LINUX_UTSNAME_H
    44#define _LINUX_UTSNAME_H
     5
     6#include <linux/err.h>
    57
    68#define __OLD_UTS_LEN 8
  • TabularUnified GPL/branches/uniaud32-next/include/linux/workqueue.h

    r646 r647  
    44#include <linux/timer.h>
    55#include <linux/completion.h>
     6#include <linux/bitops.h>
    67
    78#define cancel_work_sync(w)     flush_scheduled_work()
  • TabularUnified GPL/branches/uniaud32-next/lib32/regcache-rbtree.c

    r638 r647  
    2323
    2424#include "internal.h"
    25 
    26 #ifdef TARGET_OS2
    27 #define UINT_MAX        (~0U)
    28 #endif
    2925
    3026/*static inline*/ int regcache_rbtree_write(struct regmap *map, unsigned int reg,
  • TabularUnified GPL/branches/uniaud32-next/lib32/task.c

    r479 r647  
    2626#include <linux/kernel.h>
    2727#include <linux/fs.h>
    28 #include <linux/tqueue.h>
    2928#include <linux/interrupt.h>
    3029#define LINUX
Note: See TracChangeset for help on using the changeset viewer.