Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'header-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* '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

+990 -894
+2
arch/alpha/include/asm/statfs.h
··· 1 1 #ifndef _ALPHA_STATFS_H 2 2 #define _ALPHA_STATFS_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* Alpha is the only 64-bit platform with 32-bit statfs. And doesn't 5 7 even seem to implement statfs64 */ 6 8 #define __statfs_word __u32
+1 -1
arch/alpha/include/asm/swab.h
··· 1 1 #ifndef _ALPHA_SWAB_H 2 2 #define _ALPHA_SWAB_H 3 3 4 - #include <asm/types.h> 4 + #include <linux/types.h> 5 5 #include <linux/compiler.h> 6 6 #include <asm/compiler.h> 7 7
+1 -1
arch/arm/include/asm/a.out.h
··· 2 2 #define __ARM_A_OUT_H__ 3 3 4 4 #include <linux/personality.h> 5 - #include <asm/types.h> 5 + #include <linux/types.h> 6 6 7 7 struct exec 8 8 {
+1 -1
arch/arm/include/asm/setup.h
··· 14 14 #ifndef __ASMARM_SETUP_H 15 15 #define __ASMARM_SETUP_H 16 16 17 - #include <asm/types.h> 17 + #include <linux/types.h> 18 18 19 19 #define COMMAND_LINE_SIZE 1024 20 20
+1 -1
arch/arm/include/asm/swab.h
··· 16 16 #define __ASM_ARM_SWAB_H 17 17 18 18 #include <linux/compiler.h> 19 - #include <asm/types.h> 19 + #include <linux/types.h> 20 20 21 21 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) 22 22 # define __SWAB_64_THRU_32__
+1 -1
arch/avr32/include/asm/swab.h
··· 4 4 #ifndef __ASM_AVR32_SWAB_H 5 5 #define __ASM_AVR32_SWAB_H 6 6 7 - #include <asm/types.h> 7 + #include <linux/types.h> 8 8 #include <linux/compiler.h> 9 9 10 10 #define __SWAB_64_THRU_32__
+1 -1
arch/blackfin/include/asm/swab.h
··· 1 1 #ifndef _BLACKFIN_SWAB_H 2 2 #define _BLACKFIN_SWAB_H 3 3 4 - #include <asm/types.h> 4 + #include <linux/types.h> 5 5 #include <linux/compiler.h> 6 6 7 7 #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
+1 -1
arch/h8300/include/asm/swab.h
··· 1 1 #ifndef _H8300_SWAB_H 2 2 #define _H8300_SWAB_H 3 3 4 - #include <asm/types.h> 4 + #include <linux/types.h> 5 5 6 6 #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) 7 7 # define __SWAB_64_THRU_32__
-2
arch/ia64/include/asm/fpu.h
··· 6 6 * David Mosberger-Tang <davidm@hpl.hp.com> 7 7 */ 8 8 9 - #include <asm/types.h> 10 - 11 9 /* floating point status register: */ 12 10 #define FPSR_TRAP_VD (1 << 0) /* invalid op trap disabled */ 13 11 #define FPSR_TRAP_DD (1 << 1) /* denormal trap disabled */
+1
arch/ia64/include/asm/gcc_intrin.h
··· 6 6 * Copyright (C) 2002,2003 Suresh Siddha <suresh.b.siddha@intel.com> 7 7 */ 8 8 9 + #include <linux/types.h> 9 10 #include <linux/compiler.h> 10 11 11 12 /* define this macro to get some asm stmts included in 'c' files */
+1
arch/ia64/include/asm/intrinsics.h
··· 10 10 11 11 #ifndef __ASSEMBLY__ 12 12 13 + #include <linux/types.h> 13 14 /* include compiler specific intrinsics */ 14 15 #include <asm/ia64regs.h> 15 16 #ifdef __INTEL_COMPILER
+1 -2
arch/ia64/include/asm/kvm.h
··· 21 21 * 22 22 */ 23 23 24 - #include <asm/types.h> 25 - 24 + #include <linux/types.h> 26 25 #include <linux/ioctl.h> 27 26 28 27 /* Select x86 specific features in <linux/kvm.h> */
+1 -1
arch/ia64/include/asm/swab.h
··· 6 6 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co. 7 7 */ 8 8 9 - #include <asm/types.h> 9 + #include <linux/types.h> 10 10 #include <asm/intrinsics.h> 11 11 #include <linux/compiler.h> 12 12
+1
arch/mips/include/asm/sigcontext.h
··· 9 9 #ifndef _ASM_SIGCONTEXT_H 10 10 #define _ASM_SIGCONTEXT_H 11 11 12 + #include <linux/types.h> 12 13 #include <asm/sgidefs.h> 13 14 14 15 #if _MIPS_SIM == _MIPS_SIM_ABI32
+1 -1
arch/mips/include/asm/swab.h
··· 9 9 #define _ASM_SWAB_H 10 10 11 11 #include <linux/compiler.h> 12 - #include <asm/types.h> 12 + #include <linux/types.h> 13 13 14 14 #define __SWAB_64_THRU_32__ 15 15
+2 -1
arch/parisc/include/asm/pdc.h
··· 336 336 #define NUM_PDC_RESULT 32 337 337 338 338 #if !defined(__ASSEMBLY__) 339 - #ifdef __KERNEL__ 340 339 341 340 #include <linux/types.h> 341 + 342 + #ifdef __KERNEL__ 342 343 343 344 extern int pdc_type; 344 345
+1 -1
arch/parisc/include/asm/swab.h
··· 1 1 #ifndef _PARISC_SWAB_H 2 2 #define _PARISC_SWAB_H 3 3 4 - #include <asm/types.h> 4 + #include <linux/types.h> 5 5 #include <linux/compiler.h> 6 6 7 7 #define __SWAB_64_THRU_32__
+1 -1
arch/powerpc/include/asm/bootx.h
··· 9 9 #ifndef __ASM_BOOTX_H__ 10 10 #define __ASM_BOOTX_H__ 11 11 12 - #include <asm/types.h> 12 + #include <linux/types.h> 13 13 14 14 #ifdef macintosh 15 15 #include <Types.h>
+1 -1
arch/powerpc/include/asm/elf.h
··· 7 7 #include <asm/string.h> 8 8 #endif 9 9 10 - #include <asm/types.h> 10 + #include <linux/types.h> 11 11 #include <asm/ptrace.h> 12 12 #include <asm/cputable.h> 13 13 #include <asm/auxvec.h>
+1 -1
arch/powerpc/include/asm/kvm.h
··· 20 20 #ifndef __LINUX_KVM_POWERPC_H 21 21 #define __LINUX_KVM_POWERPC_H 22 22 23 - #include <asm/types.h> 23 + #include <linux/types.h> 24 24 25 25 struct kvm_regs { 26 26 __u64 pc;
+1
arch/powerpc/include/asm/ps3fb.h
··· 19 19 #ifndef _ASM_POWERPC_PS3FB_H_ 20 20 #define _ASM_POWERPC_PS3FB_H_ 21 21 22 + #include <linux/types.h> 22 23 #include <linux/ioctl.h> 23 24 24 25 /* ioctl */
+2 -1
arch/powerpc/include/asm/spu_info.h
··· 23 23 #ifndef _SPU_INFO_H 24 24 #define _SPU_INFO_H 25 25 26 + #include <linux/types.h> 27 + 26 28 #ifdef __KERNEL__ 27 29 #include <asm/spu.h> 28 - #include <linux/types.h> 29 30 #else 30 31 struct mfc_cq_sr { 31 32 __u64 mfc_cq_data0_RW;
+1 -1
arch/powerpc/include/asm/swab.h
··· 8 8 * 2 of the License, or (at your option) any later version. 9 9 */ 10 10 11 - #include <asm/types.h> 11 + #include <linux/types.h> 12 12 #include <linux/compiler.h> 13 13 14 14 #ifdef __GNUC__
-4
arch/x86/include/asm/prctl.h
··· 6 6 #define ARCH_GET_FS 0x1003 7 7 #define ARCH_GET_GS 0x1004 8 8 9 - #ifdef CONFIG_X86_64 10 - extern long sys_arch_prctl(int, unsigned long); 11 - #endif /* CONFIG_X86_64 */ 12 - 13 9 #endif /* _ASM_X86_PRCTL_H */
+24 -25
arch/x86/include/asm/setup.h
··· 1 1 #ifndef _ASM_X86_SETUP_H 2 2 #define _ASM_X86_SETUP_H 3 3 4 + #ifdef __KERNEL__ 5 + 4 6 #define COMMAND_LINE_SIZE 2048 5 7 6 8 #ifndef __ASSEMBLY__ 7 9 8 - /* Interrupt control for vSMPowered x86_64 systems */ 9 - void vsmp_init(void); 10 - 11 - 12 - void setup_bios_corruption_check(void); 13 - 14 - 15 - #ifdef CONFIG_X86_VISWS 16 - extern void visws_early_detect(void); 17 - extern int is_visws_box(void); 18 - #else 19 - static inline void visws_early_detect(void) { } 20 - static inline int is_visws_box(void) { return 0; } 21 - #endif 22 - 23 - extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); 24 - extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip); 25 10 /* 26 11 * Any setup quirks to be performed? 27 12 */ ··· 33 48 int (*update_genapic)(void); 34 49 }; 35 50 36 - extern struct x86_quirks *x86_quirks; 37 - extern unsigned long saved_video_mode; 38 - 39 - #ifndef CONFIG_PARAVIRT 40 - #define paravirt_post_allocator_init() do {} while (0) 41 - #endif 42 51 #endif /* __ASSEMBLY__ */ 43 - 44 - #ifdef __KERNEL__ 45 52 46 53 #ifdef __i386__ 47 54 ··· 54 77 55 78 #ifndef __ASSEMBLY__ 56 79 #include <asm/bootparam.h> 80 + 81 + /* Interrupt control for vSMPowered x86_64 systems */ 82 + void vsmp_init(void); 83 + 84 + void setup_bios_corruption_check(void); 85 + 86 + #ifdef CONFIG_X86_VISWS 87 + extern void visws_early_detect(void); 88 + extern int is_visws_box(void); 89 + #else 90 + static inline void visws_early_detect(void) { } 91 + static inline int is_visws_box(void) { return 0; } 92 + #endif 93 + 94 + extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); 95 + extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip); 96 + extern struct x86_quirks *x86_quirks; 97 + extern unsigned long saved_video_mode; 98 + 99 + #ifndef CONFIG_PARAVIRT 100 + #define paravirt_post_allocator_init() do {} while (0) 101 + #endif 57 102 58 103 #ifndef _SETUP 59 104
+1
arch/x86/include/asm/syscalls.h
··· 74 74 asmlinkage long sys_execve(char __user *, char __user * __user *, 75 75 char __user * __user *, 76 76 struct pt_regs *); 77 + long sys_arch_prctl(int, unsigned long); 77 78 78 79 /* kernel/ioport.c */ 79 80 asmlinkage long sys_iopl(unsigned int, struct pt_regs *);
+1 -1
arch/xtensa/include/asm/swab.h
··· 11 11 #ifndef _XTENSA_SWAB_H 12 12 #define _XTENSA_SWAB_H 13 13 14 - #include <asm/types.h> 14 + #include <linux/types.h> 15 15 #include <linux/compiler.h> 16 16 17 17 #define __SWAB_64_THRU_32__
+1 -1
include/asm-frv/swab.h
··· 1 1 #ifndef _ASM_SWAB_H 2 2 #define _ASM_SWAB_H 3 3 4 - #include <asm/types.h> 4 + #include <linux/types.h> 5 5 6 6 #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) 7 7 # define __SWAB_64_THRU_32__
+6 -6
include/asm-generic/fcntl.h
··· 117 117 struct flock { 118 118 short l_type; 119 119 short l_whence; 120 - off_t l_start; 121 - off_t l_len; 122 - pid_t l_pid; 120 + __kernel_off_t l_start; 121 + __kernel_off_t l_len; 122 + __kernel_pid_t l_pid; 123 123 __ARCH_FLOCK_PAD 124 124 }; 125 125 #endif ··· 140 140 struct flock64 { 141 141 short l_type; 142 142 short l_whence; 143 - loff_t l_start; 144 - loff_t l_len; 145 - pid_t l_pid; 143 + __kernel_loff_t l_start; 144 + __kernel_loff_t l_len; 145 + __kernel_pid_t l_pid; 146 146 __ARCH_FLOCK64_PAD 147 147 }; 148 148 #endif
+7 -7
include/asm-generic/siginfo.h
··· 23 23 #endif 24 24 25 25 #ifndef __ARCH_SI_UID_T 26 - #define __ARCH_SI_UID_T uid_t 26 + #define __ARCH_SI_UID_T __kernel_uid32_t 27 27 #endif 28 28 29 29 /* ··· 47 47 48 48 /* kill() */ 49 49 struct { 50 - pid_t _pid; /* sender's pid */ 50 + __kernel_pid_t _pid; /* sender's pid */ 51 51 __ARCH_SI_UID_T _uid; /* sender's uid */ 52 52 } _kill; 53 53 54 54 /* POSIX.1b timers */ 55 55 struct { 56 - timer_t _tid; /* timer id */ 56 + __kernel_timer_t _tid; /* timer id */ 57 57 int _overrun; /* overrun count */ 58 58 char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)]; 59 59 sigval_t _sigval; /* same as below */ ··· 62 62 63 63 /* POSIX.1b signals */ 64 64 struct { 65 - pid_t _pid; /* sender's pid */ 65 + __kernel_pid_t _pid; /* sender's pid */ 66 66 __ARCH_SI_UID_T _uid; /* sender's uid */ 67 67 sigval_t _sigval; 68 68 } _rt; 69 69 70 70 /* SIGCHLD */ 71 71 struct { 72 - pid_t _pid; /* which child */ 72 + __kernel_pid_t _pid; /* which child */ 73 73 __ARCH_SI_UID_T _uid; /* sender's uid */ 74 74 int _status; /* exit code */ 75 - clock_t _utime; 76 - clock_t _stime; 75 + __kernel_clock_t _utime; 76 + __kernel_clock_t _stime; 77 77 } _sigchld; 78 78 79 79 /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
+3 -2
include/asm-generic/statfs.h
··· 1 1 #ifndef _GENERIC_STATFS_H 2 2 #define _GENERIC_STATFS_H 3 3 4 - #ifndef __KERNEL_STRICT_NAMES 5 - # include <linux/types.h> 4 + #include <linux/types.h> 5 + 6 + #ifdef __KERNEL__ 6 7 typedef __kernel_fsid_t fsid_t; 7 8 #endif 8 9
+1 -1
include/asm-m32r/swab.h
··· 1 1 #ifndef _ASM_M32R_SWAB_H 2 2 #define _ASM_M32R_SWAB_H 3 3 4 - #include <asm/types.h> 4 + #include <linux/types.h> 5 5 6 6 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) 7 7 # define __SWAB_64_THRU_32__
+1 -1
include/asm-mn10300/swab.h
··· 11 11 #ifndef _ASM_SWAB_H 12 12 #define _ASM_SWAB_H 13 13 14 - #include <asm/types.h> 14 + #include <linux/types.h> 15 15 16 16 #ifdef __GNUC__ 17 17
+10 -11
include/drm/drm.h
··· 36 36 #ifndef _DRM_H_ 37 37 #define _DRM_H_ 38 38 39 - #if defined(__KERNEL__) 40 - #endif 39 + #include <linux/types.h> 41 40 #include <asm/ioctl.h> /* For _IO* macros */ 42 41 #define DRM_IOCTL_NR(n) _IOC_NR(n) 43 42 #define DRM_IOC_VOID _IOC_NONE ··· 496 497 * \sa drmModesetCtl(). 497 498 */ 498 499 struct drm_modeset_ctl { 499 - uint32_t crtc; 500 - uint32_t cmd; 500 + __u32 crtc; 501 + __u32 cmd; 501 502 }; 502 503 503 504 /** ··· 573 574 /** DRM_IOCTL_GEM_CLOSE ioctl argument type */ 574 575 struct drm_gem_close { 575 576 /** Handle of the object to be closed. */ 576 - uint32_t handle; 577 - uint32_t pad; 577 + __u32 handle; 578 + __u32 pad; 578 579 }; 579 580 580 581 /** DRM_IOCTL_GEM_FLINK ioctl argument type */ 581 582 struct drm_gem_flink { 582 583 /** Handle for the object being named */ 583 - uint32_t handle; 584 + __u32 handle; 584 585 585 586 /** Returned global name */ 586 - uint32_t name; 587 + __u32 name; 587 588 }; 588 589 589 590 /** DRM_IOCTL_GEM_OPEN ioctl argument type */ 590 591 struct drm_gem_open { 591 592 /** Name of object being opened */ 592 - uint32_t name; 593 + __u32 name; 593 594 594 595 /** Returned handle for the object */ 595 - uint32_t handle; 596 + __u32 handle; 596 597 597 598 /** Returned size of the object */ 598 - uint64_t size; 599 + __u64 size; 599 600 }; 600 601 601 602 #include "drm_mode.h"
+75 -78
include/drm/drm_mode.h
··· 27 27 #ifndef _DRM_MODE_H 28 28 #define _DRM_MODE_H 29 29 30 - #if !defined(__KERNEL__) && !defined(_KERNEL) 31 - #include <stdint.h> 32 - #else 33 30 #include <linux/kernel.h> 34 - #endif 31 + #include <linux/types.h> 35 32 36 33 #define DRM_DISPLAY_INFO_LEN 32 37 34 #define DRM_CONNECTOR_NAME_LEN 32 ··· 78 81 #define DRM_MODE_DITHERING_ON 1 79 82 80 83 struct drm_mode_modeinfo { 81 - uint32_t clock; 82 - uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew; 83 - uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan; 84 + __u32 clock; 85 + __u16 hdisplay, hsync_start, hsync_end, htotal, hskew; 86 + __u16 vdisplay, vsync_start, vsync_end, vtotal, vscan; 84 87 85 - uint32_t vrefresh; /* vertical refresh * 1000 */ 88 + __u32 vrefresh; /* vertical refresh * 1000 */ 86 89 87 - uint32_t flags; 88 - uint32_t type; 90 + __u32 flags; 91 + __u32 type; 89 92 char name[DRM_DISPLAY_MODE_LEN]; 90 93 }; 91 94 92 95 struct drm_mode_card_res { 93 - uint64_t fb_id_ptr; 94 - uint64_t crtc_id_ptr; 95 - uint64_t connector_id_ptr; 96 - uint64_t encoder_id_ptr; 97 - uint32_t count_fbs; 98 - uint32_t count_crtcs; 99 - uint32_t count_connectors; 100 - uint32_t count_encoders; 101 - uint32_t min_width, max_width; 102 - uint32_t min_height, max_height; 96 + __u64 fb_id_ptr; 97 + __u64 crtc_id_ptr; 98 + __u64 connector_id_ptr; 99 + __u64 encoder_id_ptr; 100 + __u32 count_fbs; 101 + __u32 count_crtcs; 102 + __u32 count_connectors; 103 + __u32 count_encoders; 104 + __u32 min_width, max_width; 105 + __u32 min_height, max_height; 103 106 }; 104 107 105 108 struct drm_mode_crtc { 106 - uint64_t set_connectors_ptr; 107 - uint32_t count_connectors; 109 + __u64 set_connectors_ptr; 110 + __u32 count_connectors; 108 111 109 - uint32_t crtc_id; /**< Id */ 110 - uint32_t fb_id; /**< Id of framebuffer */ 112 + __u32 crtc_id; /**< Id */ 113 + __u32 fb_id; /**< Id of framebuffer */ 111 114 112 - uint32_t x, y; /**< Position on the frameuffer */ 115 + __u32 x, y; /**< Position on the frameuffer */ 113 116 114 - uint32_t gamma_size; 115 - uint32_t mode_valid; 117 + __u32 gamma_size; 118 + __u32 mode_valid; 116 119 struct drm_mode_modeinfo mode; 117 120 }; 118 121 ··· 123 126 #define DRM_MODE_ENCODER_TVDAC 4 124 127 125 128 struct drm_mode_get_encoder { 126 - uint32_t encoder_id; 127 - uint32_t encoder_type; 129 + __u32 encoder_id; 130 + __u32 encoder_type; 128 131 129 - uint32_t crtc_id; /**< Id of crtc */ 132 + __u32 crtc_id; /**< Id of crtc */ 130 133 131 - uint32_t possible_crtcs; 132 - uint32_t possible_clones; 134 + __u32 possible_crtcs; 135 + __u32 possible_clones; 133 136 }; 134 137 135 138 /* This is for connectors with multiple signal types. */ ··· 158 161 159 162 struct drm_mode_get_connector { 160 163 161 - uint64_t encoders_ptr; 162 - uint64_t modes_ptr; 163 - uint64_t props_ptr; 164 - uint64_t prop_values_ptr; 164 + __u64 encoders_ptr; 165 + __u64 modes_ptr; 166 + __u64 props_ptr; 167 + __u64 prop_values_ptr; 165 168 166 - uint32_t count_modes; 167 - uint32_t count_props; 168 - uint32_t count_encoders; 169 + __u32 count_modes; 170 + __u32 count_props; 171 + __u32 count_encoders; 169 172 170 - uint32_t encoder_id; /**< Current Encoder */ 171 - uint32_t connector_id; /**< Id */ 172 - uint32_t connector_type; 173 - uint32_t connector_type_id; 173 + __u32 encoder_id; /**< Current Encoder */ 174 + __u32 connector_id; /**< Id */ 175 + __u32 connector_type; 176 + __u32 connector_type_id; 174 177 175 - uint32_t connection; 176 - uint32_t mm_width, mm_height; /**< HxW in millimeters */ 177 - uint32_t subpixel; 178 + __u32 connection; 179 + __u32 mm_width, mm_height; /**< HxW in millimeters */ 180 + __u32 subpixel; 178 181 }; 179 182 180 183 #define DRM_MODE_PROP_PENDING (1<<0) ··· 184 187 #define DRM_MODE_PROP_BLOB (1<<4) 185 188 186 189 struct drm_mode_property_enum { 187 - uint64_t value; 190 + __u64 value; 188 191 char name[DRM_PROP_NAME_LEN]; 189 192 }; 190 193 191 194 struct drm_mode_get_property { 192 - uint64_t values_ptr; /* values and blob lengths */ 193 - uint64_t enum_blob_ptr; /* enum and blob id ptrs */ 195 + __u64 values_ptr; /* values and blob lengths */ 196 + __u64 enum_blob_ptr; /* enum and blob id ptrs */ 194 197 195 - uint32_t prop_id; 196 - uint32_t flags; 198 + __u32 prop_id; 199 + __u32 flags; 197 200 char name[DRM_PROP_NAME_LEN]; 198 201 199 - uint32_t count_values; 200 - uint32_t count_enum_blobs; 202 + __u32 count_values; 203 + __u32 count_enum_blobs; 201 204 }; 202 205 203 206 struct drm_mode_connector_set_property { 204 - uint64_t value; 205 - uint32_t prop_id; 206 - uint32_t connector_id; 207 + __u64 value; 208 + __u32 prop_id; 209 + __u32 connector_id; 207 210 }; 208 211 209 212 struct drm_mode_get_blob { 210 - uint32_t blob_id; 211 - uint32_t length; 212 - uint64_t data; 213 + __u32 blob_id; 214 + __u32 length; 215 + __u64 data; 213 216 }; 214 217 215 218 struct drm_mode_fb_cmd { 216 - uint32_t fb_id; 217 - uint32_t width, height; 218 - uint32_t pitch; 219 - uint32_t bpp; 220 - uint32_t depth; 219 + __u32 fb_id; 220 + __u32 width, height; 221 + __u32 pitch; 222 + __u32 bpp; 223 + __u32 depth; 221 224 /* driver specific handle */ 222 - uint32_t handle; 225 + __u32 handle; 223 226 }; 224 227 225 228 struct drm_mode_mode_cmd { 226 - uint32_t connector_id; 229 + __u32 connector_id; 227 230 struct drm_mode_modeinfo mode; 228 231 }; 229 232 ··· 245 248 * y 246 249 */ 247 250 struct drm_mode_cursor { 248 - uint32_t flags; 249 - uint32_t crtc_id; 250 - int32_t x; 251 - int32_t y; 252 - uint32_t width; 253 - uint32_t height; 251 + __u32 flags; 252 + __u32 crtc_id; 253 + __s32 x; 254 + __s32 y; 255 + __u32 width; 256 + __u32 height; 254 257 /* driver specific handle */ 255 - uint32_t handle; 258 + __u32 handle; 256 259 }; 257 260 258 261 struct drm_mode_crtc_lut { 259 - uint32_t crtc_id; 260 - uint32_t gamma_size; 262 + __u32 crtc_id; 263 + __u32 gamma_size; 261 264 262 265 /* pointers to arrays */ 263 - uint64_t red; 264 - uint64_t green; 265 - uint64_t blue; 266 + __u64 red; 267 + __u64 green; 268 + __u64 blue; 266 269 }; 267 270 268 271 #endif
+70 -70
include/drm/i915_drm.h
··· 30 30 /* Please note that modifications to all structs defined here are 31 31 * subject to backwards-compatibility constraints. 32 32 */ 33 - 33 + #include <linux/types.h> 34 34 #include "drm.h" 35 35 36 36 /* Each region is a minimum of 16k, and there are at most 255 of them. ··· 116 116 117 117 /* fill out some space for old userspace triple buffer */ 118 118 drm_handle_t unused_handle; 119 - uint32_t unused1, unused2, unused3; 119 + __u32 unused1, unused2, unused3; 120 120 121 121 /* buffer object handles for static buffers. May change 122 122 * over the lifetime of the client. 123 123 */ 124 - uint32_t front_bo_handle; 125 - uint32_t back_bo_handle; 126 - uint32_t unused_bo_handle; 127 - uint32_t depth_bo_handle; 124 + __u32 front_bo_handle; 125 + __u32 back_bo_handle; 126 + __u32 unused_bo_handle; 127 + __u32 depth_bo_handle; 128 128 129 129 } drm_i915_sarea_t; 130 130 ··· 327 327 } drm_i915_vblank_swap_t; 328 328 329 329 typedef struct drm_i915_hws_addr { 330 - uint64_t addr; 330 + __u64 addr; 331 331 } drm_i915_hws_addr_t; 332 332 333 333 struct drm_i915_gem_init { ··· 335 335 * Beginning offset in the GTT to be managed by the DRM memory 336 336 * manager. 337 337 */ 338 - uint64_t gtt_start; 338 + __u64 gtt_start; 339 339 /** 340 340 * Ending offset in the GTT to be managed by the DRM memory 341 341 * manager. 342 342 */ 343 - uint64_t gtt_end; 343 + __u64 gtt_end; 344 344 }; 345 345 346 346 struct drm_i915_gem_create { ··· 349 349 * 350 350 * The (page-aligned) allocated size for the object will be returned. 351 351 */ 352 - uint64_t size; 352 + __u64 size; 353 353 /** 354 354 * Returned handle for the object. 355 355 * 356 356 * Object handles are nonzero. 357 357 */ 358 - uint32_t handle; 359 - uint32_t pad; 358 + __u32 handle; 359 + __u32 pad; 360 360 }; 361 361 362 362 struct drm_i915_gem_pread { 363 363 /** Handle for the object being read. */ 364 - uint32_t handle; 365 - uint32_t pad; 364 + __u32 handle; 365 + __u32 pad; 366 366 /** Offset into the object to read from */ 367 - uint64_t offset; 367 + __u64 offset; 368 368 /** Length of data to read */ 369 - uint64_t size; 369 + __u64 size; 370 370 /** 371 371 * Pointer to write the data into. 372 372 * 373 373 * This is a fixed-size type for 32/64 compatibility. 374 374 */ 375 - uint64_t data_ptr; 375 + __u64 data_ptr; 376 376 }; 377 377 378 378 struct drm_i915_gem_pwrite { 379 379 /** Handle for the object being written to. */ 380 - uint32_t handle; 381 - uint32_t pad; 380 + __u32 handle; 381 + __u32 pad; 382 382 /** Offset into the object to write to */ 383 - uint64_t offset; 383 + __u64 offset; 384 384 /** Length of data to write */ 385 - uint64_t size; 385 + __u64 size; 386 386 /** 387 387 * Pointer to read the data from. 388 388 * 389 389 * This is a fixed-size type for 32/64 compatibility. 390 390 */ 391 - uint64_t data_ptr; 391 + __u64 data_ptr; 392 392 }; 393 393 394 394 struct drm_i915_gem_mmap { 395 395 /** Handle for the object being mapped. */ 396 - uint32_t handle; 397 - uint32_t pad; 396 + __u32 handle; 397 + __u32 pad; 398 398 /** Offset in the object to map. */ 399 - uint64_t offset; 399 + __u64 offset; 400 400 /** 401 401 * Length of data to map. 402 402 * 403 403 * The value will be page-aligned. 404 404 */ 405 - uint64_t size; 405 + __u64 size; 406 406 /** 407 407 * Returned pointer the data was mapped at. 408 408 * 409 409 * This is a fixed-size type for 32/64 compatibility. 410 410 */ 411 - uint64_t addr_ptr; 411 + __u64 addr_ptr; 412 412 }; 413 413 414 414 struct drm_i915_gem_mmap_gtt { 415 415 /** Handle for the object being mapped. */ 416 - uint32_t handle; 417 - uint32_t pad; 416 + __u32 handle; 417 + __u32 pad; 418 418 /** 419 419 * Fake offset to use for subsequent mmap call 420 420 * 421 421 * This is a fixed-size type for 32/64 compatibility. 422 422 */ 423 - uint64_t offset; 423 + __u64 offset; 424 424 }; 425 425 426 426 struct drm_i915_gem_set_domain { 427 427 /** Handle for the object */ 428 - uint32_t handle; 428 + __u32 handle; 429 429 430 430 /** New read domains */ 431 - uint32_t read_domains; 431 + __u32 read_domains; 432 432 433 433 /** New write domain */ 434 - uint32_t write_domain; 434 + __u32 write_domain; 435 435 }; 436 436 437 437 struct drm_i915_gem_sw_finish { 438 438 /** Handle for the object */ 439 - uint32_t handle; 439 + __u32 handle; 440 440 }; 441 441 442 442 struct drm_i915_gem_relocation_entry { ··· 448 448 * a relocation list for state buffers and not re-write it per 449 449 * exec using the buffer. 450 450 */ 451 - uint32_t target_handle; 451 + __u32 target_handle; 452 452 453 453 /** 454 454 * Value to be added to the offset of the target buffer to make up 455 455 * the relocation entry. 456 456 */ 457 - uint32_t delta; 457 + __u32 delta; 458 458 459 459 /** Offset in the buffer the relocation entry will be written into */ 460 - uint64_t offset; 460 + __u64 offset; 461 461 462 462 /** 463 463 * Offset value of the target buffer that the relocation entry was last ··· 467 467 * and writing the relocation. This value is written back out by 468 468 * the execbuffer ioctl when the relocation is written. 469 469 */ 470 - uint64_t presumed_offset; 470 + __u64 presumed_offset; 471 471 472 472 /** 473 473 * Target memory domains read by this operation. 474 474 */ 475 - uint32_t read_domains; 475 + __u32 read_domains; 476 476 477 477 /** 478 478 * Target memory domains written by this operation. ··· 481 481 * execbuffer operation, so that where there are conflicts, 482 482 * the application will get -EINVAL back. 483 483 */ 484 - uint32_t write_domain; 484 + __u32 write_domain; 485 485 }; 486 486 487 487 /** @{ ··· 512 512 * User's handle for a buffer to be bound into the GTT for this 513 513 * operation. 514 514 */ 515 - uint32_t handle; 515 + __u32 handle; 516 516 517 517 /** Number of relocations to be performed on this buffer */ 518 - uint32_t relocation_count; 518 + __u32 relocation_count; 519 519 /** 520 520 * Pointer to array of struct drm_i915_gem_relocation_entry containing 521 521 * the relocations to be performed in this buffer. 522 522 */ 523 - uint64_t relocs_ptr; 523 + __u64 relocs_ptr; 524 524 525 525 /** Required alignment in graphics aperture */ 526 - uint64_t alignment; 526 + __u64 alignment; 527 527 528 528 /** 529 529 * Returned value of the updated offset of the object, for future 530 530 * presumed_offset writes. 531 531 */ 532 - uint64_t offset; 532 + __u64 offset; 533 533 }; 534 534 535 535 struct drm_i915_gem_execbuffer { ··· 543 543 * a buffer is performing refer to buffers that have already appeared 544 544 * in the validate list. 545 545 */ 546 - uint64_t buffers_ptr; 547 - uint32_t buffer_count; 546 + __u64 buffers_ptr; 547 + __u32 buffer_count; 548 548 549 549 /** Offset in the batchbuffer to start execution from. */ 550 - uint32_t batch_start_offset; 550 + __u32 batch_start_offset; 551 551 /** Bytes used in batchbuffer from batch_start_offset */ 552 - uint32_t batch_len; 553 - uint32_t DR1; 554 - uint32_t DR4; 555 - uint32_t num_cliprects; 552 + __u32 batch_len; 553 + __u32 DR1; 554 + __u32 DR4; 555 + __u32 num_cliprects; 556 556 /** This is a struct drm_clip_rect *cliprects */ 557 - uint64_t cliprects_ptr; 557 + __u64 cliprects_ptr; 558 558 }; 559 559 560 560 struct drm_i915_gem_pin { 561 561 /** Handle of the buffer to be pinned. */ 562 - uint32_t handle; 563 - uint32_t pad; 562 + __u32 handle; 563 + __u32 pad; 564 564 565 565 /** alignment required within the aperture */ 566 - uint64_t alignment; 566 + __u64 alignment; 567 567 568 568 /** Returned GTT offset of the buffer. */ 569 - uint64_t offset; 569 + __u64 offset; 570 570 }; 571 571 572 572 struct drm_i915_gem_unpin { 573 573 /** Handle of the buffer to be unpinned. */ 574 - uint32_t handle; 575 - uint32_t pad; 574 + __u32 handle; 575 + __u32 pad; 576 576 }; 577 577 578 578 struct drm_i915_gem_busy { 579 579 /** Handle of the buffer to check for busy */ 580 - uint32_t handle; 580 + __u32 handle; 581 581 582 582 /** Return busy status (1 if busy, 0 if idle) */ 583 - uint32_t busy; 583 + __u32 busy; 584 584 }; 585 585 586 586 #define I915_TILING_NONE 0 ··· 597 597 598 598 struct drm_i915_gem_set_tiling { 599 599 /** Handle of the buffer to have its tiling state updated */ 600 - uint32_t handle; 600 + __u32 handle; 601 601 602 602 /** 603 603 * Tiling mode for the object (I915_TILING_NONE, I915_TILING_X, ··· 611 611 * 612 612 * Buffer contents become undefined when changing tiling_mode. 613 613 */ 614 - uint32_t tiling_mode; 614 + __u32 tiling_mode; 615 615 616 616 /** 617 617 * Stride in bytes for the object when in I915_TILING_X or 618 618 * I915_TILING_Y. 619 619 */ 620 - uint32_t stride; 620 + __u32 stride; 621 621 622 622 /** 623 623 * Returned address bit 6 swizzling required for CPU access through 624 624 * mmap mapping. 625 625 */ 626 - uint32_t swizzle_mode; 626 + __u32 swizzle_mode; 627 627 }; 628 628 629 629 struct drm_i915_gem_get_tiling { 630 630 /** Handle of the buffer to get tiling state for. */ 631 - uint32_t handle; 631 + __u32 handle; 632 632 633 633 /** 634 634 * Current tiling mode for the object (I915_TILING_NONE, I915_TILING_X, 635 635 * I915_TILING_Y). 636 636 */ 637 - uint32_t tiling_mode; 637 + __u32 tiling_mode; 638 638 639 639 /** 640 640 * Returned address bit 6 swizzling required for CPU access through 641 641 * mmap mapping. 642 642 */ 643 - uint32_t swizzle_mode; 643 + __u32 swizzle_mode; 644 644 }; 645 645 646 646 struct drm_i915_gem_get_aperture { 647 647 /** Total size of the aperture used by i915_gem_execbuffer, in bytes */ 648 - uint64_t aper_size; 648 + __u64 aper_size; 649 649 650 650 /** 651 651 * Available space in the aperture used by i915_gem_execbuffer, in 652 652 * bytes 653 653 */ 654 - uint64_t aper_available_size; 654 + __u64 aper_available_size; 655 655 }; 656 656 657 657 #endif /* _I915_DRM_H_ */
+10 -8
include/drm/mga_drm.h
··· 35 35 #ifndef __MGA_DRM_H__ 36 36 #define __MGA_DRM_H__ 37 37 38 + #include <linux/types.h> 39 + 38 40 /* WARNING: If you change any of these defines, make sure to change the 39 41 * defines in the Xserver file (mga_sarea.h) 40 42 */ ··· 257 255 #define DRM_IOCTL_MGA_ILOAD DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_ILOAD, drm_mga_iload_t) 258 256 #define DRM_IOCTL_MGA_BLIT DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_BLIT, drm_mga_blit_t) 259 257 #define DRM_IOCTL_MGA_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_GETPARAM, drm_mga_getparam_t) 260 - #define DRM_IOCTL_MGA_SET_FENCE DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_SET_FENCE, uint32_t) 261 - #define DRM_IOCTL_MGA_WAIT_FENCE DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_WAIT_FENCE, uint32_t) 258 + #define DRM_IOCTL_MGA_SET_FENCE DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_SET_FENCE, __u32) 259 + #define DRM_IOCTL_MGA_WAIT_FENCE DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_WAIT_FENCE, __u32) 262 260 #define DRM_IOCTL_MGA_DMA_BOOTSTRAP DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_DMA_BOOTSTRAP, drm_mga_dma_bootstrap_t) 263 261 264 262 typedef struct _drm_mga_warp_index { ··· 312 310 */ 313 311 /*@{ */ 314 312 unsigned long texture_handle; /**< Handle used to map AGP textures. */ 315 - uint32_t texture_size; /**< Size of the AGP texture region. */ 313 + __u32 texture_size; /**< Size of the AGP texture region. */ 316 314 /*@} */ 317 315 318 316 /** ··· 321 319 * On return from the DRM_MGA_DMA_BOOTSTRAP ioctl, this field will be 322 320 * filled in with the actual AGP mode. If AGP was not available 323 321 */ 324 - uint32_t primary_size; 322 + __u32 primary_size; 325 323 326 324 /** 327 325 * Requested number of secondary DMA buffers. ··· 331 329 * allocated. Particularly when PCI DMA is used, this may be 332 330 * (subtantially) less than the number requested. 333 331 */ 334 - uint32_t secondary_bin_count; 332 + __u32 secondary_bin_count; 335 333 336 334 /** 337 335 * Requested size of each secondary DMA buffer. ··· 340 338 * dma_mga_dma_bootstrap::secondary_bin_count, it is \b not allowed 341 339 * to reduce dma_mga_dma_bootstrap::secondary_bin_size. 342 340 */ 343 - uint32_t secondary_bin_size; 341 + __u32 secondary_bin_size; 344 342 345 343 /** 346 344 * Bit-wise mask of AGPSTAT2_* values. Currently only \c AGPSTAT2_1X, ··· 352 350 * filled in with the actual AGP mode. If AGP was not available 353 351 * (i.e., PCI DMA was used), this value will be zero. 354 352 */ 355 - uint32_t agp_mode; 353 + __u32 agp_mode; 356 354 357 355 /** 358 356 * Desired AGP GART size, measured in megabytes. 359 357 */ 360 - uint8_t agp_size; 358 + __u8 agp_size; 361 359 } drm_mga_dma_bootstrap_t; 362 360 363 361 typedef struct drm_mga_clear {
+3 -1
include/drm/radeon_drm.h
··· 33 33 #ifndef __RADEON_DRM_H__ 34 34 #define __RADEON_DRM_H__ 35 35 36 + #include <linux/types.h> 37 + 36 38 /* WARNING: If you change any of these defines, make sure to change the 37 39 * defines in the X server file (radeon_sarea.h) 38 40 */ ··· 724 722 725 723 typedef struct drm_radeon_setparam { 726 724 unsigned int param; 727 - int64_t value; 725 + __s64 value; 728 726 } drm_radeon_setparam_t; 729 727 730 728 #define RADEON_SETPARAM_FB_LOCATION 1 /* determined framebuffer location */
+22 -20
include/drm/via_drm.h
··· 24 24 #ifndef _VIA_DRM_H_ 25 25 #define _VIA_DRM_H_ 26 26 27 + #include <linux/types.h> 28 + 27 29 /* WARNING: These defines must be the same as what the Xserver uses. 28 30 * if you change them, you must change the defines in the Xserver. 29 31 */ ··· 116 114 #define VIA_MEM_UNKNOWN 4 117 115 118 116 typedef struct { 119 - uint32_t offset; 120 - uint32_t size; 117 + __u32 offset; 118 + __u32 size; 121 119 } drm_via_agp_t; 122 120 123 121 typedef struct { 124 - uint32_t offset; 125 - uint32_t size; 122 + __u32 offset; 123 + __u32 size; 126 124 } drm_via_fb_t; 127 125 128 126 typedef struct { 129 - uint32_t context; 130 - uint32_t type; 131 - uint32_t size; 127 + __u32 context; 128 + __u32 type; 129 + __u32 size; 132 130 unsigned long index; 133 131 unsigned long offset; 134 132 } drm_via_mem_t; ··· 150 148 VIA_FUTEX_WAIT = 0x00, 151 149 VIA_FUTEX_WAKE = 0X01 152 150 } func; 153 - uint32_t ms; 154 - uint32_t lock; 155 - uint32_t val; 151 + __u32 ms; 152 + __u32 lock; 153 + __u32 val; 156 154 } drm_via_futex_t; 157 155 158 156 typedef struct _drm_via_dma_init { ··· 213 211 VIA_CMDBUF_LAG = 0x02 214 212 } func; 215 213 int wait; 216 - uint32_t size; 214 + __u32 size; 217 215 } drm_via_cmdbuf_size_t; 218 216 219 217 typedef enum { ··· 238 236 struct drm_via_wait_irq_request { 239 237 unsigned irq; 240 238 via_irq_seq_type_t type; 241 - uint32_t sequence; 242 - uint32_t signal; 239 + __u32 sequence; 240 + __u32 signal; 243 241 }; 244 242 245 243 typedef union drm_via_irqwait { ··· 248 246 } drm_via_irqwait_t; 249 247 250 248 typedef struct drm_via_blitsync { 251 - uint32_t sync_handle; 249 + __u32 sync_handle; 252 250 unsigned engine; 253 251 } drm_via_blitsync_t; 254 252 ··· 259 257 */ 260 258 261 259 typedef struct drm_via_dmablit { 262 - uint32_t num_lines; 263 - uint32_t line_length; 260 + __u32 num_lines; 261 + __u32 line_length; 264 262 265 - uint32_t fb_addr; 266 - uint32_t fb_stride; 263 + __u32 fb_addr; 264 + __u32 fb_stride; 267 265 268 266 unsigned char *mem_addr; 269 - uint32_t mem_stride; 267 + __u32 mem_stride; 270 268 271 - uint32_t flags; 269 + __u32 flags; 272 270 int to_fb; 273 271 274 272 drm_via_blitsync_t sync;
+7 -7
include/linux/agpgart.h
··· 77 77 * The "prot" down below needs still a "sleep" flag somehow ... 78 78 */ 79 79 typedef struct _agp_segment { 80 - off_t pg_start; /* starting page to populate */ 81 - size_t pg_count; /* number of pages */ 82 - int prot; /* prot flags for mmap */ 80 + __kernel_off_t pg_start; /* starting page to populate */ 81 + __kernel_size_t pg_count; /* number of pages */ 82 + int prot; /* prot flags for mmap */ 83 83 } agp_segment; 84 84 85 85 typedef struct _agp_region { 86 - pid_t pid; /* pid of process */ 87 - size_t seg_count; /* number of segments */ 86 + __kernel_pid_t pid; /* pid of process */ 87 + __kernel_size_t seg_count; /* number of segments */ 88 88 struct _agp_segment *seg_list; 89 89 } agp_region; 90 90 91 91 typedef struct _agp_allocate { 92 92 int key; /* tag of allocation */ 93 - size_t pg_count; /* number of pages */ 93 + __kernel_size_t pg_count;/* number of pages */ 94 94 __u32 type; /* 0 == normal, other devspec */ 95 95 __u32 physical; /* device specific (some devices 96 96 * need a phys address of the ··· 100 100 101 101 typedef struct _agp_bind { 102 102 int key; /* tag of allocation */ 103 - off_t pg_start; /* starting page to populate */ 103 + __kernel_off_t pg_start;/* starting page to populate */ 104 104 } agp_bind; 105 105 106 106 typedef struct _agp_unbind {
+3 -2
include/linux/atmlec.h
··· 11 11 #include <linux/atmioc.h> 12 12 #include <linux/atm.h> 13 13 #include <linux/if_ether.h> 14 + #include <linux/types.h> 14 15 15 16 /* ATM lec daemon control socket */ 16 17 #define ATMLEC_CTRL _IO('a', ATMIOC_LANE) ··· 79 78 } normal; 80 79 struct atmlec_config_msg config; 81 80 struct { 82 - uint16_t lec_id; /* requestor lec_id */ 83 - uint32_t tran_id; /* transaction id */ 81 + __u16 lec_id; /* requestor lec_id */ 82 + __u32 tran_id; /* transaction id */ 84 83 unsigned char mac_addr[ETH_ALEN]; /* dst mac addr */ 85 84 unsigned char atm_addr[ATM_ESA_LEN]; /* reqestor ATM addr */ 86 85 } proxy; /*
+23 -22
include/linux/atmmpc.h
··· 4 4 #include <linux/atmapi.h> 5 5 #include <linux/atmioc.h> 6 6 #include <linux/atm.h> 7 + #include <linux/types.h> 7 8 8 9 #define ATMMPC_CTRL _IO('a', ATMIOC_MPOA) 9 10 #define ATMMPC_DATA _IO('a', ATMIOC_MPOA+1) ··· 19 18 }; 20 19 21 20 typedef struct in_ctrl_info { 22 - uint8_t Last_NHRP_CIE_code; 23 - uint8_t Last_Q2931_cause_value; 24 - uint8_t eg_MPC_ATM_addr[ATM_ESA_LEN]; 21 + __u8 Last_NHRP_CIE_code; 22 + __u8 Last_Q2931_cause_value; 23 + __u8 eg_MPC_ATM_addr[ATM_ESA_LEN]; 25 24 __be32 tag; 26 25 __be32 in_dst_ip; /* IP address this ingress MPC sends packets to */ 27 - uint16_t holding_time; 28 - uint32_t request_id; 26 + __u16 holding_time; 27 + __u32 request_id; 29 28 } in_ctrl_info; 30 29 31 30 typedef struct eg_ctrl_info { 32 - uint8_t DLL_header[256]; 33 - uint8_t DH_length; 31 + __u8 DLL_header[256]; 32 + __u8 DH_length; 34 33 __be32 cache_id; 35 34 __be32 tag; 36 35 __be32 mps_ip; 37 36 __be32 eg_dst_ip; /* IP address to which ingress MPC sends packets */ 38 - uint8_t in_MPC_data_ATM_addr[ATM_ESA_LEN]; 39 - uint16_t holding_time; 37 + __u8 in_MPC_data_ATM_addr[ATM_ESA_LEN]; 38 + __u16 holding_time; 40 39 } eg_ctrl_info; 41 40 42 41 struct mpc_parameters { 43 - uint16_t mpc_p1; /* Shortcut-Setup Frame Count */ 44 - uint16_t mpc_p2; /* Shortcut-Setup Frame Time */ 45 - uint8_t mpc_p3[8]; /* Flow-detection Protocols */ 46 - uint16_t mpc_p4; /* MPC Initial Retry Time */ 47 - uint16_t mpc_p5; /* MPC Retry Time Maximum */ 48 - uint16_t mpc_p6; /* Hold Down Time */ 42 + __u16 mpc_p1; /* Shortcut-Setup Frame Count */ 43 + __u16 mpc_p2; /* Shortcut-Setup Frame Time */ 44 + __u8 mpc_p3[8]; /* Flow-detection Protocols */ 45 + __u16 mpc_p4; /* MPC Initial Retry Time */ 46 + __u16 mpc_p5; /* MPC Retry Time Maximum */ 47 + __u16 mpc_p6; /* Hold Down Time */ 49 48 } ; 50 49 51 50 struct k_message { 52 - uint16_t type; 51 + __u16 type; 53 52 __be32 ip_mask; 54 - uint8_t MPS_ctrl[ATM_ESA_LEN]; 53 + __u8 MPS_ctrl[ATM_ESA_LEN]; 55 54 union { 56 55 in_ctrl_info in_info; 57 56 eg_ctrl_info eg_info; ··· 62 61 63 62 struct llc_snap_hdr { 64 63 /* RFC 1483 LLC/SNAP encapsulation for routed IP PDUs */ 65 - uint8_t dsap; /* Destination Service Access Point (0xAA) */ 66 - uint8_t ssap; /* Source Service Access Point (0xAA) */ 67 - uint8_t ui; /* Unnumbered Information (0x03) */ 68 - uint8_t org[3]; /* Organizational identification (0x000000) */ 69 - uint8_t type[2]; /* Ether type (for IP) (0x0800) */ 64 + __u8 dsap; /* Destination Service Access Point (0xAA) */ 65 + __u8 ssap; /* Source Service Access Point (0xAA) */ 66 + __u8 ui; /* Unnumbered Information (0x03) */ 67 + __u8 org[3]; /* Organizational identification (0x000000) */ 68 + __u8 type[2]; /* Ether type (for IP) (0x0800) */ 70 69 }; 71 70 72 71 /* TLVs this MPC recognizes */
+6 -4
include/linux/cm4000_cs.h
··· 1 1 #ifndef _CM4000_H_ 2 2 #define _CM4000_H_ 3 3 4 + #include <linux/types.h> 5 + 4 6 #define MAX_ATR 33 5 7 6 8 #define CM4000_MAX_DEV 4 ··· 12 10 * not to break compilation of userspace apps. -HW */ 13 11 14 12 typedef struct atreq { 15 - int32_t atr_len; 13 + __s32 atr_len; 16 14 unsigned char atr[64]; 17 - int32_t power_act; 15 + __s32 power_act; 18 16 unsigned char bIFSD; 19 17 unsigned char bIFSC; 20 18 } atreq_t; ··· 24 22 * member sizes. This leads to CONFIG_COMPAT breakage, since 32bit userspace 25 23 * will lay out the structure members differently than the 64bit kernel. 26 24 * 27 - * I've changed "ptsreq.protocol" from "unsigned long" to "u_int32_t". 25 + * I've changed "ptsreq.protocol" from "unsigned long" to "__u32". 28 26 * On 32bit this will make no difference. With 64bit kernels, it will make 29 27 * 32bit apps work, too. 30 28 */ 31 29 32 30 typedef struct ptsreq { 33 - u_int32_t protocol; /*T=0: 2^0, T=1: 2^1*/ 31 + __u32 protocol; /*T=0: 2^0, T=1: 2^1*/ 34 32 unsigned char flags; 35 33 unsigned char pts1; 36 34 unsigned char pts2;
+10 -10
include/linux/cn_proc.h
··· 65 65 } ack; 66 66 67 67 struct fork_proc_event { 68 - pid_t parent_pid; 69 - pid_t parent_tgid; 70 - pid_t child_pid; 71 - pid_t child_tgid; 68 + __kernel_pid_t parent_pid; 69 + __kernel_pid_t parent_tgid; 70 + __kernel_pid_t child_pid; 71 + __kernel_pid_t child_tgid; 72 72 } fork; 73 73 74 74 struct exec_proc_event { 75 - pid_t process_pid; 76 - pid_t process_tgid; 75 + __kernel_pid_t process_pid; 76 + __kernel_pid_t process_tgid; 77 77 } exec; 78 78 79 79 struct id_proc_event { 80 - pid_t process_pid; 81 - pid_t process_tgid; 80 + __kernel_pid_t process_pid; 81 + __kernel_pid_t process_tgid; 82 82 union { 83 83 __u32 ruid; /* task uid */ 84 84 __u32 rgid; /* task gid */ ··· 90 90 } id; 91 91 92 92 struct exit_proc_event { 93 - pid_t process_pid; 94 - pid_t process_tgid; 93 + __kernel_pid_t process_pid; 94 + __kernel_pid_t process_tgid; 95 95 __u32 exit_code, exit_signal; 96 96 } exit; 97 97 } event_data;
+7 -8
include/linux/coda_psdev.h
··· 6 6 #define CODA_PSDEV_MAJOR 67 7 7 #define MAX_CODADEVS 5 /* how many do we allow */ 8 8 9 + #ifdef __KERNEL__ 9 10 struct kstatfs; 10 11 11 12 /* communication pending/processing queues */ ··· 24 23 { 25 24 return (struct venus_comm *)((sb)->s_fs_info); 26 25 } 27 - 28 26 29 27 /* upcalls */ 30 28 int venus_rootfid(struct super_block *sb, struct CodaFid *fidp); ··· 64 64 int venus_fsync(struct super_block *sb, struct CodaFid *fid); 65 65 int venus_statfs(struct dentry *dentry, struct kstatfs *sfs); 66 66 67 + /* 68 + * Statistics 69 + */ 70 + 71 + extern struct venus_comm coda_comms[]; 72 + #endif /* __KERNEL__ */ 67 73 68 74 /* messages between coda filesystem in kernel and Venus */ 69 75 struct upc_req { ··· 87 81 #define REQ_READ 0x2 88 82 #define REQ_WRITE 0x4 89 83 #define REQ_ABORT 0x8 90 - 91 - 92 - /* 93 - * Statistics 94 - */ 95 - 96 - extern struct venus_comm coda_comms[]; 97 84 98 85 #endif
+4 -2
include/linux/compiler-gcc4.h
··· 3 3 #endif 4 4 5 5 /* GCC 4.1.[01] miscompiles __weak */ 6 - #if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1 7 - # error Your version of gcc miscompiles the __weak directive 6 + #ifdef __KERNEL__ 7 + # if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1 8 + # error Your version of gcc miscompiles the __weak directive 9 + # endif 8 10 #endif 9 11 10 12 #define __used __attribute__((__used__))
+3 -3
include/linux/cyclades.h
··· 82 82 * open) 83 83 */ 84 84 struct cyclades_idle_stats { 85 - time_t in_use; /* Time device has been in use (secs) */ 86 - time_t recv_idle; /* Time since last char received (secs) */ 87 - time_t xmit_idle; /* Time since last char transmitted (secs) */ 85 + __kernel_time_t in_use; /* Time device has been in use (secs) */ 86 + __kernel_time_t recv_idle; /* Time since last char received (secs) */ 87 + __kernel_time_t xmit_idle; /* Time since last char transmitted (secs) */ 88 88 unsigned long recv_bytes; /* Bytes received */ 89 89 unsigned long xmit_bytes; /* Bytes transmitted */ 90 90 unsigned long overruns; /* Input overruns */
+10 -8
include/linux/dlm_netlink.h
··· 9 9 #ifndef _DLM_NETLINK_H 10 10 #define _DLM_NETLINK_H 11 11 12 + #include <linux/types.h> 13 + 12 14 enum { 13 15 DLM_STATUS_WAITING = 1, 14 16 DLM_STATUS_GRANTED = 2, ··· 20 18 #define DLM_LOCK_DATA_VERSION 1 21 19 22 20 struct dlm_lock_data { 23 - uint16_t version; 24 - uint32_t lockspace_id; 21 + __u16 version; 22 + __u32 lockspace_id; 25 23 int nodeid; 26 24 int ownpid; 27 - uint32_t id; 28 - uint32_t remid; 29 - uint64_t xid; 30 - int8_t status; 31 - int8_t grmode; 32 - int8_t rqmode; 25 + __u32 id; 26 + __u32 remid; 27 + __u64 xid; 28 + __s8 status; 29 + __s8 grmode; 30 + __s8 rqmode; 33 31 unsigned long timestamp; 34 32 int resource_namelen; 35 33 char resource_name[DLM_RESNAME_MAXLEN];
+21 -21
include/linux/dm-ioctl.h
··· 113 113 * return -ENOTTY) fill out this field, even if the 114 114 * command failed. 115 115 */ 116 - uint32_t version[3]; /* in/out */ 117 - uint32_t data_size; /* total size of data passed in 116 + __u32 version[3]; /* in/out */ 117 + __u32 data_size; /* total size of data passed in 118 118 * including this struct */ 119 119 120 - uint32_t data_start; /* offset to start of data 120 + __u32 data_start; /* offset to start of data 121 121 * relative to start of this struct */ 122 122 123 - uint32_t target_count; /* in/out */ 124 - int32_t open_count; /* out */ 125 - uint32_t flags; /* in/out */ 126 - uint32_t event_nr; /* in/out */ 127 - uint32_t padding; 123 + __u32 target_count; /* in/out */ 124 + __s32 open_count; /* out */ 125 + __u32 flags; /* in/out */ 126 + __u32 event_nr; /* in/out */ 127 + __u32 padding; 128 128 129 - uint64_t dev; /* in/out */ 129 + __u64 dev; /* in/out */ 130 130 131 131 char name[DM_NAME_LEN]; /* device name */ 132 132 char uuid[DM_UUID_LEN]; /* unique identifier for ··· 139 139 * dm_ioctl. 140 140 */ 141 141 struct dm_target_spec { 142 - uint64_t sector_start; 143 - uint64_t length; 144 - int32_t status; /* used when reading from kernel only */ 142 + __u64 sector_start; 143 + __u64 length; 144 + __s32 status; /* used when reading from kernel only */ 145 145 146 146 /* 147 147 * Location of the next dm_target_spec. ··· 153 153 * (that follows the dm_ioctl struct) to the start of the "next" 154 154 * dm_target_spec. 155 155 */ 156 - uint32_t next; 156 + __u32 next; 157 157 158 158 char target_type[DM_MAX_TYPE_NAME]; 159 159 ··· 168 168 * Used to retrieve the target dependencies. 169 169 */ 170 170 struct dm_target_deps { 171 - uint32_t count; /* Array size */ 172 - uint32_t padding; /* unused */ 173 - uint64_t dev[0]; /* out */ 171 + __u32 count; /* Array size */ 172 + __u32 padding; /* unused */ 173 + __u64 dev[0]; /* out */ 174 174 }; 175 175 176 176 /* 177 177 * Used to get a list of all dm devices. 178 178 */ 179 179 struct dm_name_list { 180 - uint64_t dev; 181 - uint32_t next; /* offset to the next record from 180 + __u64 dev; 181 + __u32 next; /* offset to the next record from 182 182 the _start_ of this */ 183 183 char name[0]; 184 184 }; ··· 187 187 * Used to retrieve the target versions 188 188 */ 189 189 struct dm_target_versions { 190 - uint32_t next; 191 - uint32_t version[3]; 190 + __u32 next; 191 + __u32 version[3]; 192 192 193 193 char name[0]; 194 194 }; ··· 197 197 * Used to pass message to a target 198 198 */ 199 199 struct dm_target_msg { 200 - uint64_t sector; /* Device sector */ 200 + __u64 sector; /* Device sector */ 201 201 202 202 char message[0]; 203 203 };
+1 -1
include/linux/dvb/audio.h
··· 76 76 } audio_karaoke_t; /* into left and right */ 77 77 78 78 79 - typedef uint16_t audio_attributes_t; 79 + typedef __u16 audio_attributes_t; 80 80 /* bits: descr. */ 81 81 /* 15-13 audio coding mode (0=ac3, 2=mpeg1, 3=mpeg2ext, 4=LPCM, 6=DTS, */ 82 82 /* 12 multichannel extension */
+12 -12
include/linux/dvb/video.h
··· 132 132 #define VIDEO_VSYNC_FIELD_PROGRESSIVE (3) 133 133 134 134 struct video_event { 135 - int32_t type; 135 + __s32 type; 136 136 #define VIDEO_EVENT_SIZE_CHANGED 1 137 137 #define VIDEO_EVENT_FRAME_RATE_CHANGED 2 138 138 #define VIDEO_EVENT_DECODER_STOPPED 3 139 139 #define VIDEO_EVENT_VSYNC 4 140 - time_t timestamp; 140 + __kernel_time_t timestamp; 141 141 union { 142 142 video_size_t size; 143 143 unsigned int frame_rate; /* in frames per 1000sec */ ··· 157 157 158 158 struct video_still_picture { 159 159 char __user *iFrame; /* pointer to a single iframe in memory */ 160 - int32_t size; 160 + __s32 size; 161 161 }; 162 162 163 163 164 164 typedef 165 165 struct video_highlight { 166 166 int active; /* 1=show highlight, 0=hide highlight */ 167 - uint8_t contrast1; /* 7- 4 Pattern pixel contrast */ 167 + __u8 contrast1; /* 7- 4 Pattern pixel contrast */ 168 168 /* 3- 0 Background pixel contrast */ 169 - uint8_t contrast2; /* 7- 4 Emphasis pixel-2 contrast */ 169 + __u8 contrast2; /* 7- 4 Emphasis pixel-2 contrast */ 170 170 /* 3- 0 Emphasis pixel-1 contrast */ 171 - uint8_t color1; /* 7- 4 Pattern pixel color */ 171 + __u8 color1; /* 7- 4 Pattern pixel color */ 172 172 /* 3- 0 Background pixel color */ 173 - uint8_t color2; /* 7- 4 Emphasis pixel-2 color */ 173 + __u8 color2; /* 7- 4 Emphasis pixel-2 color */ 174 174 /* 3- 0 Emphasis pixel-1 color */ 175 - uint32_t ypos; /* 23-22 auto action mode */ 175 + __u32 ypos; /* 23-22 auto action mode */ 176 176 /* 21-12 start y */ 177 177 /* 9- 0 end y */ 178 - uint32_t xpos; /* 23-22 button color number */ 178 + __u32 xpos; /* 23-22 button color number */ 179 179 /* 21-12 start x */ 180 180 /* 9- 0 end x */ 181 181 } video_highlight_t; ··· 189 189 190 190 typedef struct video_spu_palette { /* SPU Palette information */ 191 191 int length; 192 - uint8_t __user *palette; 192 + __u8 __user *palette; 193 193 } video_spu_palette_t; 194 194 195 195 196 196 typedef struct video_navi_pack { 197 197 int length; /* 0 ... 1024 */ 198 - uint8_t data[1024]; 198 + __u8 data[1024]; 199 199 } video_navi_pack_t; 200 200 201 201 202 - typedef uint16_t video_attributes_t; 202 + typedef __u16 video_attributes_t; 203 203 /* bits: descr. */ 204 204 /* 15-14 Video compression mode (0=MPEG-1, 1=MPEG-2) */ 205 205 /* 13-12 TV system (0=525/60, 1=625/50) */
+14 -13
include/linux/if_arcnet.h
··· 16 16 #ifndef _LINUX_IF_ARCNET_H 17 17 #define _LINUX_IF_ARCNET_H 18 18 19 + #include <linux/types.h> 19 20 #include <linux/if_ether.h> 20 21 21 22 ··· 58 57 */ 59 58 struct arc_rfc1201 60 59 { 61 - uint8_t proto; /* protocol ID field - varies */ 62 - uint8_t split_flag; /* for use with split packets */ 60 + __u8 proto; /* protocol ID field - varies */ 61 + __u8 split_flag; /* for use with split packets */ 63 62 __be16 sequence; /* sequence number */ 64 - uint8_t payload[0]; /* space remaining in packet (504 bytes)*/ 63 + __u8 payload[0]; /* space remaining in packet (504 bytes)*/ 65 64 }; 66 65 #define RFC1201_HDR_SIZE 4 67 66 ··· 71 70 */ 72 71 struct arc_rfc1051 73 72 { 74 - uint8_t proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */ 75 - uint8_t payload[0]; /* 507 bytes */ 73 + __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */ 74 + __u8 payload[0]; /* 507 bytes */ 76 75 }; 77 76 #define RFC1051_HDR_SIZE 1 78 77 ··· 83 82 */ 84 83 struct arc_eth_encap 85 84 { 86 - uint8_t proto; /* Always ARC_P_ETHER */ 85 + __u8 proto; /* Always ARC_P_ETHER */ 87 86 struct ethhdr eth; /* standard ethernet header (yuck!) */ 88 - uint8_t payload[0]; /* 493 bytes */ 87 + __u8 payload[0]; /* 493 bytes */ 89 88 }; 90 89 #define ETH_ENCAP_HDR_SIZE 14 91 90 92 91 93 92 struct arc_cap 94 93 { 95 - uint8_t proto; 96 - uint8_t cookie[sizeof(int)]; /* Actually NOT sent over the network */ 94 + __u8 proto; 95 + __u8 cookie[sizeof(int)]; /* Actually NOT sent over the network */ 97 96 union { 98 - uint8_t ack; 99 - uint8_t raw[0]; /* 507 bytes */ 97 + __u8 ack; 98 + __u8 raw[0]; /* 507 bytes */ 100 99 } mes; 101 100 }; 102 101 ··· 110 109 */ 111 110 struct arc_hardware 112 111 { 113 - uint8_t source, /* source ARCnet - filled in automagically */ 112 + __u8 source, /* source ARCnet - filled in automagically */ 114 113 dest, /* destination ARCnet - 0 for broadcast */ 115 114 offset[2]; /* offset bytes (some weird semantics) */ 116 115 }; ··· 131 130 struct arc_rfc1051 rfc1051; 132 131 struct arc_eth_encap eth_encap; 133 132 struct arc_cap cap; 134 - uint8_t raw[0]; /* 508 bytes */ 133 + __u8 raw[0]; /* 508 bytes */ 135 134 } soft; 136 135 }; 137 136
+1 -1
include/linux/if_pppol2tp.h
··· 26 26 */ 27 27 struct pppol2tp_addr 28 28 { 29 - pid_t pid; /* pid that owns the fd. 29 + __kernel_pid_t pid; /* pid that owns the fd. 30 30 * 0 => current */ 31 31 int fd; /* FD of UDP socket to use */ 32 32
+1 -1
include/linux/in6.h
··· 44 44 * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined 45 45 * in network byte order, not in host byte order as are the IPv4 equivalents 46 46 */ 47 + #ifdef __KERNEL__ 47 48 extern const struct in6_addr in6addr_any; 48 49 #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } 49 50 extern const struct in6_addr in6addr_loopback; 50 51 #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } 51 - #ifdef __KERNEL__ 52 52 extern const struct in6_addr in6addr_linklocal_allnodes; 53 53 #define IN6ADDR_LINKLOCAL_ALLNODES_INIT \ 54 54 { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
+13 -13
include/linux/ip_vs.h
··· 96 96 */ 97 97 struct ip_vs_service_user { 98 98 /* virtual service addresses */ 99 - u_int16_t protocol; 99 + __u16 protocol; 100 100 __be32 addr; /* virtual ip address */ 101 101 __be16 port; 102 - u_int32_t fwmark; /* firwall mark of service */ 102 + __u32 fwmark; /* firwall mark of service */ 103 103 104 104 /* virtual service options */ 105 105 char sched_name[IP_VS_SCHEDNAME_MAXLEN]; ··· 119 119 int weight; /* destination weight */ 120 120 121 121 /* thresholds for active connections */ 122 - u_int32_t u_threshold; /* upper threshold */ 123 - u_int32_t l_threshold; /* lower threshold */ 122 + __u32 u_threshold; /* upper threshold */ 123 + __u32 l_threshold; /* lower threshold */ 124 124 }; 125 125 126 126 ··· 159 159 /* The argument to IP_VS_SO_GET_SERVICE */ 160 160 struct ip_vs_service_entry { 161 161 /* which service: user fills in these */ 162 - u_int16_t protocol; 162 + __u16 protocol; 163 163 __be32 addr; /* virtual address */ 164 164 __be16 port; 165 - u_int32_t fwmark; /* firwall mark of service */ 165 + __u32 fwmark; /* firwall mark of service */ 166 166 167 167 /* service options */ 168 168 char sched_name[IP_VS_SCHEDNAME_MAXLEN]; ··· 184 184 unsigned conn_flags; /* connection flags */ 185 185 int weight; /* destination weight */ 186 186 187 - u_int32_t u_threshold; /* upper threshold */ 188 - u_int32_t l_threshold; /* lower threshold */ 187 + __u32 u_threshold; /* upper threshold */ 188 + __u32 l_threshold; /* lower threshold */ 189 189 190 - u_int32_t activeconns; /* active connections */ 191 - u_int32_t inactconns; /* inactive connections */ 192 - u_int32_t persistconns; /* persistent connections */ 190 + __u32 activeconns; /* active connections */ 191 + __u32 inactconns; /* inactive connections */ 192 + __u32 persistconns; /* persistent connections */ 193 193 194 194 /* statistics */ 195 195 struct ip_vs_stats_user stats; ··· 199 199 /* The argument to IP_VS_SO_GET_DESTS */ 200 200 struct ip_vs_get_dests { 201 201 /* which service: user fills in these */ 202 - u_int16_t protocol; 202 + __u16 protocol; 203 203 __be32 addr; /* virtual address */ 204 204 __be16 port; 205 - u_int32_t fwmark; /* firwall mark of service */ 205 + __u32 fwmark; /* firwall mark of service */ 206 206 207 207 /* number of real servers */ 208 208 unsigned int num_dests;
+1 -1
include/linux/ivtvfb.h
··· 33 33 }; 34 34 35 35 #define IVTVFB_IOC_DMA_FRAME _IOW('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame) 36 - #define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t) 36 + #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) 37 37 38 38 #endif
+14 -13
include/linux/jffs2.h
··· 12 12 #ifndef __LINUX_JFFS2_H__ 13 13 #define __LINUX_JFFS2_H__ 14 14 15 + #include <linux/types.h> 15 16 #include <linux/magic.h> 16 17 17 18 /* You must include something which defines the C99 uintXX_t types. ··· 92 91 byteswapping */ 93 92 94 93 typedef struct { 95 - uint32_t v32; 94 + __u32 v32; 96 95 } __attribute__((packed)) jint32_t; 97 96 98 97 typedef struct { 99 - uint32_t m; 98 + __u32 m; 100 99 } __attribute__((packed)) jmode_t; 101 100 102 101 typedef struct { 103 - uint16_t v16; 102 + __u16 v16; 104 103 } __attribute__((packed)) jint16_t; 105 104 106 105 struct jffs2_unknown_node ··· 122 121 jint32_t version; 123 122 jint32_t ino; /* == zero for unlink */ 124 123 jint32_t mctime; 125 - uint8_t nsize; 126 - uint8_t type; 127 - uint8_t unused[2]; 124 + __u8 nsize; 125 + __u8 type; 126 + __u8 unused[2]; 128 127 jint32_t node_crc; 129 128 jint32_t name_crc; 130 - uint8_t name[0]; 129 + __u8 name[0]; 131 130 }; 132 131 133 132 /* The JFFS2 raw inode structure: Used for storage on physical media. */ ··· 154 153 jint32_t offset; /* Where to begin to write. */ 155 154 jint32_t csize; /* (Compressed) data size */ 156 155 jint32_t dsize; /* Size of the node's data. (after decompression) */ 157 - uint8_t compr; /* Compression algorithm used */ 158 - uint8_t usercompr; /* Compression algorithm requested by the user */ 156 + __u8 compr; /* Compression algorithm used */ 157 + __u8 usercompr; /* Compression algorithm requested by the user */ 159 158 jint16_t flags; /* See JFFS2_INO_FLAG_* */ 160 159 jint32_t data_crc; /* CRC for the (compressed) data. */ 161 160 jint32_t node_crc; /* CRC for the raw inode (excluding data) */ 162 - uint8_t data[0]; 161 + __u8 data[0]; 163 162 }; 164 163 165 164 struct jffs2_raw_xattr { ··· 169 168 jint32_t hdr_crc; 170 169 jint32_t xid; /* XATTR identifier number */ 171 170 jint32_t version; 172 - uint8_t xprefix; 173 - uint8_t name_len; 171 + __u8 xprefix; 172 + __u8 name_len; 174 173 jint16_t value_len; 175 174 jint32_t data_crc; 176 175 jint32_t node_crc; 177 - uint8_t data[0]; 176 + __u8 data[0]; 178 177 } __attribute__((packed)); 179 178 180 179 struct jffs2_raw_xref
+1 -1
include/linux/matroxfb.h
··· 37 37 MATROXFB_CID_LAST 38 38 }; 39 39 40 - #define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t) 40 + #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) 41 41 42 42 #endif 43 43
+1 -1
include/linux/mroute6.h
··· 65 65 mifi_t mif6c_mifi; /* Index of MIF */ 66 66 unsigned char mif6c_flags; /* MIFF_ flags */ 67 67 unsigned char vifc_threshold; /* ttl limit */ 68 - u_short mif6c_pifi; /* the index of the physical IF */ 68 + __u16 mif6c_pifi; /* the index of the physical IF */ 69 69 unsigned int vifc_rate_limit; /* Rate limiter values (NI) */ 70 70 }; 71 71
+4 -2
include/linux/netfilter/nf_conntrack_tcp.h
··· 2 2 #define _NF_CONNTRACK_TCP_H 3 3 /* TCP tracking. */ 4 4 5 + #include <linux/types.h> 6 + 5 7 /* This is exposed to userspace (ctnetlink) */ 6 8 enum tcp_conntrack { 7 9 TCP_CONNTRACK_NONE, ··· 36 34 #define IP_CT_TCP_FLAG_DATA_UNACKNOWLEDGED 0x10 37 35 38 36 struct nf_ct_tcp_flags { 39 - u_int8_t flags; 40 - u_int8_t mask; 37 + __u8 flags; 38 + __u8 mask; 41 39 }; 42 40 43 41 #ifdef __KERNEL__
+2 -2
include/linux/netfilter/nfnetlink.h
··· 25 25 /* General form of address family dependent message. 26 26 */ 27 27 struct nfgenmsg { 28 - u_int8_t nfgen_family; /* AF_xxx */ 29 - u_int8_t version; /* nfnetlink version */ 28 + __u8 nfgen_family; /* AF_xxx */ 29 + __u8 version; /* nfnetlink version */ 30 30 __be16 res_id; /* resource id */ 31 31 }; 32 32
+16 -14
include/linux/netfilter/x_tables.h
··· 1 1 #ifndef _X_TABLES_H 2 2 #define _X_TABLES_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define XT_FUNCTION_MAXNAMELEN 30 5 7 #define XT_TABLE_MAXNAMELEN 32 6 8 ··· 10 8 { 11 9 union { 12 10 struct { 13 - u_int16_t match_size; 11 + __u16 match_size; 14 12 15 13 /* Used by userspace */ 16 14 char name[XT_FUNCTION_MAXNAMELEN-1]; 17 15 18 - u_int8_t revision; 16 + __u8 revision; 19 17 } user; 20 18 struct { 21 - u_int16_t match_size; 19 + __u16 match_size; 22 20 23 21 /* Used inside the kernel */ 24 22 struct xt_match *match; 25 23 } kernel; 26 24 27 25 /* Total length */ 28 - u_int16_t match_size; 26 + __u16 match_size; 29 27 } u; 30 28 31 29 unsigned char data[0]; ··· 35 33 { 36 34 union { 37 35 struct { 38 - u_int16_t target_size; 36 + __u16 target_size; 39 37 40 38 /* Used by userspace */ 41 39 char name[XT_FUNCTION_MAXNAMELEN-1]; 42 40 43 - u_int8_t revision; 41 + __u8 revision; 44 42 } user; 45 43 struct { 46 - u_int16_t target_size; 44 + __u16 target_size; 47 45 48 46 /* Used inside the kernel */ 49 47 struct xt_target *target; 50 48 } kernel; 51 49 52 50 /* Total length */ 53 - u_int16_t target_size; 51 + __u16 target_size; 54 52 } u; 55 53 56 54 unsigned char data[0]; ··· 76 74 { 77 75 char name[XT_FUNCTION_MAXNAMELEN-1]; 78 76 79 - u_int8_t revision; 77 + __u8 revision; 80 78 }; 81 79 82 80 /* CONTINUE verdict for targets */ ··· 92 90 */ 93 91 struct _xt_align 94 92 { 95 - u_int8_t u8; 96 - u_int16_t u16; 97 - u_int32_t u32; 98 - u_int64_t u64; 93 + __u8 u8; 94 + __u16 u16; 95 + __u32 u32; 96 + __u64 u64; 99 97 }; 100 98 101 99 #define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) \ ··· 111 109 112 110 struct xt_counters 113 111 { 114 - u_int64_t pcnt, bcnt; /* Packet and byte counters */ 112 + __u64 pcnt, bcnt; /* Packet and byte counters */ 115 113 }; 116 114 117 115 /* The argument to IPT_SO_ADD_COUNTERS. */
+3 -1
include/linux/netfilter/xt_CLASSIFY.h
··· 1 1 #ifndef _XT_CLASSIFY_H 2 2 #define _XT_CLASSIFY_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_classify_target_info { 5 - u_int32_t priority; 7 + __u32 priority; 6 8 }; 7 9 8 10 #endif /*_XT_CLASSIFY_H */
+5 -3
include/linux/netfilter/xt_CONNMARK.h
··· 1 1 #ifndef _XT_CONNMARK_H_target 2 2 #define _XT_CONNMARK_H_target 3 3 4 + #include <linux/types.h> 5 + 4 6 /* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> 5 7 * by Henrik Nordstrom <hno@marasystems.com> 6 8 * ··· 21 19 struct xt_connmark_target_info { 22 20 unsigned long mark; 23 21 unsigned long mask; 24 - u_int8_t mode; 22 + __u8 mode; 25 23 }; 26 24 27 25 struct xt_connmark_tginfo1 { 28 - u_int32_t ctmark, ctmask, nfmask; 29 - u_int8_t mode; 26 + __u32 ctmark, ctmask, nfmask; 27 + __u8 mode; 30 28 }; 31 29 32 30 #endif /*_XT_CONNMARK_H_target*/
+3 -1
include/linux/netfilter/xt_CONNSECMARK.h
··· 1 1 #ifndef _XT_CONNSECMARK_H_target 2 2 #define _XT_CONNSECMARK_H_target 3 3 4 + #include <linux/types.h> 5 + 4 6 enum { 5 7 CONNSECMARK_SAVE = 1, 6 8 CONNSECMARK_RESTORE, 7 9 }; 8 10 9 11 struct xt_connsecmark_target_info { 10 - u_int8_t mode; 12 + __u8 mode; 11 13 }; 12 14 13 15 #endif /*_XT_CONNSECMARK_H_target */
+4 -3
include/linux/netfilter/xt_DSCP.h
··· 11 11 #ifndef _XT_DSCP_TARGET_H 12 12 #define _XT_DSCP_TARGET_H 13 13 #include <linux/netfilter/xt_dscp.h> 14 + #include <linux/types.h> 14 15 15 16 /* target info */ 16 17 struct xt_DSCP_info { 17 - u_int8_t dscp; 18 + __u8 dscp; 18 19 }; 19 20 20 21 struct xt_tos_target_info { 21 - u_int8_t tos_value; 22 - u_int8_t tos_mask; 22 + __u8 tos_value; 23 + __u8 tos_mask; 23 24 }; 24 25 25 26 #endif /* _XT_DSCP_TARGET_H */
+4 -2
include/linux/netfilter/xt_MARK.h
··· 1 1 #ifndef _XT_MARK_H_target 2 2 #define _XT_MARK_H_target 3 3 4 + #include <linux/types.h> 5 + 4 6 /* Version 0 */ 5 7 struct xt_mark_target_info { 6 8 unsigned long mark; ··· 17 15 18 16 struct xt_mark_target_info_v1 { 19 17 unsigned long mark; 20 - u_int8_t mode; 18 + __u8 mode; 21 19 }; 22 20 23 21 struct xt_mark_tginfo2 { 24 - u_int32_t mark, mask; 22 + __u32 mark, mask; 25 23 }; 26 24 27 25 #endif /*_XT_MARK_H_target */
+7 -5
include/linux/netfilter/xt_NFLOG.h
··· 1 1 #ifndef _XT_NFLOG_TARGET 2 2 #define _XT_NFLOG_TARGET 3 3 4 + #include <linux/types.h> 5 + 4 6 #define XT_NFLOG_DEFAULT_GROUP 0x1 5 7 #define XT_NFLOG_DEFAULT_THRESHOLD 0 6 8 7 9 #define XT_NFLOG_MASK 0x0 8 10 9 11 struct xt_nflog_info { 10 - u_int32_t len; 11 - u_int16_t group; 12 - u_int16_t threshold; 13 - u_int16_t flags; 14 - u_int16_t pad; 12 + __u32 len; 13 + __u16 group; 14 + __u16 threshold; 15 + __u16 flags; 16 + __u16 pad; 15 17 char prefix[64]; 16 18 }; 17 19
+3 -1
include/linux/netfilter/xt_NFQUEUE.h
··· 8 8 #ifndef _XT_NFQ_TARGET_H 9 9 #define _XT_NFQ_TARGET_H 10 10 11 + #include <linux/types.h> 12 + 11 13 /* target info */ 12 14 struct xt_NFQ_info { 13 - u_int16_t queuenum; 15 + __u16 queuenum; 14 16 }; 15 17 16 18 #endif /* _XT_NFQ_TARGET_H */
+4 -2
include/linux/netfilter/xt_RATEEST.h
··· 1 1 #ifndef _XT_RATEEST_TARGET_H 2 2 #define _XT_RATEEST_TARGET_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_rateest_target_info { 5 7 char name[IFNAMSIZ]; 6 - int8_t interval; 7 - u_int8_t ewma_log; 8 + __s8 interval; 9 + __u8 ewma_log; 8 10 9 11 /* Used internally by the kernel */ 10 12 struct xt_rateest *est __attribute__((aligned(8)));
+4 -2
include/linux/netfilter/xt_SECMARK.h
··· 1 1 #ifndef _XT_SECMARK_H_target 2 2 #define _XT_SECMARK_H_target 3 3 4 + #include <linux/types.h> 5 + 4 6 /* 5 7 * This is intended for use by various security subsystems (but not 6 8 * at the same time). ··· 14 12 #define SECMARK_SELCTX_MAX 256 15 13 16 14 struct xt_secmark_target_selinux_info { 17 - u_int32_t selsid; 15 + __u32 selsid; 18 16 char selctx[SECMARK_SELCTX_MAX]; 19 17 }; 20 18 21 19 struct xt_secmark_target_info { 22 - u_int8_t mode; 20 + __u8 mode; 23 21 union { 24 22 struct xt_secmark_target_selinux_info sel; 25 23 } u;
+3 -1
include/linux/netfilter/xt_TCPMSS.h
··· 1 1 #ifndef _XT_TCPMSS_H 2 2 #define _XT_TCPMSS_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_tcpmss_info { 5 - u_int16_t mss; 7 + __u16 mss; 6 8 }; 7 9 8 10 #define XT_TCPMSS_CLAMP_PMTU 0xffff
+4 -2
include/linux/netfilter/xt_connbytes.h
··· 1 1 #ifndef _XT_CONNBYTES_H 2 2 #define _XT_CONNBYTES_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum xt_connbytes_what { 5 7 XT_CONNBYTES_PKTS, 6 8 XT_CONNBYTES_BYTES, ··· 21 19 aligned_u64 from; /* count to be matched */ 22 20 aligned_u64 to; /* count to be matched */ 23 21 } count; 24 - u_int8_t what; /* ipt_connbytes_what */ 25 - u_int8_t direction; /* ipt_connbytes_direction */ 22 + __u8 what; /* ipt_connbytes_what */ 23 + __u8 direction; /* ipt_connbytes_direction */ 26 24 }; 27 25 #endif
+5 -3
include/linux/netfilter/xt_connmark.h
··· 1 1 #ifndef _XT_CONNMARK_H 2 2 #define _XT_CONNMARK_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> 5 7 * by Henrik Nordstrom <hno@marasystems.com> 6 8 * ··· 14 12 15 13 struct xt_connmark_info { 16 14 unsigned long mark, mask; 17 - u_int8_t invert; 15 + __u8 invert; 18 16 }; 19 17 20 18 struct xt_connmark_mtinfo1 { 21 - u_int32_t mark, mask; 22 - u_int8_t invert; 19 + __u32 mark, mask; 20 + __u8 invert; 23 21 }; 24 22 25 23 #endif /*_XT_CONNMARK_H*/
+6 -6
include/linux/netfilter/xt_conntrack.h
··· 63 63 unsigned long expires_min, expires_max; 64 64 65 65 /* Flags word */ 66 - u_int8_t flags; 66 + __u8 flags; 67 67 /* Inverse flags */ 68 - u_int8_t invflags; 68 + __u8 invflags; 69 69 }; 70 70 71 71 struct xt_conntrack_mtinfo1 { ··· 73 73 union nf_inet_addr origdst_addr, origdst_mask; 74 74 union nf_inet_addr replsrc_addr, replsrc_mask; 75 75 union nf_inet_addr repldst_addr, repldst_mask; 76 - u_int32_t expires_min, expires_max; 77 - u_int16_t l4proto; 76 + __u32 expires_min, expires_max; 77 + __u16 l4proto; 78 78 __be16 origsrc_port, origdst_port; 79 79 __be16 replsrc_port, repldst_port; 80 - u_int16_t match_flags, invert_flags; 81 - u_int8_t state_mask, status_mask; 80 + __u16 match_flags, invert_flags; 81 + __u8 state_mask, status_mask; 82 82 }; 83 83 84 84 #endif /*_XT_CONNTRACK_H*/
+8 -6
include/linux/netfilter/xt_dccp.h
··· 1 1 #ifndef _XT_DCCP_H_ 2 2 #define _XT_DCCP_H_ 3 3 4 + #include <linux/types.h> 5 + 4 6 #define XT_DCCP_SRC_PORTS 0x01 5 7 #define XT_DCCP_DEST_PORTS 0x02 6 8 #define XT_DCCP_TYPE 0x04 ··· 11 9 #define XT_DCCP_VALID_FLAGS 0x0f 12 10 13 11 struct xt_dccp_info { 14 - u_int16_t dpts[2]; /* Min, Max */ 15 - u_int16_t spts[2]; /* Min, Max */ 12 + __u16 dpts[2]; /* Min, Max */ 13 + __u16 spts[2]; /* Min, Max */ 16 14 17 - u_int16_t flags; 18 - u_int16_t invflags; 15 + __u16 flags; 16 + __u16 invflags; 19 17 20 - u_int16_t typemask; 21 - u_int8_t option; 18 + __u16 typemask; 19 + __u8 option; 22 20 }; 23 21 24 22 #endif /* _XT_DCCP_H_ */
+7 -5
include/linux/netfilter/xt_dscp.h
··· 10 10 #ifndef _XT_DSCP_H 11 11 #define _XT_DSCP_H 12 12 13 + #include <linux/types.h> 14 + 13 15 #define XT_DSCP_MASK 0xfc /* 11111100 */ 14 16 #define XT_DSCP_SHIFT 2 15 17 #define XT_DSCP_MAX 0x3f /* 00111111 */ 16 18 17 19 /* match info */ 18 20 struct xt_dscp_info { 19 - u_int8_t dscp; 20 - u_int8_t invert; 21 + __u8 dscp; 22 + __u8 invert; 21 23 }; 22 24 23 25 struct xt_tos_match_info { 24 - u_int8_t tos_mask; 25 - u_int8_t tos_value; 26 - u_int8_t invert; 26 + __u8 tos_mask; 27 + __u8 tos_value; 28 + __u8 invert; 27 29 }; 28 30 29 31 #endif /* _XT_DSCP_H */
+4 -2
include/linux/netfilter/xt_esp.h
··· 1 1 #ifndef _XT_ESP_H 2 2 #define _XT_ESP_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_esp 5 7 { 6 - u_int32_t spis[2]; /* Security Parameter Index */ 7 - u_int8_t invflags; /* Inverse flags */ 8 + __u32 spis[2]; /* Security Parameter Index */ 9 + __u8 invflags; /* Inverse flags */ 8 10 }; 9 11 10 12 /* Values for "invflags" field in struct xt_esp. */
+17 -15
include/linux/netfilter/xt_hashlimit.h
··· 1 1 #ifndef _XT_HASHLIMIT_H 2 2 #define _XT_HASHLIMIT_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* timings are in milliseconds. */ 5 7 #define XT_HASHLIMIT_SCALE 10000 6 8 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 ··· 20 18 }; 21 19 22 20 struct hashlimit_cfg { 23 - u_int32_t mode; /* bitmask of XT_HASHLIMIT_HASH_* */ 24 - u_int32_t avg; /* Average secs between packets * scale */ 25 - u_int32_t burst; /* Period multiplier for upper limit. */ 21 + __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ 22 + __u32 avg; /* Average secs between packets * scale */ 23 + __u32 burst; /* Period multiplier for upper limit. */ 26 24 27 25 /* user specified */ 28 - u_int32_t size; /* how many buckets */ 29 - u_int32_t max; /* max number of entries */ 30 - u_int32_t gc_interval; /* gc interval */ 31 - u_int32_t expire; /* when do entries expire? */ 26 + __u32 size; /* how many buckets */ 27 + __u32 max; /* max number of entries */ 28 + __u32 gc_interval; /* gc interval */ 29 + __u32 expire; /* when do entries expire? */ 32 30 }; 33 31 34 32 struct xt_hashlimit_info { ··· 44 42 }; 45 43 46 44 struct hashlimit_cfg1 { 47 - u_int32_t mode; /* bitmask of XT_HASHLIMIT_HASH_* */ 48 - u_int32_t avg; /* Average secs between packets * scale */ 49 - u_int32_t burst; /* Period multiplier for upper limit. */ 45 + __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ 46 + __u32 avg; /* Average secs between packets * scale */ 47 + __u32 burst; /* Period multiplier for upper limit. */ 50 48 51 49 /* user specified */ 52 - u_int32_t size; /* how many buckets */ 53 - u_int32_t max; /* max number of entries */ 54 - u_int32_t gc_interval; /* gc interval */ 55 - u_int32_t expire; /* when do entries expire? */ 50 + __u32 size; /* how many buckets */ 51 + __u32 max; /* max number of entries */ 52 + __u32 gc_interval; /* gc interval */ 53 + __u32 expire; /* when do entries expire? */ 56 54 57 - u_int8_t srcmask, dstmask; 55 + __u8 srcmask, dstmask; 58 56 }; 59 57 60 58 struct xt_hashlimit_mtinfo1 {
+3 -1
include/linux/netfilter/xt_iprange.h
··· 1 1 #ifndef _LINUX_NETFILTER_XT_IPRANGE_H 2 2 #define _LINUX_NETFILTER_XT_IPRANGE_H 1 3 3 4 + #include <linux/types.h> 5 + 4 6 enum { 5 7 IPRANGE_SRC = 1 << 0, /* match source IP address */ 6 8 IPRANGE_DST = 1 << 1, /* match destination IP address */ ··· 13 11 struct xt_iprange_mtinfo { 14 12 union nf_inet_addr src_min, src_max; 15 13 union nf_inet_addr dst_min, dst_max; 16 - u_int8_t flags; 14 + __u8 flags; 17 15 }; 18 16 19 17 #endif /* _LINUX_NETFILTER_XT_IPRANGE_H */
+4 -2
include/linux/netfilter/xt_length.h
··· 1 1 #ifndef _XT_LENGTH_H 2 2 #define _XT_LENGTH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_length_info { 5 - u_int16_t min, max; 6 - u_int8_t invert; 7 + __u16 min, max; 8 + __u8 invert; 7 9 }; 8 10 9 11 #endif /*_XT_LENGTH_H*/
+6 -4
include/linux/netfilter/xt_limit.h
··· 1 1 #ifndef _XT_RATE_H 2 2 #define _XT_RATE_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* timings are in milliseconds. */ 5 7 #define XT_LIMIT_SCALE 10000 6 8 ··· 11 9 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 12 10 seconds, or one every 59 hours. */ 13 11 struct xt_rateinfo { 14 - u_int32_t avg; /* Average secs between packets * scale */ 15 - u_int32_t burst; /* Period multiplier for upper limit. */ 12 + __u32 avg; /* Average secs between packets * scale */ 13 + __u32 burst; /* Period multiplier for upper limit. */ 16 14 17 15 /* Used internally by the kernel */ 18 16 unsigned long prev; /* moved to xt_limit_priv */ 19 - u_int32_t credit; /* moved to xt_limit_priv */ 20 - u_int32_t credit_cap, cost; 17 + __u32 credit; /* moved to xt_limit_priv */ 18 + __u32 credit_cap, cost; 21 19 22 20 struct xt_limit_priv *master; 23 21 };
+5 -3
include/linux/netfilter/xt_mark.h
··· 1 1 #ifndef _XT_MARK_H 2 2 #define _XT_MARK_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_mark_info { 5 7 unsigned long mark, mask; 6 - u_int8_t invert; 8 + __u8 invert; 7 9 }; 8 10 9 11 struct xt_mark_mtinfo1 { 10 - u_int32_t mark, mask; 11 - u_int8_t invert; 12 + __u32 mark, mask; 13 + __u8 invert; 12 14 }; 13 15 14 16 #endif /*_XT_MARK_H*/
+10 -8
include/linux/netfilter/xt_multiport.h
··· 1 1 #ifndef _XT_MULTIPORT_H 2 2 #define _XT_MULTIPORT_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum xt_multiport_flags 5 7 { 6 8 XT_MULTIPORT_SOURCE, ··· 15 13 /* Must fit inside union xt_matchinfo: 16 bytes */ 16 14 struct xt_multiport 17 15 { 18 - u_int8_t flags; /* Type of comparison */ 19 - u_int8_t count; /* Number of ports */ 20 - u_int16_t ports[XT_MULTI_PORTS]; /* Ports */ 16 + __u8 flags; /* Type of comparison */ 17 + __u8 count; /* Number of ports */ 18 + __u16 ports[XT_MULTI_PORTS]; /* Ports */ 21 19 }; 22 20 23 21 struct xt_multiport_v1 24 22 { 25 - u_int8_t flags; /* Type of comparison */ 26 - u_int8_t count; /* Number of ports */ 27 - u_int16_t ports[XT_MULTI_PORTS]; /* Ports */ 28 - u_int8_t pflags[XT_MULTI_PORTS]; /* Port flags */ 29 - u_int8_t invert; /* Invert flag */ 23 + __u8 flags; /* Type of comparison */ 24 + __u8 count; /* Number of ports */ 25 + __u16 ports[XT_MULTI_PORTS]; /* Ports */ 26 + __u8 pflags[XT_MULTI_PORTS]; /* Port flags */ 27 + __u8 invert; /* Invert flag */ 30 28 }; 31 29 32 30 #endif /*_XT_MULTIPORT_H*/
+5 -3
include/linux/netfilter/xt_owner.h
··· 1 1 #ifndef _XT_OWNER_MATCH_H 2 2 #define _XT_OWNER_MATCH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum { 5 7 XT_OWNER_UID = 1 << 0, 6 8 XT_OWNER_GID = 1 << 1, ··· 10 8 }; 11 9 12 10 struct xt_owner_match_info { 13 - u_int32_t uid_min, uid_max; 14 - u_int32_t gid_min, gid_max; 15 - u_int8_t match, invert; 11 + __u32 uid_min, uid_max; 12 + __u32 gid_min, gid_max; 13 + __u8 match, invert; 16 14 }; 17 15 18 16 #endif /* _XT_OWNER_MATCH_H */
+4 -2
include/linux/netfilter/xt_physdev.h
··· 1 1 #ifndef _XT_PHYSDEV_H 2 2 #define _XT_PHYSDEV_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #ifdef __KERNEL__ 5 7 #include <linux/if.h> 6 8 #endif ··· 19 17 char in_mask[IFNAMSIZ]; 20 18 char physoutdev[IFNAMSIZ]; 21 19 char out_mask[IFNAMSIZ]; 22 - u_int8_t invert; 23 - u_int8_t bitmask; 20 + __u8 invert; 21 + __u8 bitmask; 24 22 }; 25 23 26 24 #endif /*_XT_PHYSDEV_H*/
+8 -6
include/linux/netfilter/xt_policy.h
··· 1 1 #ifndef _XT_POLICY_H 2 2 #define _XT_POLICY_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define XT_POLICY_MAX_ELEM 4 5 7 6 8 enum xt_policy_flags ··· 21 19 22 20 struct xt_policy_spec 23 21 { 24 - u_int8_t saddr:1, 22 + __u8 saddr:1, 25 23 daddr:1, 26 24 proto:1, 27 25 mode:1, ··· 57 55 #endif 58 56 }; 59 57 __be32 spi; 60 - u_int32_t reqid; 61 - u_int8_t proto; 62 - u_int8_t mode; 58 + __u32 reqid; 59 + __u8 proto; 60 + __u8 mode; 63 61 64 62 struct xt_policy_spec match; 65 63 struct xt_policy_spec invert; ··· 68 66 struct xt_policy_info 69 67 { 70 68 struct xt_policy_elem pol[XT_POLICY_MAX_ELEM]; 71 - u_int16_t flags; 72 - u_int16_t len; 69 + __u16 flags; 70 + __u16 len; 73 71 }; 74 72 75 73 #endif /* _XT_POLICY_H */
+8 -6
include/linux/netfilter/xt_rateest.h
··· 1 1 #ifndef _XT_RATEEST_MATCH_H 2 2 #define _XT_RATEEST_MATCH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum xt_rateest_match_flags { 5 7 XT_RATEEST_MATCH_INVERT = 1<<0, 6 8 XT_RATEEST_MATCH_ABS = 1<<1, ··· 22 20 struct xt_rateest_match_info { 23 21 char name1[IFNAMSIZ]; 24 22 char name2[IFNAMSIZ]; 25 - u_int16_t flags; 26 - u_int16_t mode; 27 - u_int32_t bps1; 28 - u_int32_t pps1; 29 - u_int32_t bps2; 30 - u_int32_t pps2; 23 + __u16 flags; 24 + __u16 mode; 25 + __u32 bps1; 26 + __u32 pps1; 27 + __u32 bps2; 28 + __u32 pps2; 31 29 32 30 /* Used internally by the kernel */ 33 31 struct xt_rateest *est1 __attribute__((aligned(8)));
+5 -3
include/linux/netfilter/xt_realm.h
··· 1 1 #ifndef _XT_REALM_H 2 2 #define _XT_REALM_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_realm_info { 5 - u_int32_t id; 6 - u_int32_t mask; 7 - u_int8_t invert; 7 + __u32 id; 8 + __u32 mask; 9 + __u8 invert; 8 10 }; 9 11 10 12 #endif /* _XT_REALM_H */
+7 -5
include/linux/netfilter/xt_recent.h
··· 1 1 #ifndef _LINUX_NETFILTER_XT_RECENT_H 2 2 #define _LINUX_NETFILTER_XT_RECENT_H 1 3 3 4 + #include <linux/types.h> 5 + 4 6 enum { 5 7 XT_RECENT_CHECK = 1 << 0, 6 8 XT_RECENT_SET = 1 << 1, ··· 17 15 }; 18 16 19 17 struct xt_recent_mtinfo { 20 - u_int32_t seconds; 21 - u_int32_t hit_count; 22 - u_int8_t check_set; 23 - u_int8_t invert; 18 + __u32 seconds; 19 + __u32 hit_count; 20 + __u8 check_set; 21 + __u8 invert; 24 22 char name[XT_RECENT_NAME_LEN]; 25 - u_int8_t side; 23 + __u8 side; 26 24 }; 27 25 28 26 #endif /* _LINUX_NETFILTER_XT_RECENT_H */
+19 -17
include/linux/netfilter/xt_sctp.h
··· 1 1 #ifndef _XT_SCTP_H_ 2 2 #define _XT_SCTP_H_ 3 3 4 + #include <linux/types.h> 5 + 4 6 #define XT_SCTP_SRC_PORTS 0x01 5 7 #define XT_SCTP_DEST_PORTS 0x02 6 8 #define XT_SCTP_CHUNK_TYPES 0x04 ··· 10 8 #define XT_SCTP_VALID_FLAGS 0x07 11 9 12 10 struct xt_sctp_flag_info { 13 - u_int8_t chunktype; 14 - u_int8_t flag; 15 - u_int8_t flag_mask; 11 + __u8 chunktype; 12 + __u8 flag; 13 + __u8 flag_mask; 16 14 }; 17 15 18 16 #define XT_NUM_SCTP_FLAGS 4 19 17 20 18 struct xt_sctp_info { 21 - u_int16_t dpts[2]; /* Min, Max */ 22 - u_int16_t spts[2]; /* Min, Max */ 19 + __u16 dpts[2]; /* Min, Max */ 20 + __u16 spts[2]; /* Min, Max */ 23 21 24 - u_int32_t chunkmap[256 / sizeof (u_int32_t)]; /* Bit mask of chunks to be matched according to RFC 2960 */ 22 + __u32 chunkmap[256 / sizeof (__u32)]; /* Bit mask of chunks to be matched according to RFC 2960 */ 25 23 26 24 #define SCTP_CHUNK_MATCH_ANY 0x01 /* Match if any of the chunk types are present */ 27 25 #define SCTP_CHUNK_MATCH_ALL 0x02 /* Match if all of the chunk types are present */ 28 26 #define SCTP_CHUNK_MATCH_ONLY 0x04 /* Match if these are the only chunk types present */ 29 27 30 - u_int32_t chunk_match_type; 28 + __u32 chunk_match_type; 31 29 struct xt_sctp_flag_info flag_info[XT_NUM_SCTP_FLAGS]; 32 30 int flag_count; 33 31 34 - u_int32_t flags; 35 - u_int32_t invflags; 32 + __u32 flags; 33 + __u32 invflags; 36 34 }; 37 35 38 36 #define bytes(type) (sizeof(type) * 8) 39 37 40 38 #define SCTP_CHUNKMAP_SET(chunkmap, type) \ 41 39 do { \ 42 - (chunkmap)[type / bytes(u_int32_t)] |= \ 43 - 1 << (type % bytes(u_int32_t)); \ 40 + (chunkmap)[type / bytes(__u32)] |= \ 41 + 1 << (type % bytes(__u32)); \ 44 42 } while (0) 45 43 46 44 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) \ 47 45 do { \ 48 - (chunkmap)[type / bytes(u_int32_t)] &= \ 49 - ~(1 << (type % bytes(u_int32_t))); \ 46 + (chunkmap)[type / bytes(__u32)] &= \ 47 + ~(1 << (type % bytes(__u32))); \ 50 48 } while (0) 51 49 52 50 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) \ 53 51 ({ \ 54 - ((chunkmap)[type / bytes (u_int32_t)] & \ 55 - (1 << (type % bytes (u_int32_t)))) ? 1: 0; \ 52 + ((chunkmap)[type / bytes (__u32)] & \ 53 + (1 << (type % bytes (__u32)))) ? 1: 0; \ 56 54 }) 57 55 58 56 #define SCTP_CHUNKMAP_RESET(chunkmap) \ ··· 67 65 #define SCTP_CHUNKMAP_IS_CLEAR(chunkmap) \ 68 66 __sctp_chunkmap_is_clear((chunkmap), ARRAY_SIZE(chunkmap)) 69 67 static inline bool 70 - __sctp_chunkmap_is_clear(const u_int32_t *chunkmap, unsigned int n) 68 + __sctp_chunkmap_is_clear(const __u32 *chunkmap, unsigned int n) 71 69 { 72 70 unsigned int i; 73 71 for (i = 0; i < n; ++i) ··· 79 77 #define SCTP_CHUNKMAP_IS_ALL_SET(chunkmap) \ 80 78 __sctp_chunkmap_is_all_set((chunkmap), ARRAY_SIZE(chunkmap)) 81 79 static inline bool 82 - __sctp_chunkmap_is_all_set(const u_int32_t *chunkmap, unsigned int n) 80 + __sctp_chunkmap_is_all_set(const __u32 *chunkmap, unsigned int n) 83 81 { 84 82 unsigned int i; 85 83 for (i = 0; i < n; ++i)
+8 -6
include/linux/netfilter/xt_statistic.h
··· 1 1 #ifndef _XT_STATISTIC_H 2 2 #define _XT_STATISTIC_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum xt_statistic_mode { 5 7 XT_STATISTIC_MODE_RANDOM, 6 8 XT_STATISTIC_MODE_NTH, ··· 18 16 struct xt_statistic_priv; 19 17 20 18 struct xt_statistic_info { 21 - u_int16_t mode; 22 - u_int16_t flags; 19 + __u16 mode; 20 + __u16 flags; 23 21 union { 24 22 struct { 25 - u_int32_t probability; 23 + __u32 probability; 26 24 } random; 27 25 struct { 28 - u_int32_t every; 29 - u_int32_t packet; 30 - u_int32_t count; /* unused */ 26 + __u32 every; 27 + __u32 packet; 28 + __u32 count; /* unused */ 31 29 } nth; 32 30 } u; 33 31 struct xt_statistic_priv *master __attribute__((aligned(8)));
+7 -5
include/linux/netfilter/xt_string.h
··· 1 1 #ifndef _XT_STRING_H 2 2 #define _XT_STRING_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define XT_STRING_MAX_PATTERN_SIZE 128 5 7 #define XT_STRING_MAX_ALGO_NAME_SIZE 16 6 8 ··· 13 11 14 12 struct xt_string_info 15 13 { 16 - u_int16_t from_offset; 17 - u_int16_t to_offset; 14 + __u16 from_offset; 15 + __u16 to_offset; 18 16 char algo[XT_STRING_MAX_ALGO_NAME_SIZE]; 19 17 char pattern[XT_STRING_MAX_PATTERN_SIZE]; 20 - u_int8_t patlen; 18 + __u8 patlen; 21 19 union { 22 20 struct { 23 - u_int8_t invert; 21 + __u8 invert; 24 22 } v0; 25 23 26 24 struct { 27 - u_int8_t flags; 25 + __u8 flags; 28 26 } v1; 29 27 } u; 30 28
+4 -2
include/linux/netfilter/xt_tcpmss.h
··· 1 1 #ifndef _XT_TCPMSS_MATCH_H 2 2 #define _XT_TCPMSS_MATCH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_tcpmss_match_info { 5 - u_int16_t mss_min, mss_max; 6 - u_int8_t invert; 7 + __u16 mss_min, mss_max; 8 + __u8 invert; 7 9 }; 8 10 9 11 #endif /*_XT_TCPMSS_MATCH_H*/
+11 -9
include/linux/netfilter/xt_tcpudp.h
··· 1 1 #ifndef _XT_TCPUDP_H 2 2 #define _XT_TCPUDP_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* TCP matching stuff */ 5 7 struct xt_tcp 6 8 { 7 - u_int16_t spts[2]; /* Source port range. */ 8 - u_int16_t dpts[2]; /* Destination port range. */ 9 - u_int8_t option; /* TCP Option iff non-zero*/ 10 - u_int8_t flg_mask; /* TCP flags mask byte */ 11 - u_int8_t flg_cmp; /* TCP flags compare byte */ 12 - u_int8_t invflags; /* Inverse flags */ 9 + __u16 spts[2]; /* Source port range. */ 10 + __u16 dpts[2]; /* Destination port range. */ 11 + __u8 option; /* TCP Option iff non-zero*/ 12 + __u8 flg_mask; /* TCP flags mask byte */ 13 + __u8 flg_cmp; /* TCP flags compare byte */ 14 + __u8 invflags; /* Inverse flags */ 13 15 }; 14 16 15 17 /* Values for "inv" field in struct ipt_tcp. */ ··· 24 22 /* UDP matching stuff */ 25 23 struct xt_udp 26 24 { 27 - u_int16_t spts[2]; /* Source port range. */ 28 - u_int16_t dpts[2]; /* Destination port range. */ 29 - u_int8_t invflags; /* Inverse flags */ 25 + __u16 spts[2]; /* Source port range. */ 26 + __u16 dpts[2]; /* Destination port range. */ 27 + __u8 invflags; /* Inverse flags */ 30 28 }; 31 29 32 30 /* Values for "invflags" field in struct ipt_udp. */
+4 -4
include/linux/netfilter_ipv4/ipt_owner.h
··· 9 9 #define IPT_OWNER_COMM 0x10 10 10 11 11 struct ipt_owner_info { 12 - uid_t uid; 13 - gid_t gid; 14 - pid_t pid; 15 - pid_t sid; 12 + __kernel_uid32_t uid; 13 + __kernel_gid32_t gid; 14 + __kernel_pid_t pid; 15 + __kernel_pid_t sid; 16 16 char comm[16]; 17 17 u_int8_t match, invert; /* flags */ 18 18 };
+4 -4
include/linux/netfilter_ipv6/ip6t_owner.h
··· 8 8 #define IP6T_OWNER_SID 0x08 9 9 10 10 struct ip6t_owner_info { 11 - uid_t uid; 12 - gid_t gid; 13 - pid_t pid; 14 - pid_t sid; 11 + __kernel_uid32_t uid; 12 + __kernel_gid32_t gid; 13 + __kernel_pid_t pid; 14 + __kernel_pid_t sid; 15 15 u_int8_t match, invert; /* flags */ 16 16 }; 17 17
+2
include/linux/nubus.h
··· 237 237 int mask; 238 238 }; 239 239 240 + #ifdef __KERNEL__ 240 241 struct nubus_board { 241 242 struct nubus_board* next; 242 243 struct nubus_dev* first_dev; ··· 352 351 void nubus_get_rsrc_str(void* dest, 353 352 const struct nubus_dirent *dirent, 354 353 int maxlen); 354 + #endif /* __KERNEL__ */ 355 355 356 356 /* We'd like to get rid of this eventually. Only daynaport.c uses it now. */ 357 357 static inline void *nubus_slot_addr(int slot)
+121 -121
include/linux/pfkeyv2.h
··· 12 12 #define PFKEYV2_REVISION 199806L 13 13 14 14 struct sadb_msg { 15 - uint8_t sadb_msg_version; 16 - uint8_t sadb_msg_type; 17 - uint8_t sadb_msg_errno; 18 - uint8_t sadb_msg_satype; 19 - uint16_t sadb_msg_len; 20 - uint16_t sadb_msg_reserved; 21 - uint32_t sadb_msg_seq; 22 - uint32_t sadb_msg_pid; 15 + __u8 sadb_msg_version; 16 + __u8 sadb_msg_type; 17 + __u8 sadb_msg_errno; 18 + __u8 sadb_msg_satype; 19 + __u16 sadb_msg_len; 20 + __u16 sadb_msg_reserved; 21 + __u32 sadb_msg_seq; 22 + __u32 sadb_msg_pid; 23 23 } __attribute__((packed)); 24 24 /* sizeof(struct sadb_msg) == 16 */ 25 25 26 26 struct sadb_ext { 27 - uint16_t sadb_ext_len; 28 - uint16_t sadb_ext_type; 27 + __u16 sadb_ext_len; 28 + __u16 sadb_ext_type; 29 29 } __attribute__((packed)); 30 30 /* sizeof(struct sadb_ext) == 4 */ 31 31 32 32 struct sadb_sa { 33 - uint16_t sadb_sa_len; 34 - uint16_t sadb_sa_exttype; 33 + __u16 sadb_sa_len; 34 + __u16 sadb_sa_exttype; 35 35 __be32 sadb_sa_spi; 36 - uint8_t sadb_sa_replay; 37 - uint8_t sadb_sa_state; 38 - uint8_t sadb_sa_auth; 39 - uint8_t sadb_sa_encrypt; 40 - uint32_t sadb_sa_flags; 36 + __u8 sadb_sa_replay; 37 + __u8 sadb_sa_state; 38 + __u8 sadb_sa_auth; 39 + __u8 sadb_sa_encrypt; 40 + __u32 sadb_sa_flags; 41 41 } __attribute__((packed)); 42 42 /* sizeof(struct sadb_sa) == 16 */ 43 43 44 44 struct sadb_lifetime { 45 - uint16_t sadb_lifetime_len; 46 - uint16_t sadb_lifetime_exttype; 47 - uint32_t sadb_lifetime_allocations; 48 - uint64_t sadb_lifetime_bytes; 49 - uint64_t sadb_lifetime_addtime; 50 - uint64_t sadb_lifetime_usetime; 45 + __u16 sadb_lifetime_len; 46 + __u16 sadb_lifetime_exttype; 47 + __u32 sadb_lifetime_allocations; 48 + __u64 sadb_lifetime_bytes; 49 + __u64 sadb_lifetime_addtime; 50 + __u64 sadb_lifetime_usetime; 51 51 } __attribute__((packed)); 52 52 /* sizeof(struct sadb_lifetime) == 32 */ 53 53 54 54 struct sadb_address { 55 - uint16_t sadb_address_len; 56 - uint16_t sadb_address_exttype; 57 - uint8_t sadb_address_proto; 58 - uint8_t sadb_address_prefixlen; 59 - uint16_t sadb_address_reserved; 55 + __u16 sadb_address_len; 56 + __u16 sadb_address_exttype; 57 + __u8 sadb_address_proto; 58 + __u8 sadb_address_prefixlen; 59 + __u16 sadb_address_reserved; 60 60 } __attribute__((packed)); 61 61 /* sizeof(struct sadb_address) == 8 */ 62 62 63 63 struct sadb_key { 64 - uint16_t sadb_key_len; 65 - uint16_t sadb_key_exttype; 66 - uint16_t sadb_key_bits; 67 - uint16_t sadb_key_reserved; 64 + __u16 sadb_key_len; 65 + __u16 sadb_key_exttype; 66 + __u16 sadb_key_bits; 67 + __u16 sadb_key_reserved; 68 68 } __attribute__((packed)); 69 69 /* sizeof(struct sadb_key) == 8 */ 70 70 71 71 struct sadb_ident { 72 - uint16_t sadb_ident_len; 73 - uint16_t sadb_ident_exttype; 74 - uint16_t sadb_ident_type; 75 - uint16_t sadb_ident_reserved; 76 - uint64_t sadb_ident_id; 72 + __u16 sadb_ident_len; 73 + __u16 sadb_ident_exttype; 74 + __u16 sadb_ident_type; 75 + __u16 sadb_ident_reserved; 76 + __u64 sadb_ident_id; 77 77 } __attribute__((packed)); 78 78 /* sizeof(struct sadb_ident) == 16 */ 79 79 80 80 struct sadb_sens { 81 - uint16_t sadb_sens_len; 82 - uint16_t sadb_sens_exttype; 83 - uint32_t sadb_sens_dpd; 84 - uint8_t sadb_sens_sens_level; 85 - uint8_t sadb_sens_sens_len; 86 - uint8_t sadb_sens_integ_level; 87 - uint8_t sadb_sens_integ_len; 88 - uint32_t sadb_sens_reserved; 81 + __u16 sadb_sens_len; 82 + __u16 sadb_sens_exttype; 83 + __u32 sadb_sens_dpd; 84 + __u8 sadb_sens_sens_level; 85 + __u8 sadb_sens_sens_len; 86 + __u8 sadb_sens_integ_level; 87 + __u8 sadb_sens_integ_len; 88 + __u32 sadb_sens_reserved; 89 89 } __attribute__((packed)); 90 90 /* sizeof(struct sadb_sens) == 16 */ 91 91 92 92 /* followed by: 93 - uint64_t sadb_sens_bitmap[sens_len]; 94 - uint64_t sadb_integ_bitmap[integ_len]; */ 93 + __u64 sadb_sens_bitmap[sens_len]; 94 + __u64 sadb_integ_bitmap[integ_len]; */ 95 95 96 96 struct sadb_prop { 97 - uint16_t sadb_prop_len; 98 - uint16_t sadb_prop_exttype; 99 - uint8_t sadb_prop_replay; 100 - uint8_t sadb_prop_reserved[3]; 97 + __u16 sadb_prop_len; 98 + __u16 sadb_prop_exttype; 99 + __u8 sadb_prop_replay; 100 + __u8 sadb_prop_reserved[3]; 101 101 } __attribute__((packed)); 102 102 /* sizeof(struct sadb_prop) == 8 */ 103 103 104 104 /* followed by: 105 105 struct sadb_comb sadb_combs[(sadb_prop_len + 106 - sizeof(uint64_t) - sizeof(struct sadb_prop)) / 106 + sizeof(__u64) - sizeof(struct sadb_prop)) / 107 107 sizeof(struct sadb_comb)]; */ 108 108 109 109 struct sadb_comb { 110 - uint8_t sadb_comb_auth; 111 - uint8_t sadb_comb_encrypt; 112 - uint16_t sadb_comb_flags; 113 - uint16_t sadb_comb_auth_minbits; 114 - uint16_t sadb_comb_auth_maxbits; 115 - uint16_t sadb_comb_encrypt_minbits; 116 - uint16_t sadb_comb_encrypt_maxbits; 117 - uint32_t sadb_comb_reserved; 118 - uint32_t sadb_comb_soft_allocations; 119 - uint32_t sadb_comb_hard_allocations; 120 - uint64_t sadb_comb_soft_bytes; 121 - uint64_t sadb_comb_hard_bytes; 122 - uint64_t sadb_comb_soft_addtime; 123 - uint64_t sadb_comb_hard_addtime; 124 - uint64_t sadb_comb_soft_usetime; 125 - uint64_t sadb_comb_hard_usetime; 110 + __u8 sadb_comb_auth; 111 + __u8 sadb_comb_encrypt; 112 + __u16 sadb_comb_flags; 113 + __u16 sadb_comb_auth_minbits; 114 + __u16 sadb_comb_auth_maxbits; 115 + __u16 sadb_comb_encrypt_minbits; 116 + __u16 sadb_comb_encrypt_maxbits; 117 + __u32 sadb_comb_reserved; 118 + __u32 sadb_comb_soft_allocations; 119 + __u32 sadb_comb_hard_allocations; 120 + __u64 sadb_comb_soft_bytes; 121 + __u64 sadb_comb_hard_bytes; 122 + __u64 sadb_comb_soft_addtime; 123 + __u64 sadb_comb_hard_addtime; 124 + __u64 sadb_comb_soft_usetime; 125 + __u64 sadb_comb_hard_usetime; 126 126 } __attribute__((packed)); 127 127 /* sizeof(struct sadb_comb) == 72 */ 128 128 129 129 struct sadb_supported { 130 - uint16_t sadb_supported_len; 131 - uint16_t sadb_supported_exttype; 132 - uint32_t sadb_supported_reserved; 130 + __u16 sadb_supported_len; 131 + __u16 sadb_supported_exttype; 132 + __u32 sadb_supported_reserved; 133 133 } __attribute__((packed)); 134 134 /* sizeof(struct sadb_supported) == 8 */ 135 135 136 136 /* followed by: 137 137 struct sadb_alg sadb_algs[(sadb_supported_len + 138 - sizeof(uint64_t) - sizeof(struct sadb_supported)) / 138 + sizeof(__u64) - sizeof(struct sadb_supported)) / 139 139 sizeof(struct sadb_alg)]; */ 140 140 141 141 struct sadb_alg { 142 - uint8_t sadb_alg_id; 143 - uint8_t sadb_alg_ivlen; 144 - uint16_t sadb_alg_minbits; 145 - uint16_t sadb_alg_maxbits; 146 - uint16_t sadb_alg_reserved; 142 + __u8 sadb_alg_id; 143 + __u8 sadb_alg_ivlen; 144 + __u16 sadb_alg_minbits; 145 + __u16 sadb_alg_maxbits; 146 + __u16 sadb_alg_reserved; 147 147 } __attribute__((packed)); 148 148 /* sizeof(struct sadb_alg) == 8 */ 149 149 150 150 struct sadb_spirange { 151 - uint16_t sadb_spirange_len; 152 - uint16_t sadb_spirange_exttype; 153 - uint32_t sadb_spirange_min; 154 - uint32_t sadb_spirange_max; 155 - uint32_t sadb_spirange_reserved; 151 + __u16 sadb_spirange_len; 152 + __u16 sadb_spirange_exttype; 153 + __u32 sadb_spirange_min; 154 + __u32 sadb_spirange_max; 155 + __u32 sadb_spirange_reserved; 156 156 } __attribute__((packed)); 157 157 /* sizeof(struct sadb_spirange) == 16 */ 158 158 159 159 struct sadb_x_kmprivate { 160 - uint16_t sadb_x_kmprivate_len; 161 - uint16_t sadb_x_kmprivate_exttype; 162 - uint32_t sadb_x_kmprivate_reserved; 160 + __u16 sadb_x_kmprivate_len; 161 + __u16 sadb_x_kmprivate_exttype; 162 + __u32 sadb_x_kmprivate_reserved; 163 163 } __attribute__((packed)); 164 164 /* sizeof(struct sadb_x_kmprivate) == 8 */ 165 165 166 166 struct sadb_x_sa2 { 167 - uint16_t sadb_x_sa2_len; 168 - uint16_t sadb_x_sa2_exttype; 169 - uint8_t sadb_x_sa2_mode; 170 - uint8_t sadb_x_sa2_reserved1; 171 - uint16_t sadb_x_sa2_reserved2; 172 - uint32_t sadb_x_sa2_sequence; 173 - uint32_t sadb_x_sa2_reqid; 167 + __u16 sadb_x_sa2_len; 168 + __u16 sadb_x_sa2_exttype; 169 + __u8 sadb_x_sa2_mode; 170 + __u8 sadb_x_sa2_reserved1; 171 + __u16 sadb_x_sa2_reserved2; 172 + __u32 sadb_x_sa2_sequence; 173 + __u32 sadb_x_sa2_reqid; 174 174 } __attribute__((packed)); 175 175 /* sizeof(struct sadb_x_sa2) == 16 */ 176 176 177 177 struct sadb_x_policy { 178 - uint16_t sadb_x_policy_len; 179 - uint16_t sadb_x_policy_exttype; 180 - uint16_t sadb_x_policy_type; 181 - uint8_t sadb_x_policy_dir; 182 - uint8_t sadb_x_policy_reserved; 183 - uint32_t sadb_x_policy_id; 184 - uint32_t sadb_x_policy_priority; 178 + __u16 sadb_x_policy_len; 179 + __u16 sadb_x_policy_exttype; 180 + __u16 sadb_x_policy_type; 181 + __u8 sadb_x_policy_dir; 182 + __u8 sadb_x_policy_reserved; 183 + __u32 sadb_x_policy_id; 184 + __u32 sadb_x_policy_priority; 185 185 } __attribute__((packed)); 186 186 /* sizeof(struct sadb_x_policy) == 16 */ 187 187 188 188 struct sadb_x_ipsecrequest { 189 - uint16_t sadb_x_ipsecrequest_len; 190 - uint16_t sadb_x_ipsecrequest_proto; 191 - uint8_t sadb_x_ipsecrequest_mode; 192 - uint8_t sadb_x_ipsecrequest_level; 193 - uint16_t sadb_x_ipsecrequest_reserved1; 194 - uint32_t sadb_x_ipsecrequest_reqid; 195 - uint32_t sadb_x_ipsecrequest_reserved2; 189 + __u16 sadb_x_ipsecrequest_len; 190 + __u16 sadb_x_ipsecrequest_proto; 191 + __u8 sadb_x_ipsecrequest_mode; 192 + __u8 sadb_x_ipsecrequest_level; 193 + __u16 sadb_x_ipsecrequest_reserved1; 194 + __u32 sadb_x_ipsecrequest_reqid; 195 + __u32 sadb_x_ipsecrequest_reserved2; 196 196 } __attribute__((packed)); 197 197 /* sizeof(struct sadb_x_ipsecrequest) == 16 */ 198 198 ··· 200 200 * type of NAT-T is supported, draft-ietf-ipsec-udp-encaps-06 201 201 */ 202 202 struct sadb_x_nat_t_type { 203 - uint16_t sadb_x_nat_t_type_len; 204 - uint16_t sadb_x_nat_t_type_exttype; 205 - uint8_t sadb_x_nat_t_type_type; 206 - uint8_t sadb_x_nat_t_type_reserved[3]; 203 + __u16 sadb_x_nat_t_type_len; 204 + __u16 sadb_x_nat_t_type_exttype; 205 + __u8 sadb_x_nat_t_type_type; 206 + __u8 sadb_x_nat_t_type_reserved[3]; 207 207 } __attribute__((packed)); 208 208 /* sizeof(struct sadb_x_nat_t_type) == 8 */ 209 209 210 210 /* Pass a NAT Traversal port (Source or Dest port) */ 211 211 struct sadb_x_nat_t_port { 212 - uint16_t sadb_x_nat_t_port_len; 213 - uint16_t sadb_x_nat_t_port_exttype; 212 + __u16 sadb_x_nat_t_port_len; 213 + __u16 sadb_x_nat_t_port_exttype; 214 214 __be16 sadb_x_nat_t_port_port; 215 - uint16_t sadb_x_nat_t_port_reserved; 215 + __u16 sadb_x_nat_t_port_reserved; 216 216 } __attribute__((packed)); 217 217 /* sizeof(struct sadb_x_nat_t_port) == 8 */ 218 218 219 219 /* Generic LSM security context */ 220 220 struct sadb_x_sec_ctx { 221 - uint16_t sadb_x_sec_len; 222 - uint16_t sadb_x_sec_exttype; 223 - uint8_t sadb_x_ctx_alg; /* LSMs: e.g., selinux == 1 */ 224 - uint8_t sadb_x_ctx_doi; 225 - uint16_t sadb_x_ctx_len; 221 + __u16 sadb_x_sec_len; 222 + __u16 sadb_x_sec_exttype; 223 + __u8 sadb_x_ctx_alg; /* LSMs: e.g., selinux == 1 */ 224 + __u8 sadb_x_ctx_doi; 225 + __u16 sadb_x_ctx_len; 226 226 } __attribute__((packed)); 227 227 /* sizeof(struct sadb_sec_ctx) = 8 */ 228 228 229 229 /* Used by MIGRATE to pass addresses IKE will use to perform 230 230 * negotiation with the peer */ 231 231 struct sadb_x_kmaddress { 232 - uint16_t sadb_x_kmaddress_len; 233 - uint16_t sadb_x_kmaddress_exttype; 234 - uint32_t sadb_x_kmaddress_reserved; 232 + __u16 sadb_x_kmaddress_len; 233 + __u16 sadb_x_kmaddress_exttype; 234 + __u32 sadb_x_kmaddress_reserved; 235 235 } __attribute__((packed)); 236 236 /* sizeof(struct sadb_x_kmaddress) == 8 */ 237 237
+2 -2
include/linux/ppp_defs.h
··· 177 177 * the last NP packet was sent or received. 178 178 */ 179 179 struct ppp_idle { 180 - time_t xmit_idle; /* time since last NP packet sent */ 181 - time_t recv_idle; /* time since last NP packet received */ 180 + __kernel_time_t xmit_idle; /* time since last NP packet sent */ 181 + __kernel_time_t recv_idle; /* time since last NP packet received */ 182 182 }; 183 183 184 184 #endif /* _PPP_DEFS_H_ */
+29 -27
include/linux/reiserfs_fs.h
··· 28 28 #include <linux/reiserfs_fs_sb.h> 29 29 #endif 30 30 31 - struct fid; 32 - 33 31 /* 34 32 * include/linux/reiser_fs.h 35 33 * 36 34 * Reiser File System constants and structures 37 35 * 38 36 */ 37 + 38 + /* ioctl's command */ 39 + #define REISERFS_IOC_UNPACK _IOW(0xCD,1,long) 40 + /* define following flags to be the same as in ext2, so that chattr(1), 41 + lsattr(1) will work with us. */ 42 + #define REISERFS_IOC_GETFLAGS FS_IOC_GETFLAGS 43 + #define REISERFS_IOC_SETFLAGS FS_IOC_SETFLAGS 44 + #define REISERFS_IOC_GETVERSION FS_IOC_GETVERSION 45 + #define REISERFS_IOC_SETVERSION FS_IOC_SETVERSION 46 + 47 + #ifdef __KERNEL__ 48 + /* the 32 bit compat definitions with int argument */ 49 + #define REISERFS_IOC32_UNPACK _IOW(0xCD, 1, int) 50 + #define REISERFS_IOC32_GETFLAGS FS_IOC32_GETFLAGS 51 + #define REISERFS_IOC32_SETFLAGS FS_IOC32_SETFLAGS 52 + #define REISERFS_IOC32_GETVERSION FS_IOC32_GETVERSION 53 + #define REISERFS_IOC32_SETVERSION FS_IOC32_SETVERSION 54 + 55 + /* Locking primitives */ 56 + /* Right now we are still falling back to (un)lock_kernel, but eventually that 57 + would evolve into real per-fs locks */ 58 + #define reiserfs_write_lock( sb ) lock_kernel() 59 + #define reiserfs_write_unlock( sb ) unlock_kernel() 60 + 61 + /* xattr stuff */ 62 + #define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem) 63 + struct fid; 39 64 40 65 /* in reading the #defines, it may help to understand that they employ 41 66 the following abbreviations: ··· 723 698 /* object identifier for root dir */ 724 699 #define REISERFS_ROOT_OBJECTID 2 725 700 #define REISERFS_ROOT_PARENT_OBJECTID 1 701 + 726 702 extern struct reiserfs_key root_key; 727 703 728 704 /* ··· 1566 1540 /* FUNCTION DECLARATIONS */ 1567 1541 /***************************************************************************/ 1568 1542 1569 - /*#ifdef __KERNEL__*/ 1570 1543 #define get_journal_desc_magic(bh) (bh->b_data + bh->b_size - 12) 1571 1544 1572 1545 #define journal_trans_half(blocksize) \ ··· 2203 2178 unsigned int cmd, unsigned long arg); 2204 2179 int reiserfs_unpack(struct inode *inode, struct file *filp); 2205 2180 2206 - /* ioctl's command */ 2207 - #define REISERFS_IOC_UNPACK _IOW(0xCD,1,long) 2208 - /* define following flags to be the same as in ext2, so that chattr(1), 2209 - lsattr(1) will work with us. */ 2210 - #define REISERFS_IOC_GETFLAGS FS_IOC_GETFLAGS 2211 - #define REISERFS_IOC_SETFLAGS FS_IOC_SETFLAGS 2212 - #define REISERFS_IOC_GETVERSION FS_IOC_GETVERSION 2213 - #define REISERFS_IOC_SETVERSION FS_IOC_SETVERSION 2214 2181 2215 - /* the 32 bit compat definitions with int argument */ 2216 - #define REISERFS_IOC32_UNPACK _IOW(0xCD, 1, int) 2217 - #define REISERFS_IOC32_GETFLAGS FS_IOC32_GETFLAGS 2218 - #define REISERFS_IOC32_SETFLAGS FS_IOC32_SETFLAGS 2219 - #define REISERFS_IOC32_GETVERSION FS_IOC32_GETVERSION 2220 - #define REISERFS_IOC32_SETVERSION FS_IOC32_SETVERSION 2221 - 2222 - /* Locking primitives */ 2223 - /* Right now we are still falling back to (un)lock_kernel, but eventually that 2224 - would evolve into real per-fs locks */ 2225 - #define reiserfs_write_lock( sb ) lock_kernel() 2226 - #define reiserfs_write_unlock( sb ) unlock_kernel() 2227 - 2228 - /* xattr stuff */ 2229 - #define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem) 2230 - 2182 + #endif /* __KERNEL__ */ 2231 2183 #endif /* _LINUX_REISER_FS_H */
+4 -2
include/linux/selinux_netlink.h
··· 12 12 #ifndef _LINUX_SELINUX_NETLINK_H 13 13 #define _LINUX_SELINUX_NETLINK_H 14 14 15 + #include <linux/types.h> 16 + 15 17 /* Message types. */ 16 18 #define SELNL_MSG_BASE 0x10 17 19 enum { ··· 40 38 41 39 /* Message structures */ 42 40 struct selnl_msg_setenforce { 43 - int32_t val; 41 + __s32 val; 44 42 }; 45 43 46 44 struct selnl_msg_policyload { 47 - u_int32_t seqno; 45 + __u32 seqno; 48 46 }; 49 47 50 48 #endif /* _LINUX_SELINUX_NETLINK_H */
+4 -2
include/linux/socket.h
··· 24 24 #include <linux/types.h> /* pid_t */ 25 25 #include <linux/compiler.h> /* __user */ 26 26 27 - #ifdef CONFIG_PROC_FS 27 + #ifdef __KERNEL__ 28 + # ifdef CONFIG_PROC_FS 28 29 struct seq_file; 29 30 extern void socket_seq_show(struct seq_file *seq); 30 - #endif 31 + # endif 32 + #endif /* __KERNEL__ */ 31 33 32 34 typedef unsigned short sa_family_t; 33 35
+6 -5
include/linux/suspend_ioctls.h
··· 1 1 #ifndef _LINUX_SUSPEND_IOCTLS_H 2 2 #define _LINUX_SUSPEND_IOCTLS_H 3 3 4 + #include <linux/types.h> 4 5 /* 5 6 * This structure is used to pass the values needed for the identification 6 7 * of the resume swap area from a user space to the kernel via the 7 8 * SNAPSHOT_SET_SWAP_AREA ioctl 8 9 */ 9 10 struct resume_swap_area { 10 - loff_t offset; 11 - u_int32_t dev; 11 + __kernel_loff_t offset; 12 + __u32 dev; 12 13 } __attribute__((packed)); 13 14 14 15 #define SNAPSHOT_IOC_MAGIC '3' ··· 21 20 #define SNAPSHOT_S2RAM _IO(SNAPSHOT_IOC_MAGIC, 11) 22 21 #define SNAPSHOT_SET_SWAP_AREA _IOW(SNAPSHOT_IOC_MAGIC, 13, \ 23 22 struct resume_swap_area) 24 - #define SNAPSHOT_GET_IMAGE_SIZE _IOR(SNAPSHOT_IOC_MAGIC, 14, loff_t) 23 + #define SNAPSHOT_GET_IMAGE_SIZE _IOR(SNAPSHOT_IOC_MAGIC, 14, __kernel_loff_t) 25 24 #define SNAPSHOT_PLATFORM_SUPPORT _IO(SNAPSHOT_IOC_MAGIC, 15) 26 25 #define SNAPSHOT_POWER_OFF _IO(SNAPSHOT_IOC_MAGIC, 16) 27 26 #define SNAPSHOT_CREATE_IMAGE _IOW(SNAPSHOT_IOC_MAGIC, 17, int) 28 27 #define SNAPSHOT_PREF_IMAGE_SIZE _IO(SNAPSHOT_IOC_MAGIC, 18) 29 - #define SNAPSHOT_AVAIL_SWAP_SIZE _IOR(SNAPSHOT_IOC_MAGIC, 19, loff_t) 30 - #define SNAPSHOT_ALLOC_SWAP_PAGE _IOR(SNAPSHOT_IOC_MAGIC, 20, loff_t) 28 + #define SNAPSHOT_AVAIL_SWAP_SIZE _IOR(SNAPSHOT_IOC_MAGIC, 19, __kernel_loff_t) 29 + #define SNAPSHOT_ALLOC_SWAP_PAGE _IOR(SNAPSHOT_IOC_MAGIC, 20, __kernel_loff_t) 31 30 #define SNAPSHOT_IOC_MAXNR 20 32 31 33 32 #endif /* _LINUX_SUSPEND_IOCTLS_H */
+4 -4
include/linux/time.h
··· 12 12 #ifndef _STRUCT_TIMESPEC 13 13 #define _STRUCT_TIMESPEC 14 14 struct timespec { 15 - time_t tv_sec; /* seconds */ 16 - long tv_nsec; /* nanoseconds */ 15 + __kernel_time_t tv_sec; /* seconds */ 16 + long tv_nsec; /* nanoseconds */ 17 17 }; 18 18 #endif 19 19 20 20 struct timeval { 21 - time_t tv_sec; /* seconds */ 22 - suseconds_t tv_usec; /* microseconds */ 21 + __kernel_time_t tv_sec; /* seconds */ 22 + __kernel_suseconds_t tv_usec; /* microseconds */ 23 23 }; 24 24 25 25 struct timezone {
+4 -4
include/linux/times.h
··· 4 4 #include <linux/types.h> 5 5 6 6 struct tms { 7 - clock_t tms_utime; 8 - clock_t tms_stime; 9 - clock_t tms_cutime; 10 - clock_t tms_cstime; 7 + __kernel_clock_t tms_utime; 8 + __kernel_clock_t tms_stime; 9 + __kernel_clock_t tms_cutime; 10 + __kernel_clock_t tms_cstime; 11 11 }; 12 12 13 13 #endif
+6 -13
include/linux/types.h
··· 1 1 #ifndef _LINUX_TYPES_H 2 2 #define _LINUX_TYPES_H 3 3 4 + #include <asm/types.h> 5 + 6 + #ifndef __ASSEMBLY__ 4 7 #ifdef __KERNEL__ 5 8 6 9 #define DECLARE_BITMAP(name,bits) \ ··· 12 9 #endif 13 10 14 11 #include <linux/posix_types.h> 15 - #include <asm/types.h> 16 12 17 - #ifndef __KERNEL_STRICT_NAMES 13 + #ifdef __KERNEL__ 18 14 19 15 typedef __u32 __kernel_dev_t; 20 16 ··· 31 29 typedef __kernel_clockid_t clockid_t; 32 30 typedef __kernel_mqd_t mqd_t; 33 31 34 - #ifdef __KERNEL__ 35 32 typedef _Bool bool; 36 33 37 34 typedef __kernel_uid32_t uid_t; ··· 45 44 typedef __kernel_old_uid_t old_uid_t; 46 45 typedef __kernel_old_gid_t old_gid_t; 47 46 #endif /* CONFIG_UID16 */ 48 - 49 - /* libc5 includes this file to define uid_t, thus uid_t can never change 50 - * when it is included by non-kernel code 51 - */ 52 - #else 53 - typedef __kernel_uid_t uid_t; 54 - typedef __kernel_gid_t gid_t; 55 - #endif /* __KERNEL__ */ 56 47 57 48 #if defined(__GNUC__) 58 49 typedef __kernel_loff_t loff_t; ··· 147 154 #define pgoff_t unsigned long 148 155 #endif 149 156 150 - #endif /* __KERNEL_STRICT_NAMES */ 157 + #endif /* __KERNEL__ */ 151 158 152 159 /* 153 160 * Below are truly Linux-specific types that should never collide with ··· 205 212 }; 206 213 207 214 #endif /* __KERNEL__ */ 208 - 215 + #endif /* __ASSEMBLY__ */ 209 216 #endif /* _LINUX_TYPES_H */
+2 -2
include/linux/utime.h
··· 4 4 #include <linux/types.h> 5 5 6 6 struct utimbuf { 7 - time_t actime; 8 - time_t modtime; 7 + __kernel_time_t actime; 8 + __kernel_time_t modtime; 9 9 }; 10 10 11 11 #endif
+1 -1
include/linux/xfrm.h
··· 58 58 __u8 prefixlen_s; 59 59 __u8 proto; 60 60 int ifindex; 61 - uid_t user; 61 + __kernel_uid32_t user; 62 62 }; 63 63 64 64 #define XFRM_INF (~(__u64)0)
+18 -18
include/mtd/inftl-user.h
··· 16 16 /* Block Control Information */ 17 17 18 18 struct inftl_bci { 19 - uint8_t ECCsig[6]; 20 - uint8_t Status; 21 - uint8_t Status1; 19 + __u8 ECCsig[6]; 20 + __u8 Status; 21 + __u8 Status1; 22 22 } __attribute__((packed)); 23 23 24 24 struct inftl_unithead1 { 25 - uint16_t virtualUnitNo; 26 - uint16_t prevUnitNo; 27 - uint8_t ANAC; 28 - uint8_t NACs; 29 - uint8_t parityPerField; 30 - uint8_t discarded; 25 + __u16 virtualUnitNo; 26 + __u16 prevUnitNo; 27 + __u8 ANAC; 28 + __u8 NACs; 29 + __u8 parityPerField; 30 + __u8 discarded; 31 31 } __attribute__((packed)); 32 32 33 33 struct inftl_unithead2 { 34 - uint8_t parityPerField; 35 - uint8_t ANAC; 36 - uint16_t prevUnitNo; 37 - uint16_t virtualUnitNo; 38 - uint8_t NACs; 39 - uint8_t discarded; 34 + __u8 parityPerField; 35 + __u8 ANAC; 36 + __u16 prevUnitNo; 37 + __u16 virtualUnitNo; 38 + __u8 NACs; 39 + __u8 discarded; 40 40 } __attribute__((packed)); 41 41 42 42 struct inftl_unittail { 43 - uint8_t Reserved[4]; 44 - uint16_t EraseMark; 45 - uint16_t EraseMark1; 43 + __u8 Reserved[4]; 44 + __u16 EraseMark; 45 + __u16 EraseMark1; 46 46 } __attribute__((packed)); 47 47 48 48 union inftl_uci {
+3 -2
include/mtd/jffs2-user.h
··· 7 7 8 8 /* This file is blessed for inclusion by userspace */ 9 9 #include <linux/jffs2.h> 10 + #include <linux/types.h> 10 11 #include <endian.h> 11 12 #include <byteswap.h> 12 13 ··· 20 19 21 20 extern int target_endian; 22 21 23 - #define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); }) 24 - #define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); }) 22 + #define t16(x) ({ __u16 __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); }) 23 + #define t32(x) ({ __u32 __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); }) 25 24 26 25 #define cpu_to_je16(x) ((jint16_t){t16(x)}) 27 26 #define cpu_to_je32(x) ((jint32_t){t32(x)})
+36 -34
include/mtd/mtd-abi.h
··· 5 5 #ifndef __MTD_ABI_H__ 6 6 #define __MTD_ABI_H__ 7 7 8 + #include <linux/types.h> 9 + 8 10 struct erase_info_user { 9 - uint32_t start; 10 - uint32_t length; 11 + __u32 start; 12 + __u32 length; 11 13 }; 12 14 13 15 struct mtd_oob_buf { 14 - uint32_t start; 15 - uint32_t length; 16 + __u32 start; 17 + __u32 length; 16 18 unsigned char __user *ptr; 17 19 }; 18 20 ··· 50 48 #define MTD_OTP_USER 2 51 49 52 50 struct mtd_info_user { 53 - uint8_t type; 54 - uint32_t flags; 55 - uint32_t size; // Total size of the MTD 56 - uint32_t erasesize; 57 - uint32_t writesize; 58 - uint32_t oobsize; // Amount of OOB data per block (e.g. 16) 51 + __u8 type; 52 + __u32 flags; 53 + __u32 size; // Total size of the MTD 54 + __u32 erasesize; 55 + __u32 writesize; 56 + __u32 oobsize; // Amount of OOB data per block (e.g. 16) 59 57 /* The below two fields are obsolete and broken, do not use them 60 58 * (TODO: remove at some point) */ 61 - uint32_t ecctype; 62 - uint32_t eccsize; 59 + __u32 ecctype; 60 + __u32 eccsize; 63 61 }; 64 62 65 63 struct region_info_user { 66 - uint32_t offset; /* At which this region starts, 64 + __u32 offset; /* At which this region starts, 67 65 * from the beginning of the MTD */ 68 - uint32_t erasesize; /* For this region */ 69 - uint32_t numblocks; /* Number of blocks in this region */ 70 - uint32_t regionindex; 66 + __u32 erasesize; /* For this region */ 67 + __u32 numblocks; /* Number of blocks in this region */ 68 + __u32 regionindex; 71 69 }; 72 70 73 71 struct otp_info { 74 - uint32_t start; 75 - uint32_t length; 76 - uint32_t locked; 72 + __u32 start; 73 + __u32 length; 74 + __u32 locked; 77 75 }; 78 76 79 77 #define MEMGETINFO _IOR('M', 1, struct mtd_info_user) ··· 86 84 #define MEMGETREGIONINFO _IOWR('M', 8, struct region_info_user) 87 85 #define MEMSETOOBSEL _IOW('M', 9, struct nand_oobinfo) 88 86 #define MEMGETOOBSEL _IOR('M', 10, struct nand_oobinfo) 89 - #define MEMGETBADBLOCK _IOW('M', 11, loff_t) 90 - #define MEMSETBADBLOCK _IOW('M', 12, loff_t) 87 + #define MEMGETBADBLOCK _IOW('M', 11, __kernel_loff_t) 88 + #define MEMSETBADBLOCK _IOW('M', 12, __kernel_loff_t) 91 89 #define OTPSELECT _IOR('M', 13, int) 92 90 #define OTPGETREGIONCOUNT _IOW('M', 14, int) 93 91 #define OTPGETREGIONINFO _IOW('M', 15, struct otp_info) ··· 101 99 * interfaces 102 100 */ 103 101 struct nand_oobinfo { 104 - uint32_t useecc; 105 - uint32_t eccbytes; 106 - uint32_t oobfree[8][2]; 107 - uint32_t eccpos[32]; 102 + __u32 useecc; 103 + __u32 eccbytes; 104 + __u32 oobfree[8][2]; 105 + __u32 eccpos[32]; 108 106 }; 109 107 110 108 struct nand_oobfree { 111 - uint32_t offset; 112 - uint32_t length; 109 + __u32 offset; 110 + __u32 length; 113 111 }; 114 112 115 113 #define MTD_MAX_OOBFREE_ENTRIES 8 ··· 118 116 * diagnosis and to allow creation of raw images 119 117 */ 120 118 struct nand_ecclayout { 121 - uint32_t eccbytes; 122 - uint32_t eccpos[64]; 123 - uint32_t oobavail; 119 + __u32 eccbytes; 120 + __u32 eccpos[64]; 121 + __u32 oobavail; 124 122 struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES]; 125 123 }; 126 124 ··· 133 131 * @bbtblocks: number of blocks reserved for bad block tables 134 132 */ 135 133 struct mtd_ecc_stats { 136 - uint32_t corrected; 137 - uint32_t failed; 138 - uint32_t badblocks; 139 - uint32_t bbtblocks; 134 + __u32 corrected; 135 + __u32 failed; 136 + __u32 badblocks; 137 + __u32 bbtblocks; 140 138 }; 141 139 142 140 /*
+17 -15
include/mtd/nftl-user.h
··· 6 6 #ifndef __MTD_NFTL_USER_H__ 7 7 #define __MTD_NFTL_USER_H__ 8 8 9 + #include <linux/types.h> 10 + 9 11 /* Block Control Information */ 10 12 11 13 struct nftl_bci { 12 14 unsigned char ECCSig[6]; 13 - uint8_t Status; 14 - uint8_t Status1; 15 + __u8 Status; 16 + __u8 Status1; 15 17 }__attribute__((packed)); 16 18 17 19 /* Unit Control Information */ 18 20 19 21 struct nftl_uci0 { 20 - uint16_t VirtUnitNum; 21 - uint16_t ReplUnitNum; 22 - uint16_t SpareVirtUnitNum; 23 - uint16_t SpareReplUnitNum; 22 + __u16 VirtUnitNum; 23 + __u16 ReplUnitNum; 24 + __u16 SpareVirtUnitNum; 25 + __u16 SpareReplUnitNum; 24 26 } __attribute__((packed)); 25 27 26 28 struct nftl_uci1 { 27 - uint32_t WearInfo; 28 - uint16_t EraseMark; 29 - uint16_t EraseMark1; 29 + __u32 WearInfo; 30 + __u16 EraseMark; 31 + __u16 EraseMark1; 30 32 } __attribute__((packed)); 31 33 32 34 struct nftl_uci2 { 33 - uint16_t FoldMark; 34 - uint16_t FoldMark1; 35 - uint32_t unused; 35 + __u16 FoldMark; 36 + __u16 FoldMark1; 37 + __u32 unused; 36 38 } __attribute__((packed)); 37 39 38 40 union nftl_uci { ··· 52 50 53 51 struct NFTLMediaHeader { 54 52 char DataOrgID[6]; 55 - uint16_t NumEraseUnits; 56 - uint16_t FirstPhysicalEUN; 57 - uint32_t FormattedSize; 53 + __u16 NumEraseUnits; 54 + __u16 FirstPhysicalEUN; 55 + __u32 FormattedSize; 58 56 unsigned char UnitSizeFactor; 59 57 } __attribute__((packed)); 60 58
+37 -35
include/mtd/ubi-user.h
··· 21 21 #ifndef __UBI_USER_H__ 22 22 #define __UBI_USER_H__ 23 23 24 + #include <linux/types.h> 25 + 24 26 /* 25 27 * UBI device creation (the same as MTD device attachment) 26 28 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ··· 154 152 /* Create an UBI volume */ 155 153 #define UBI_IOCMKVOL _IOW(UBI_IOC_MAGIC, 0, struct ubi_mkvol_req) 156 154 /* Remove an UBI volume */ 157 - #define UBI_IOCRMVOL _IOW(UBI_IOC_MAGIC, 1, int32_t) 155 + #define UBI_IOCRMVOL _IOW(UBI_IOC_MAGIC, 1, __s32) 158 156 /* Re-size an UBI volume */ 159 157 #define UBI_IOCRSVOL _IOW(UBI_IOC_MAGIC, 2, struct ubi_rsvol_req) 160 158 /* Re-name volumes */ ··· 167 165 /* Attach an MTD device */ 168 166 #define UBI_IOCATT _IOW(UBI_CTRL_IOC_MAGIC, 64, struct ubi_attach_req) 169 167 /* Detach an MTD device */ 170 - #define UBI_IOCDET _IOW(UBI_CTRL_IOC_MAGIC, 65, int32_t) 168 + #define UBI_IOCDET _IOW(UBI_CTRL_IOC_MAGIC, 65, __s32) 171 169 172 170 /* ioctl commands of UBI volume character devices */ 173 171 174 172 #define UBI_VOL_IOC_MAGIC 'O' 175 173 176 174 /* Start UBI volume update */ 177 - #define UBI_IOCVOLUP _IOW(UBI_VOL_IOC_MAGIC, 0, int64_t) 175 + #define UBI_IOCVOLUP _IOW(UBI_VOL_IOC_MAGIC, 0, __s64) 178 176 /* LEB erasure command, used for debugging, disabled by default */ 179 - #define UBI_IOCEBER _IOW(UBI_VOL_IOC_MAGIC, 1, int32_t) 177 + #define UBI_IOCEBER _IOW(UBI_VOL_IOC_MAGIC, 1, __s32) 180 178 /* Atomic LEB change command */ 181 - #define UBI_IOCEBCH _IOW(UBI_VOL_IOC_MAGIC, 2, int32_t) 179 + #define UBI_IOCEBCH _IOW(UBI_VOL_IOC_MAGIC, 2, __s32) 182 180 /* Map LEB command */ 183 181 #define UBI_IOCEBMAP _IOW(UBI_VOL_IOC_MAGIC, 3, struct ubi_map_req) 184 182 /* Unmap LEB command */ 185 - #define UBI_IOCEBUNMAP _IOW(UBI_VOL_IOC_MAGIC, 4, int32_t) 183 + #define UBI_IOCEBUNMAP _IOW(UBI_VOL_IOC_MAGIC, 4, __s32) 186 184 /* Check if LEB is mapped command */ 187 - #define UBI_IOCEBISMAP _IOR(UBI_VOL_IOC_MAGIC, 5, int32_t) 185 + #define UBI_IOCEBISMAP _IOR(UBI_VOL_IOC_MAGIC, 5, __s32) 188 186 /* Set an UBI volume property */ 189 187 #define UBI_IOCSETPROP _IOW(UBI_VOL_IOC_MAGIC, 6, struct ubi_set_prop_req) 190 188 ··· 262 260 * sub-page of the first page and add needed padding. 263 261 */ 264 262 struct ubi_attach_req { 265 - int32_t ubi_num; 266 - int32_t mtd_num; 267 - int32_t vid_hdr_offset; 268 - int8_t padding[12]; 263 + __s32 ubi_num; 264 + __s32 mtd_num; 265 + __s32 vid_hdr_offset; 266 + __s8 padding[12]; 269 267 }; 270 268 271 269 /** ··· 300 298 * BLOBs, without caring about how to properly align them. 301 299 */ 302 300 struct ubi_mkvol_req { 303 - int32_t vol_id; 304 - int32_t alignment; 305 - int64_t bytes; 306 - int8_t vol_type; 307 - int8_t padding1; 308 - int16_t name_len; 309 - int8_t padding2[4]; 301 + __s32 vol_id; 302 + __s32 alignment; 303 + __s64 bytes; 304 + __s8 vol_type; 305 + __s8 padding1; 306 + __s16 name_len; 307 + __s8 padding2[4]; 310 308 char name[UBI_MAX_VOLUME_NAME + 1]; 311 309 } __attribute__ ((packed)); 312 310 ··· 322 320 * zero number of bytes). 323 321 */ 324 322 struct ubi_rsvol_req { 325 - int64_t bytes; 326 - int32_t vol_id; 323 + __s64 bytes; 324 + __s32 vol_id; 327 325 } __attribute__ ((packed)); 328 326 329 327 /** ··· 358 356 * re-name request. 359 357 */ 360 358 struct ubi_rnvol_req { 361 - int32_t count; 362 - int8_t padding1[12]; 359 + __s32 count; 360 + __s8 padding1[12]; 363 361 struct { 364 - int32_t vol_id; 365 - int16_t name_len; 366 - int8_t padding2[2]; 362 + __s32 vol_id; 363 + __s16 name_len; 364 + __s8 padding2[2]; 367 365 char name[UBI_MAX_VOLUME_NAME + 1]; 368 366 } ents[UBI_MAX_RNVOL]; 369 367 } __attribute__ ((packed)); ··· 377 375 * @padding: reserved for future, not used, has to be zeroed 378 376 */ 379 377 struct ubi_leb_change_req { 380 - int32_t lnum; 381 - int32_t bytes; 382 - int8_t dtype; 383 - int8_t padding[7]; 378 + __s32 lnum; 379 + __s32 bytes; 380 + __s8 dtype; 381 + __s8 padding[7]; 384 382 } __attribute__ ((packed)); 385 383 386 384 /** ··· 390 388 * @padding: reserved for future, not used, has to be zeroed 391 389 */ 392 390 struct ubi_map_req { 393 - int32_t lnum; 394 - int8_t dtype; 395 - int8_t padding[3]; 391 + __s32 lnum; 392 + __s8 dtype; 393 + __s8 padding[3]; 396 394 } __attribute__ ((packed)); 397 395 398 396 ··· 404 402 * @value: value to set 405 403 */ 406 404 struct ubi_set_prop_req { 407 - uint8_t property; 408 - uint8_t padding[7]; 409 - uint64_t value; 405 + __u8 property; 406 + __u8 padding[7]; 407 + __u64 value; 410 408 } __attribute__ ((packed)); 411 409 412 410 #endif /* __UBI_USER_H__ */
+5 -4
include/sound/asound.h
··· 23 23 #ifndef __SOUND_ASOUND_H 24 24 #define __SOUND_ASOUND_H 25 25 26 + #include <linux/types.h> 27 + 26 28 #ifdef __KERNEL__ 27 29 #include <linux/ioctl.h> 28 - #include <linux/types.h> 29 30 #include <linux/time.h> 30 31 #include <asm/byteorder.h> 31 32 ··· 341 340 #define SNDRV_MASK_MAX 256 342 341 343 342 struct snd_mask { 344 - u_int32_t bits[(SNDRV_MASK_MAX+31)/32]; 343 + __u32 bits[(SNDRV_MASK_MAX+31)/32]; 345 344 }; 346 345 347 346 struct snd_pcm_hw_params { ··· 384 383 385 384 struct snd_pcm_channel_info { 386 385 unsigned int channel; 387 - off_t offset; /* mmap offset */ 386 + __kernel_off_t offset; /* mmap offset */ 388 387 unsigned int first; /* offset to first sample in bits */ 389 388 unsigned int step; /* samples distance in bits */ 390 389 }; ··· 779 778 snd_ctl_elem_type_t type; /* R: value type - SNDRV_CTL_ELEM_TYPE_* */ 780 779 unsigned int access; /* R: value access (bitmask) - SNDRV_CTL_ELEM_ACCESS_* */ 781 780 unsigned int count; /* count of values */ 782 - pid_t owner; /* owner's PID of this control */ 781 + __kernel_pid_t owner; /* owner's PID of this control */ 783 782 union { 784 783 struct { 785 784 long min; /* R: minimum value */
+7 -4
include/sound/emu10k1.h
··· 1 1 #ifndef __SOUND_EMU10K1_H 2 2 #define __SOUND_EMU10K1_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* 5 7 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, 6 8 * Creative Labs, Inc. ··· 36 34 #include <sound/timer.h> 37 35 #include <linux/interrupt.h> 38 36 #include <linux/mutex.h> 37 + 39 38 #include <asm/io.h> 40 39 41 40 /* ------------------- DEFINES -------------------- */ ··· 2174 2171 char name[128]; 2175 2172 2176 2173 DECLARE_BITMAP(gpr_valid, 0x200); /* bitmask of valid initializers */ 2177 - u_int32_t __user *gpr_map; /* initializers */ 2174 + __u32 __user *gpr_map; /* initializers */ 2178 2175 2179 2176 unsigned int gpr_add_control_count; /* count of GPR controls to add/replace */ 2180 2177 struct snd_emu10k1_fx8010_control_gpr __user *gpr_add_controls; /* GPR controls to add/replace */ ··· 2187 2184 struct snd_emu10k1_fx8010_control_gpr __user *gpr_list_controls; /* listed GPR controls */ 2188 2185 2189 2186 DECLARE_BITMAP(tram_valid, 0x100); /* bitmask of valid initializers */ 2190 - u_int32_t __user *tram_data_map; /* data initializers */ 2191 - u_int32_t __user *tram_addr_map; /* map initializers */ 2187 + __u32 __user *tram_data_map; /* data initializers */ 2188 + __u32 __user *tram_addr_map; /* map initializers */ 2192 2189 2193 2190 DECLARE_BITMAP(code_valid, 1024); /* bitmask of valid instructions */ 2194 - u_int32_t __user *code; /* one instruction - 64 bits */ 2191 + __u32 __user *code; /* one instruction - 64 bits */ 2195 2192 }; 2196 2193 2197 2194 struct snd_emu10k1_fx8010_tram {
+1 -1
scripts/headers_check.pl
··· 38 38 &check_asm_types(); 39 39 &check_sizetypes(); 40 40 &check_prototypes(); 41 - &check_config(); 41 + # Dropped for now. Too much noise &check_config(); 42 42 } 43 43 close FH; 44 44 }