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

make most exported headers use strict integer types

This takes care of all files that have only a small number
of non-strict integer type uses.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: netdev@vger.kernel.org
Cc: linux-ppp@vger.kernel.org
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Arnd Bergmann and committed by
Ingo Molnar
9adfbfb6 85efde6f

+240 -226
+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 -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 */
+11 -11
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 ··· 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
+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
+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
+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
+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 */
+3 -2
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 ··· 343 342 #define SNDRV_MASK_MAX 256 344 343 345 344 struct snd_mask { 346 - u_int32_t bits[(SNDRV_MASK_MAX+31)/32]; 345 + __u32 bits[(SNDRV_MASK_MAX+31)/32]; 347 346 }; 348 347 349 348 struct snd_pcm_hw_params {
+8 -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 + #include <linux/types.h> 38 + 39 39 #include <asm/io.h> 40 40 41 41 /* ------------------- DEFINES -------------------- */ ··· 2175 2171 char name[128]; 2176 2172 2177 2173 DECLARE_BITMAP(gpr_valid, 0x200); /* bitmask of valid initializers */ 2178 - u_int32_t __user *gpr_map; /* initializers */ 2174 + __u32 __user *gpr_map; /* initializers */ 2179 2175 2180 2176 unsigned int gpr_add_control_count; /* count of GPR controls to add/replace */ 2181 2177 struct snd_emu10k1_fx8010_control_gpr __user *gpr_add_controls; /* GPR controls to add/replace */ ··· 2188 2184 struct snd_emu10k1_fx8010_control_gpr __user *gpr_list_controls; /* listed GPR controls */ 2189 2185 2190 2186 DECLARE_BITMAP(tram_valid, 0x100); /* bitmask of valid initializers */ 2191 - u_int32_t __user *tram_data_map; /* data initializers */ 2192 - 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 */ 2193 2189 2194 2190 DECLARE_BITMAP(code_valid, 1024); /* bitmask of valid instructions */ 2195 - u_int32_t __user *code; /* one instruction - 64 bits */ 2191 + __u32 __user *code; /* one instruction - 64 bits */ 2196 2192 }; 2197 2193 2198 2194 struct snd_emu10k1_fx8010_tram {