diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-02-25 18:51:40 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-26 13:14:15 -0400 |
commit | 9adfbfb611307060db54691bc7e6d53fdc12312b (patch) | |
tree | 35d2fb021c0a4e8d2980af114363bff714301aae /include/linux/cm4000_cs.h | |
parent | 85efde6f4e0de9577256c5f0030088d3fd4347c1 (diff) |
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>
Diffstat (limited to 'include/linux/cm4000_cs.h')
-rw-r--r-- | include/linux/cm4000_cs.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/cm4000_cs.h b/include/linux/cm4000_cs.h index 605ebe24bb2e..72bfefdbd767 100644 --- a/include/linux/cm4000_cs.h +++ b/include/linux/cm4000_cs.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _CM4000_H_ | 1 | #ifndef _CM4000_H_ |
2 | #define _CM4000_H_ | 2 | #define _CM4000_H_ |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | |||
4 | #define MAX_ATR 33 | 6 | #define MAX_ATR 33 |
5 | 7 | ||
6 | #define CM4000_MAX_DEV 4 | 8 | #define CM4000_MAX_DEV 4 |
@@ -10,9 +12,9 @@ | |||
10 | * not to break compilation of userspace apps. -HW */ | 12 | * not to break compilation of userspace apps. -HW */ |
11 | 13 | ||
12 | typedef struct atreq { | 14 | typedef struct atreq { |
13 | int32_t atr_len; | 15 | __s32 atr_len; |
14 | unsigned char atr[64]; | 16 | unsigned char atr[64]; |
15 | int32_t power_act; | 17 | __s32 power_act; |
16 | unsigned char bIFSD; | 18 | unsigned char bIFSD; |
17 | unsigned char bIFSC; | 19 | unsigned char bIFSC; |
18 | } atreq_t; | 20 | } atreq_t; |
@@ -22,13 +24,13 @@ typedef struct atreq { | |||
22 | * member sizes. This leads to CONFIG_COMPAT breakage, since 32bit userspace | 24 | * member sizes. This leads to CONFIG_COMPAT breakage, since 32bit userspace |
23 | * will lay out the structure members differently than the 64bit kernel. | 25 | * will lay out the structure members differently than the 64bit kernel. |
24 | * | 26 | * |
25 | * I've changed "ptsreq.protocol" from "unsigned long" to "u_int32_t". | 27 | * I've changed "ptsreq.protocol" from "unsigned long" to "__u32". |
26 | * On 32bit this will make no difference. With 64bit kernels, it will make | 28 | * On 32bit this will make no difference. With 64bit kernels, it will make |
27 | * 32bit apps work, too. | 29 | * 32bit apps work, too. |
28 | */ | 30 | */ |
29 | 31 | ||
30 | typedef struct ptsreq { | 32 | typedef struct ptsreq { |
31 | u_int32_t protocol; /*T=0: 2^0, T=1: 2^1*/ | 33 | __u32 protocol; /*T=0: 2^0, T=1: 2^1*/ |
32 | unsigned char flags; | 34 | unsigned char flags; |
33 | unsigned char pts1; | 35 | unsigned char pts1; |
34 | unsigned char pts2; | 36 | unsigned char pts2; |