]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Merge branch 'header-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Mar 2009 23:11:41 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Mar 2009 23:11:41 +0000 (16:11 -0700)
* 'header-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (50 commits)
  x86: headers cleanup - setup.h
  emu101k1.h: fix duplicate include of <linux/types.h>
  compiler-gcc4: conditionalize #error on __KERNEL__
  remove __KERNEL_STRICT_NAMES
  make netfilter use strict integer types
  make drm headers use strict integer types
  make MTD headers use strict integer types
  make most exported headers use strict integer types
  make exported headers use strict posix types
  unconditionally include asm/types.h from linux/types.h
  make linux/types.h as assembly safe
  Neither asm/types.h nor linux/types.h is required for arch/ia64/include/asm/fpu.h
  headers_check fix cleanup: linux/reiserfs_fs.h
  headers_check fix cleanup: linux/nubus.h
  headers_check fix cleanup: linux/coda_psdev.h
  headers_check fix: x86, setup.h
  headers_check fix: x86, prctl.h
  headers_check fix: linux/reinserfs_fs.h
  headers_check fix: linux/socket.h
  headers_check fix: linux/nubus.h
  ...

Manually fix trivial conflicts in:
include/linux/netfilter/xt_limit.h
include/linux/netfilter/xt_statistic.h

1  2 
arch/ia64/include/asm/kvm.h
arch/powerpc/include/asm/kvm.h
include/linux/netfilter/nfnetlink.h
include/linux/netfilter/x_tables.h
include/linux/netfilter/xt_limit.h
include/linux/netfilter/xt_statistic.h
include/linux/socket.h
include/sound/asound.h

index 0ee5bd7a988f101c85c3f839b7f1fcc3ae57be53,2b0a38e847059fd18d995a01eff7ac178adda084..18a7e49abbc5ec7ebd445ba6b785263c2193602a
@@@ -21,8 -21,7 +21,7 @@@
   *
   */
  
- #include <asm/types.h>
+ #include <linux/types.h>
  #include <linux/ioctl.h>
  
  /* Select x86 specific features in <linux/kvm.h> */
@@@ -166,40 -165,7 +165,40 @@@ struct saved_vpd 
        unsigned long  vcpuid[5];
        unsigned long  vpsr;
        unsigned long  vpr;
 -      unsigned long  vcr[128];
 +      union {
 +              unsigned long  vcr[128];
 +              struct {
 +                      unsigned long dcr;
 +                      unsigned long itm;
 +                      unsigned long iva;
 +                      unsigned long rsv1[5];
 +                      unsigned long pta;
 +                      unsigned long rsv2[7];
 +                      unsigned long ipsr;
 +                      unsigned long isr;
 +                      unsigned long rsv3;
 +                      unsigned long iip;
 +                      unsigned long ifa;
 +                      unsigned long itir;
 +                      unsigned long iipa;
 +                      unsigned long ifs;
 +                      unsigned long iim;
 +                      unsigned long iha;
 +                      unsigned long rsv4[38];
 +                      unsigned long lid;
 +                      unsigned long ivr;
 +                      unsigned long tpr;
 +                      unsigned long eoi;
 +                      unsigned long irr[4];
 +                      unsigned long itv;
 +                      unsigned long pmv;
 +                      unsigned long cmcv;
 +                      unsigned long rsv5[5];
 +                      unsigned long lrr0;
 +                      unsigned long lrr1;
 +                      unsigned long rsv6[46];
 +              };
 +      };
  };
  
  struct kvm_regs {
@@@ -247,18 -213,4 +246,18 @@@ struct kvm_sregs 
  struct kvm_fpu {
  };
  
 +#define KVM_IA64_VCPU_STACK_SHIFT     16
 +#define KVM_IA64_VCPU_STACK_SIZE      (1UL << KVM_IA64_VCPU_STACK_SHIFT)
 +
 +struct kvm_ia64_vcpu_stack {
 +      unsigned char stack[KVM_IA64_VCPU_STACK_SIZE];
 +};
 +
 +struct kvm_debug_exit_arch {
 +};
 +
 +/* for KVM_SET_GUEST_DEBUG */
 +struct kvm_guest_debug_arch {
 +};
 +
  #endif
index 755f1b1948c57c632937c6b546d30df45ebdfe96,4e0cf65f7f5a567d7644c464f6e5f3d0cc78fd25..bb2de6aa5ce0e59b1d7a851b385e563c1358619e
@@@ -20,7 -20,7 +20,7 @@@
  #ifndef __LINUX_KVM_POWERPC_H
  #define __LINUX_KVM_POWERPC_H
  
- #include <asm/types.h>
+ #include <linux/types.h>
  
  struct kvm_regs {
        __u64 pc;
@@@ -52,11 -52,4 +52,11 @@@ struct kvm_fpu 
        __u64 fpr[32];
  };
  
 +struct kvm_debug_exit_arch {
 +};
 +
 +/* for KVM_SET_GUEST_DEBUG */
 +struct kvm_guest_debug_arch {
 +};
 +
  #endif /* __LINUX_KVM_POWERPC_H */
index 135e5cfe68a2a3f7f2427556be33fa1a3aefcd00,e53546cfa353bb8042b4db201f63b493a5cb7080..c600083cbdf50ccc29774d2bd8c8f8cb1ca551ba
@@@ -25,8 -25,8 +25,8 @@@ enum nfnetlink_groups 
  /* General form of address family dependent message.
   */
  struct nfgenmsg {
-       u_int8_t  nfgen_family;         /* AF_xxx */
-       u_int8_t  version;              /* nfnetlink version */
+       __u8  nfgen_family;             /* AF_xxx */
+       __u8  version;          /* nfnetlink version */
        __be16    res_id;               /* resource id */
  };
  
@@@ -76,7 -76,6 +76,7 @@@ extern int nfnetlink_subsys_unregister(
  extern int nfnetlink_has_listeners(unsigned int group);
  extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, 
                          int echo);
 +extern void nfnetlink_set_err(u32 pid, u32 group, int error);
  extern int nfnetlink_unicast(struct sk_buff *skb, u_int32_t pid, int flags);
  
  extern void nfnl_lock(void);
index e8e08d03675295ed0c68e2f4c58b880f88185969,33fd9c949d80a188b4cd42fe5bb7732be2309033..adbc50a20ec21714434ebf491f7d1e87f358c808
@@@ -1,6 -1,8 +1,8 @@@
  #ifndef _X_TABLES_H
  #define _X_TABLES_H
  
+ #include <linux/types.h>
  #define XT_FUNCTION_MAXNAMELEN 30
  #define XT_TABLE_MAXNAMELEN 32
  
@@@ -8,22 -10,22 +10,22 @@@ struct xt_entry_matc
  {
        union {
                struct {
-                       u_int16_t match_size;
+                       __u16 match_size;
  
                        /* Used by userspace */
                        char name[XT_FUNCTION_MAXNAMELEN-1];
  
-                       u_int8_t revision;
+                       __u8 revision;
                } user;
                struct {
-                       u_int16_t match_size;
+                       __u16 match_size;
  
                        /* Used inside the kernel */
                        struct xt_match *match;
                } kernel;
  
                /* Total length */
-               u_int16_t match_size;
+               __u16 match_size;
        } u;
  
        unsigned char data[0];
@@@ -33,22 -35,22 +35,22 @@@ struct xt_entry_targe
  {
        union {
                struct {
-                       u_int16_t target_size;
+                       __u16 target_size;
  
                        /* Used by userspace */
                        char name[XT_FUNCTION_MAXNAMELEN-1];
  
-                       u_int8_t revision;
+                       __u8 revision;
                } user;
                struct {
-                       u_int16_t target_size;
+                       __u16 target_size;
  
                        /* Used inside the kernel */
                        struct xt_target *target;
                } kernel;
  
                /* Total length */
-               u_int16_t target_size;
+               __u16 target_size;
        } u;
  
        unsigned char data[0];
@@@ -74,7 -76,7 +76,7 @@@ struct xt_get_revisio
  {
        char name[XT_FUNCTION_MAXNAMELEN-1];
  
-       u_int8_t revision;
+       __u8 revision;
  };
  
  /* CONTINUE verdict for targets */
   */
  struct _xt_align
  {
-       u_int8_t u8;
-       u_int16_t u16;
-       u_int32_t u32;
-       u_int64_t u64;
+       __u8 u8;
+       __u16 u16;
+       __u32 u32;
+       __u64 u64;
  };
  
  #define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1))        \
  
  struct xt_counters
  {
-       u_int64_t pcnt, bcnt;                   /* Packet and byte counters */
+       __u64 pcnt, bcnt;                       /* Packet and byte counters */
  };
  
  /* The argument to IPT_SO_ADD_COUNTERS. */
@@@ -349,22 -351,23 +351,22 @@@ struct xt_tabl
  {
        struct list_head list;
  
 -      /* A unique name... */
 -      const char name[XT_TABLE_MAXNAMELEN];
 -
        /* What hooks you will enter on */
        unsigned int valid_hooks;
  
        /* Lock for the curtain */
 -      rwlock_t lock;
 +      struct mutex lock;
  
        /* Man behind the curtain... */
 -      //struct ip6t_table_info *private;
 -      void *private;
 +      struct xt_table_info *private;
  
        /* Set this to THIS_MODULE if you are a module, otherwise NULL */
        struct module *me;
  
        u_int8_t af;            /* address/protocol family */
 +
 +      /* A unique name... */
 +      const char name[XT_TABLE_MAXNAMELEN];
  };
  
  #include <linux/netfilter_ipv4.h>
@@@ -385,7 -388,7 +387,7 @@@ struct xt_table_inf
  
        /* ipt_entry tables: one per CPU */
        /* Note : this field MUST be the last one, see XT_TABLE_INFO_SZ */
 -      char *entries[1];
 +      void *entries[1];
  };
  
  #define XT_TABLE_INFO_SZ (offsetof(struct xt_table_info, entries) \
@@@ -432,8 -435,6 +434,8 @@@ extern void xt_proto_fini(struct net *n
  
  extern struct xt_table_info *xt_alloc_table_info(unsigned int size);
  extern void xt_free_table_info(struct xt_table_info *info);
 +extern void xt_table_entry_swap_rcu(struct xt_table_info *old,
 +                                  struct xt_table_info *new);
  
  #ifdef CONFIG_COMPAT
  #include <net/compat.h>
index fda222c7953ba95fd6c7b27e252870f1f5443487,190e98b1f7c91689c5968c06f5db7076c9586e47..bb47fc4d2adea1921124d5aa7e9702f179317596
@@@ -1,22 -1,23 +1,24 @@@
  #ifndef _XT_RATE_H
  #define _XT_RATE_H
  
+ #include <linux/types.h>
  /* timings are in milliseconds. */
  #define XT_LIMIT_SCALE 10000
  
 +struct xt_limit_priv;
 +
  /* 1/10,000 sec period => max of 10,000/sec.  Min rate is then 429490
     seconds, or one every 59 hours. */
  struct xt_rateinfo {
-       u_int32_t avg;    /* Average secs between packets * scale */
-       u_int32_t burst;  /* Period multiplier for upper limit. */
+       __u32 avg;    /* Average secs between packets * scale */
+       __u32 burst;  /* Period multiplier for upper limit. */
  
        /* Used internally by the kernel */
 -      unsigned long prev;
 -      __u32 credit;
 +      unsigned long prev; /* moved to xt_limit_priv */
-       u_int32_t credit; /* moved to xt_limit_priv */
-       u_int32_t credit_cap, cost;
++      __u32 credit; /* moved to xt_limit_priv */
+       __u32 credit_cap, cost;
  
 -      /* Ugly, ugly fucker. */
 -      struct xt_rateinfo *master;
 +      struct xt_limit_priv *master;
  };
  #endif /*_XT_RATE_H*/
index 8f521ab49ef7726b0667f53b06d6a75d42a43796,095f3c66f456548e3940405b0e7181a8eb70772a..4e983ef0c968a9e7d789fa89b9e3cfd10f9e859e
@@@ -1,6 -1,8 +1,8 @@@
  #ifndef _XT_STATISTIC_H
  #define _XT_STATISTIC_H
  
+ #include <linux/types.h>
  enum xt_statistic_mode {
        XT_STATISTIC_MODE_RANDOM,
        XT_STATISTIC_MODE_NTH,
@@@ -13,22 -15,21 +15,22 @@@ enum xt_statistic_flags 
  };
  #define XT_STATISTIC_MASK             0x1
  
 +struct xt_statistic_priv;
 +
  struct xt_statistic_info {
-       u_int16_t                       mode;
-       u_int16_t                       flags;
+       __u16                   mode;
+       __u16                   flags;
        union {
                struct {
-                       u_int32_t       probability;
+                       __u32   probability;
                } random;
                struct {
-                       u_int32_t       every;
-                       u_int32_t       packet;
-                       u_int32_t       count; /* unused */
+                       __u32   every;
+                       __u32   packet;
 -                      /* Used internally by the kernel */
 -                      __u32   count;
++                      __u32   count; /* unused */
                } nth;
        } u;
 -      struct xt_statistic_info        *master __attribute__((aligned(8)));
 +      struct xt_statistic_priv *master __attribute__((aligned(8)));
  };
  
  #endif /* _XT_STATISTIC_H */
diff --combined include/linux/socket.h
index 9c90dc403efc0b05d00f3fa366cf7f492c71907b,afc01909a42858b6389d7370fed45d94219df302..421afb4d29b01cc8236b9f41ab745743162d636d
@@@ -24,10 -24,12 +24,12 @@@ struct __kernel_sockaddr_storage 
  #include <linux/types.h>              /* pid_t                        */
  #include <linux/compiler.h>           /* __user                       */
  
- #ifdef CONFIG_PROC_FS
+ #ifdef __KERNEL__
+ # ifdef CONFIG_PROC_FS
  struct seq_file;
  extern void socket_seq_show(struct seq_file *seq);
- #endif
+ # endif
+ #endif /* __KERNEL__ */
  
  typedef unsigned short        sa_family_t;
  
@@@ -179,7 -181,6 +181,7 @@@ struct ucred 
  #define AF_ASH                18      /* Ash                          */
  #define AF_ECONET     19      /* Acorn Econet                 */
  #define AF_ATMSVC     20      /* ATM SVCs                     */
 +#define AF_RDS                21      /* RDS sockets                  */
  #define AF_SNA                22      /* Linux SNA Project (nutters!) */
  #define AF_IRDA               23      /* IRDA sockets                 */
  #define AF_PPPOX      24      /* PPPoX sockets                */
  #define PF_ASH                AF_ASH
  #define PF_ECONET     AF_ECONET
  #define PF_ATMSVC     AF_ATMSVC
 +#define PF_RDS                AF_RDS
  #define PF_SNA                AF_SNA
  #define PF_IRDA               AF_IRDA
  #define PF_PPPOX      AF_PPPOX
  #define SOL_PPPOL2TP  273
  #define SOL_BLUETOOTH 274
  #define SOL_PNPIPE    275
 +#define SOL_RDS               276
  
  /* IPX options */
  #define IPX_TYPE      1
diff --combined include/sound/asound.h
index fad3e0c7b932942827801d0f457fc3d8dfa0a736,d9beda5f74a7fb7d48b085e63dc6501f5d2621b6..6add80fc251200ef9a99e0e576a433e29f9a1b7a
  #ifndef __SOUND_ASOUND_H
  #define __SOUND_ASOUND_H
  
+ #include <linux/types.h>
  #ifdef __KERNEL__
  #include <linux/ioctl.h>
- #include <linux/types.h>
  #include <linux/time.h>
  #include <asm/byteorder.h>
  
@@@ -126,10 -127,12 +127,10 @@@ struct snd_hwdep_dsp_image 
        unsigned long driver_data;      /* W: driver-specific data */
  };
  
 -enum {
 -      SNDRV_HWDEP_IOCTL_PVERSION = _IOR ('H', 0x00, int),
 -      SNDRV_HWDEP_IOCTL_INFO = _IOR ('H', 0x01, struct snd_hwdep_info),
 -      SNDRV_HWDEP_IOCTL_DSP_STATUS = _IOR('H', 0x02, struct snd_hwdep_dsp_status),
 -      SNDRV_HWDEP_IOCTL_DSP_LOAD   = _IOW('H', 0x03, struct snd_hwdep_dsp_image)
 -};
 +#define SNDRV_HWDEP_IOCTL_PVERSION    _IOR ('H', 0x00, int)
 +#define SNDRV_HWDEP_IOCTL_INFO                _IOR ('H', 0x01, struct snd_hwdep_info)
 +#define SNDRV_HWDEP_IOCTL_DSP_STATUS  _IOR('H', 0x02, struct snd_hwdep_dsp_status)
 +#define SNDRV_HWDEP_IOCTL_DSP_LOAD    _IOW('H', 0x03, struct snd_hwdep_dsp_image)
  
  /*****************************************************************************
   *                                                                           *
@@@ -340,7 -343,7 +341,7 @@@ struct snd_interval 
  #define SNDRV_MASK_MAX        256
  
  struct snd_mask {
-       u_int32_t bits[(SNDRV_MASK_MAX+31)/32];
+       __u32 bits[(SNDRV_MASK_MAX+31)/32];
  };
  
  struct snd_pcm_hw_params {
@@@ -383,7 -386,7 +384,7 @@@ struct snd_pcm_sw_params 
  
  struct snd_pcm_channel_info {
        unsigned int channel;
-       off_t offset;                   /* mmap offset */
+       __kernel_off_t offset;          /* mmap offset */
        unsigned int first;             /* offset to first sample in bits */
        unsigned int step;              /* samples distance in bits */
  };
@@@ -449,35 -452,40 +450,35 @@@ enum 
        SNDRV_PCM_TSTAMP_TYPE_LAST = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
  };
  
 -enum {
 -      SNDRV_PCM_IOCTL_PVERSION = _IOR('A', 0x00, int),
 -      SNDRV_PCM_IOCTL_INFO = _IOR('A', 0x01, struct snd_pcm_info),
 -      SNDRV_PCM_IOCTL_TSTAMP = _IOW('A', 0x02, int),
 -      SNDRV_PCM_IOCTL_TTSTAMP = _IOW('A', 0x03, int),
 -      SNDRV_PCM_IOCTL_HW_REFINE = _IOWR('A', 0x10, struct snd_pcm_hw_params),
 -      SNDRV_PCM_IOCTL_HW_PARAMS = _IOWR('A', 0x11, struct snd_pcm_hw_params),
 -      SNDRV_PCM_IOCTL_HW_FREE = _IO('A', 0x12),
 -      SNDRV_PCM_IOCTL_SW_PARAMS = _IOWR('A', 0x13, struct snd_pcm_sw_params),
 -      SNDRV_PCM_IOCTL_STATUS = _IOR('A', 0x20, struct snd_pcm_status),
 -      SNDRV_PCM_IOCTL_DELAY = _IOR('A', 0x21, snd_pcm_sframes_t),
 -      SNDRV_PCM_IOCTL_HWSYNC = _IO('A', 0x22),
 -      SNDRV_PCM_IOCTL_SYNC_PTR = _IOWR('A', 0x23, struct snd_pcm_sync_ptr),
 -      SNDRV_PCM_IOCTL_CHANNEL_INFO = _IOR('A', 0x32, struct snd_pcm_channel_info),
 -      SNDRV_PCM_IOCTL_PREPARE = _IO('A', 0x40),
 -      SNDRV_PCM_IOCTL_RESET = _IO('A', 0x41),
 -      SNDRV_PCM_IOCTL_START = _IO('A', 0x42),
 -      SNDRV_PCM_IOCTL_DROP = _IO('A', 0x43),
 -      SNDRV_PCM_IOCTL_DRAIN = _IO('A', 0x44),
 -      SNDRV_PCM_IOCTL_PAUSE = _IOW('A', 0x45, int),
 -      SNDRV_PCM_IOCTL_REWIND = _IOW('A', 0x46, snd_pcm_uframes_t),
 -      SNDRV_PCM_IOCTL_RESUME = _IO('A', 0x47),
 -      SNDRV_PCM_IOCTL_XRUN = _IO('A', 0x48),
 -      SNDRV_PCM_IOCTL_FORWARD = _IOW('A', 0x49, snd_pcm_uframes_t),
 -      SNDRV_PCM_IOCTL_WRITEI_FRAMES = _IOW('A', 0x50, struct snd_xferi),
 -      SNDRV_PCM_IOCTL_READI_FRAMES = _IOR('A', 0x51, struct snd_xferi),
 -      SNDRV_PCM_IOCTL_WRITEN_FRAMES = _IOW('A', 0x52, struct snd_xfern),
 -      SNDRV_PCM_IOCTL_READN_FRAMES = _IOR('A', 0x53, struct snd_xfern),
 -      SNDRV_PCM_IOCTL_LINK = _IOW('A', 0x60, int),
 -      SNDRV_PCM_IOCTL_UNLINK = _IO('A', 0x61),
 -};
 -
 -/* Trick to make alsa-lib/acinclude.m4 happy */
 -#define SNDRV_PCM_IOCTL_REWIND SNDRV_PCM_IOCTL_REWIND
 +#define SNDRV_PCM_IOCTL_PVERSION      _IOR('A', 0x00, int)
 +#define SNDRV_PCM_IOCTL_INFO          _IOR('A', 0x01, struct snd_pcm_info)
 +#define SNDRV_PCM_IOCTL_TSTAMP                _IOW('A', 0x02, int)
 +#define SNDRV_PCM_IOCTL_TTSTAMP               _IOW('A', 0x03, int)
 +#define SNDRV_PCM_IOCTL_HW_REFINE     _IOWR('A', 0x10, struct snd_pcm_hw_params)
 +#define SNDRV_PCM_IOCTL_HW_PARAMS     _IOWR('A', 0x11, struct snd_pcm_hw_params)
 +#define SNDRV_PCM_IOCTL_HW_FREE               _IO('A', 0x12)
 +#define SNDRV_PCM_IOCTL_SW_PARAMS     _IOWR('A', 0x13, struct snd_pcm_sw_params)
 +#define SNDRV_PCM_IOCTL_STATUS                _IOR('A', 0x20, struct snd_pcm_status)
 +#define SNDRV_PCM_IOCTL_DELAY         _IOR('A', 0x21, snd_pcm_sframes_t)
 +#define SNDRV_PCM_IOCTL_HWSYNC                _IO('A', 0x22)
 +#define SNDRV_PCM_IOCTL_SYNC_PTR      _IOWR('A', 0x23, struct snd_pcm_sync_ptr)
 +#define SNDRV_PCM_IOCTL_CHANNEL_INFO  _IOR('A', 0x32, struct snd_pcm_channel_info)
 +#define SNDRV_PCM_IOCTL_PREPARE               _IO('A', 0x40)
 +#define SNDRV_PCM_IOCTL_RESET         _IO('A', 0x41)
 +#define SNDRV_PCM_IOCTL_START         _IO('A', 0x42)
 +#define SNDRV_PCM_IOCTL_DROP          _IO('A', 0x43)
 +#define SNDRV_PCM_IOCTL_DRAIN         _IO('A', 0x44)
 +#define SNDRV_PCM_IOCTL_PAUSE         _IOW('A', 0x45, int)
 +#define SNDRV_PCM_IOCTL_REWIND                _IOW('A', 0x46, snd_pcm_uframes_t)
 +#define SNDRV_PCM_IOCTL_RESUME                _IO('A', 0x47)
 +#define SNDRV_PCM_IOCTL_XRUN          _IO('A', 0x48)
 +#define SNDRV_PCM_IOCTL_FORWARD               _IOW('A', 0x49, snd_pcm_uframes_t)
 +#define SNDRV_PCM_IOCTL_WRITEI_FRAMES _IOW('A', 0x50, struct snd_xferi)
 +#define SNDRV_PCM_IOCTL_READI_FRAMES  _IOR('A', 0x51, struct snd_xferi)
 +#define SNDRV_PCM_IOCTL_WRITEN_FRAMES _IOW('A', 0x52, struct snd_xfern)
 +#define SNDRV_PCM_IOCTL_READN_FRAMES  _IOR('A', 0x53, struct snd_xfern)
 +#define SNDRV_PCM_IOCTL_LINK          _IOW('A', 0x60, int)
 +#define SNDRV_PCM_IOCTL_UNLINK                _IO('A', 0x61)
  
  /*****************************************************************************
   *                                                                           *
@@@ -531,12 -539,14 +532,12 @@@ struct snd_rawmidi_status 
        unsigned char reserved[16];     /* reserved for future use */
  };
  
 -enum {
 -      SNDRV_RAWMIDI_IOCTL_PVERSION = _IOR('W', 0x00, int),
 -      SNDRV_RAWMIDI_IOCTL_INFO = _IOR('W', 0x01, struct snd_rawmidi_info),
 -      SNDRV_RAWMIDI_IOCTL_PARAMS = _IOWR('W', 0x10, struct snd_rawmidi_params),
 -      SNDRV_RAWMIDI_IOCTL_STATUS = _IOWR('W', 0x20, struct snd_rawmidi_status),
 -      SNDRV_RAWMIDI_IOCTL_DROP = _IOW('W', 0x30, int),
 -      SNDRV_RAWMIDI_IOCTL_DRAIN = _IOW('W', 0x31, int),
 -};
 +#define SNDRV_RAWMIDI_IOCTL_PVERSION  _IOR('W', 0x00, int)
 +#define SNDRV_RAWMIDI_IOCTL_INFO      _IOR('W', 0x01, struct snd_rawmidi_info)
 +#define SNDRV_RAWMIDI_IOCTL_PARAMS    _IOWR('W', 0x10, struct snd_rawmidi_params)
 +#define SNDRV_RAWMIDI_IOCTL_STATUS    _IOWR('W', 0x20, struct snd_rawmidi_status)
 +#define SNDRV_RAWMIDI_IOCTL_DROP      _IOW('W', 0x30, int)
 +#define SNDRV_RAWMIDI_IOCTL_DRAIN     _IOW('W', 0x31, int)
  
  /*
   *  Timer section - /dev/snd/timer
@@@ -645,21 -655,23 +646,21 @@@ struct snd_timer_status 
        unsigned char reserved[64];     /* reserved */
  };
  
 -enum {
 -      SNDRV_TIMER_IOCTL_PVERSION = _IOR('T', 0x00, int),
 -      SNDRV_TIMER_IOCTL_NEXT_DEVICE = _IOWR('T', 0x01, struct snd_timer_id),
 -      SNDRV_TIMER_IOCTL_TREAD = _IOW('T', 0x02, int),
 -      SNDRV_TIMER_IOCTL_GINFO = _IOWR('T', 0x03, struct snd_timer_ginfo),
 -      SNDRV_TIMER_IOCTL_GPARAMS = _IOW('T', 0x04, struct snd_timer_gparams),
 -      SNDRV_TIMER_IOCTL_GSTATUS = _IOWR('T', 0x05, struct snd_timer_gstatus),
 -      SNDRV_TIMER_IOCTL_SELECT = _IOW('T', 0x10, struct snd_timer_select),
 -      SNDRV_TIMER_IOCTL_INFO = _IOR('T', 0x11, struct snd_timer_info),
 -      SNDRV_TIMER_IOCTL_PARAMS = _IOW('T', 0x12, struct snd_timer_params),
 -      SNDRV_TIMER_IOCTL_STATUS = _IOR('T', 0x14, struct snd_timer_status),
 -      /* The following four ioctls are changed since 1.0.9 due to confliction */
 -      SNDRV_TIMER_IOCTL_START = _IO('T', 0xa0),
 -      SNDRV_TIMER_IOCTL_STOP = _IO('T', 0xa1),
 -      SNDRV_TIMER_IOCTL_CONTINUE = _IO('T', 0xa2),
 -      SNDRV_TIMER_IOCTL_PAUSE = _IO('T', 0xa3),
 -};
 +#define SNDRV_TIMER_IOCTL_PVERSION    _IOR('T', 0x00, int)
 +#define SNDRV_TIMER_IOCTL_NEXT_DEVICE _IOWR('T', 0x01, struct snd_timer_id)
 +#define SNDRV_TIMER_IOCTL_TREAD               _IOW('T', 0x02, int)
 +#define SNDRV_TIMER_IOCTL_GINFO               _IOWR('T', 0x03, struct snd_timer_ginfo)
 +#define SNDRV_TIMER_IOCTL_GPARAMS     _IOW('T', 0x04, struct snd_timer_gparams)
 +#define SNDRV_TIMER_IOCTL_GSTATUS     _IOWR('T', 0x05, struct snd_timer_gstatus)
 +#define SNDRV_TIMER_IOCTL_SELECT      _IOW('T', 0x10, struct snd_timer_select)
 +#define SNDRV_TIMER_IOCTL_INFO                _IOR('T', 0x11, struct snd_timer_info)
 +#define SNDRV_TIMER_IOCTL_PARAMS      _IOW('T', 0x12, struct snd_timer_params)
 +#define SNDRV_TIMER_IOCTL_STATUS      _IOR('T', 0x14, struct snd_timer_status)
 +/* The following four ioctls are changed since 1.0.9 due to confliction */
 +#define SNDRV_TIMER_IOCTL_START               _IO('T', 0xa0)
 +#define SNDRV_TIMER_IOCTL_STOP                _IO('T', 0xa1)
 +#define SNDRV_TIMER_IOCTL_CONTINUE    _IO('T', 0xa2)
 +#define SNDRV_TIMER_IOCTL_PAUSE               _IO('T', 0xa3)
  
  struct snd_timer_read {
        unsigned int resolution;
@@@ -778,7 -790,7 +779,7 @@@ struct snd_ctl_elem_info 
        snd_ctl_elem_type_t type;       /* R: value type - SNDRV_CTL_ELEM_TYPE_* */
        unsigned int access;            /* R: value access (bitmask) - SNDRV_CTL_ELEM_ACCESS_* */
        unsigned int count;             /* count of values */
-       pid_t owner;                    /* owner's PID of this control */
+       __kernel_pid_t owner;           /* owner's PID of this control */
        union {
                struct {
                        long min;               /* R: minimum value */
@@@ -836,31 -848,33 +837,31 @@@ struct snd_ctl_tlv 
          unsigned int tlv[0];  /* first TLV */
  };
  
 -enum {
 -      SNDRV_CTL_IOCTL_PVERSION = _IOR('U', 0x00, int),
 -      SNDRV_CTL_IOCTL_CARD_INFO = _IOR('U', 0x01, struct snd_ctl_card_info),
 -      SNDRV_CTL_IOCTL_ELEM_LIST = _IOWR('U', 0x10, struct snd_ctl_elem_list),
 -      SNDRV_CTL_IOCTL_ELEM_INFO = _IOWR('U', 0x11, struct snd_ctl_elem_info),
 -      SNDRV_CTL_IOCTL_ELEM_READ = _IOWR('U', 0x12, struct snd_ctl_elem_value),
 -      SNDRV_CTL_IOCTL_ELEM_WRITE = _IOWR('U', 0x13, struct snd_ctl_elem_value),
 -      SNDRV_CTL_IOCTL_ELEM_LOCK = _IOW('U', 0x14, struct snd_ctl_elem_id),
 -      SNDRV_CTL_IOCTL_ELEM_UNLOCK = _IOW('U', 0x15, struct snd_ctl_elem_id),
 -      SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS = _IOWR('U', 0x16, int),
 -      SNDRV_CTL_IOCTL_ELEM_ADD = _IOWR('U', 0x17, struct snd_ctl_elem_info),
 -      SNDRV_CTL_IOCTL_ELEM_REPLACE = _IOWR('U', 0x18, struct snd_ctl_elem_info),
 -      SNDRV_CTL_IOCTL_ELEM_REMOVE = _IOWR('U', 0x19, struct snd_ctl_elem_id),
 -      SNDRV_CTL_IOCTL_TLV_READ = _IOWR('U', 0x1a, struct snd_ctl_tlv),
 -      SNDRV_CTL_IOCTL_TLV_WRITE = _IOWR('U', 0x1b, struct snd_ctl_tlv),
 -      SNDRV_CTL_IOCTL_TLV_COMMAND = _IOWR('U', 0x1c, struct snd_ctl_tlv),
 -      SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE = _IOWR('U', 0x20, int),
 -      SNDRV_CTL_IOCTL_HWDEP_INFO = _IOR('U', 0x21, struct snd_hwdep_info),
 -      SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE = _IOR('U', 0x30, int),
 -      SNDRV_CTL_IOCTL_PCM_INFO = _IOWR('U', 0x31, struct snd_pcm_info),
 -      SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE = _IOW('U', 0x32, int),
 -      SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE = _IOWR('U', 0x40, int),
 -      SNDRV_CTL_IOCTL_RAWMIDI_INFO = _IOWR('U', 0x41, struct snd_rawmidi_info),
 -      SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE = _IOW('U', 0x42, int),
 -      SNDRV_CTL_IOCTL_POWER = _IOWR('U', 0xd0, int),
 -      SNDRV_CTL_IOCTL_POWER_STATE = _IOR('U', 0xd1, int),
 -};
 +#define SNDRV_CTL_IOCTL_PVERSION      _IOR('U', 0x00, int)
 +#define SNDRV_CTL_IOCTL_CARD_INFO     _IOR('U', 0x01, struct snd_ctl_card_info)
 +#define SNDRV_CTL_IOCTL_ELEM_LIST     _IOWR('U', 0x10, struct snd_ctl_elem_list)
 +#define SNDRV_CTL_IOCTL_ELEM_INFO     _IOWR('U', 0x11, struct snd_ctl_elem_info)
 +#define SNDRV_CTL_IOCTL_ELEM_READ     _IOWR('U', 0x12, struct snd_ctl_elem_value)
 +#define SNDRV_CTL_IOCTL_ELEM_WRITE    _IOWR('U', 0x13, struct snd_ctl_elem_value)
 +#define SNDRV_CTL_IOCTL_ELEM_LOCK     _IOW('U', 0x14, struct snd_ctl_elem_id)
 +#define SNDRV_CTL_IOCTL_ELEM_UNLOCK   _IOW('U', 0x15, struct snd_ctl_elem_id)
 +#define SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS _IOWR('U', 0x16, int)
 +#define SNDRV_CTL_IOCTL_ELEM_ADD      _IOWR('U', 0x17, struct snd_ctl_elem_info)
 +#define SNDRV_CTL_IOCTL_ELEM_REPLACE  _IOWR('U', 0x18, struct snd_ctl_elem_info)
 +#define SNDRV_CTL_IOCTL_ELEM_REMOVE   _IOWR('U', 0x19, struct snd_ctl_elem_id)
 +#define SNDRV_CTL_IOCTL_TLV_READ      _IOWR('U', 0x1a, struct snd_ctl_tlv)
 +#define SNDRV_CTL_IOCTL_TLV_WRITE     _IOWR('U', 0x1b, struct snd_ctl_tlv)
 +#define SNDRV_CTL_IOCTL_TLV_COMMAND   _IOWR('U', 0x1c, struct snd_ctl_tlv)
 +#define SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE _IOWR('U', 0x20, int)
 +#define SNDRV_CTL_IOCTL_HWDEP_INFO    _IOR('U', 0x21, struct snd_hwdep_info)
 +#define SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE       _IOR('U', 0x30, int)
 +#define SNDRV_CTL_IOCTL_PCM_INFO      _IOWR('U', 0x31, struct snd_pcm_info)
 +#define SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE _IOW('U', 0x32, int)
 +#define SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE _IOWR('U', 0x40, int)
 +#define SNDRV_CTL_IOCTL_RAWMIDI_INFO  _IOWR('U', 0x41, struct snd_rawmidi_info)
 +#define SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE _IOW('U', 0x42, int)
 +#define SNDRV_CTL_IOCTL_POWER         _IOWR('U', 0xd0, int)
 +#define SNDRV_CTL_IOCTL_POWER_STATE   _IOR('U', 0xd1, int)
  
  /*
   *  Read interface.
@@@ -906,4 -920,18 +907,4 @@@ struct snd_ctl_event 
  #define SNDRV_CTL_NAME_IEC958_PCM_STREAM              "PCM Stream"
  #define SNDRV_CTL_NAME_IEC958(expl,direction,what)    "IEC958 " expl SNDRV_CTL_NAME_##direction SNDRV_CTL_NAME_IEC958_##what
  
 -/*
 - *
 - */
 -
 -struct snd_xferv {
 -      const struct iovec *vector;
 -      unsigned long count;
 -};
 -
 -enum {
 -      SNDRV_IOCTL_READV = _IOW('K', 0x00, struct snd_xferv),
 -      SNDRV_IOCTL_WRITEV = _IOW('K', 0x01, struct snd_xferv),
 -};
 -
  #endif /* __SOUND_ASOUND_H */