diff options
| author | Peter Oruba <peter.oruba@amd.com> | 2008-07-28 12:44:14 -0400 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 13:57:53 -0400 | 
| commit | 8e61028dfdc6b8ca996abfe8f9baef6792ea2904 (patch) | |
| tree | 60282fa649b132760428fe70e940830842e1d4e9 | |
| parent | 9a56a0f80b52cb41c5e0add47c7ce0bb2ef25eb0 (diff) | |
x86: typedef removal
Removed typedefs. No functional changes to the code.
Signed-off-by: Peter Oruba <peter.oruba@amd.com>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
| -rw-r--r-- | arch/x86/kernel/microcode.c | 24 | ||||
| -rw-r--r-- | include/asm-x86/microcode.h | 3 | 
2 files changed, 12 insertions, 15 deletions
| diff --git a/arch/x86/kernel/microcode.c b/arch/x86/kernel/microcode.c index 0d654bd32928..74e6a77bf190 100644 --- a/arch/x86/kernel/microcode.c +++ b/arch/x86/kernel/microcode.c | |||
| @@ -102,17 +102,17 @@ MODULE_LICENSE("GPL"); | |||
| 102 | #define MICROCODE_VERSION "1.14a" | 102 | #define MICROCODE_VERSION "1.14a" | 
| 103 | 103 | ||
| 104 | #define DEFAULT_UCODE_DATASIZE (2000) /* 2000 bytes */ | 104 | #define DEFAULT_UCODE_DATASIZE (2000) /* 2000 bytes */ | 
| 105 | #define MC_HEADER_SIZE (sizeof (microcode_header_t)) /* 48 bytes */ | 105 | #define MC_HEADER_SIZE (sizeof (struct microcode_header)) /* 48 bytes */ | 
| 106 | #define DEFAULT_UCODE_TOTALSIZE (DEFAULT_UCODE_DATASIZE + MC_HEADER_SIZE) /* 2048 bytes */ | 106 | #define DEFAULT_UCODE_TOTALSIZE (DEFAULT_UCODE_DATASIZE + MC_HEADER_SIZE) /* 2048 bytes */ | 
| 107 | #define EXT_HEADER_SIZE (sizeof (struct extended_sigtable)) /* 20 bytes */ | 107 | #define EXT_HEADER_SIZE (sizeof (struct extended_sigtable)) /* 20 bytes */ | 
| 108 | #define EXT_SIGNATURE_SIZE (sizeof (struct extended_signature)) /* 12 bytes */ | 108 | #define EXT_SIGNATURE_SIZE (sizeof (struct extended_signature)) /* 12 bytes */ | 
| 109 | #define DWSIZE (sizeof (u32)) | 109 | #define DWSIZE (sizeof (u32)) | 
| 110 | #define get_totalsize(mc) \ | 110 | #define get_totalsize(mc) \ | 
| 111 | (((microcode_t *)mc)->hdr.totalsize ? \ | 111 | (((struct microcode *)mc)->hdr.totalsize ? \ | 
| 112 | ((microcode_t *)mc)->hdr.totalsize : DEFAULT_UCODE_TOTALSIZE) | 112 | ((struct microcode *)mc)->hdr.totalsize : DEFAULT_UCODE_TOTALSIZE) | 
| 113 | #define get_datasize(mc) \ | 113 | #define get_datasize(mc) \ | 
| 114 | (((microcode_t *)mc)->hdr.datasize ? \ | 114 | (((struct microcode *)mc)->hdr.datasize ? \ | 
| 115 | ((microcode_t *)mc)->hdr.datasize : DEFAULT_UCODE_DATASIZE) | 115 | ((struct microcode *)mc)->hdr.datasize : DEFAULT_UCODE_DATASIZE) | 
| 116 | 116 | ||
| 117 | #define sigmatch(s1, s2, p1, p2) \ | 117 | #define sigmatch(s1, s2, p1, p2) \ | 
| 118 | (((s1) == (s2)) && (((p1) & (p2)) || (((p1) == 0) && ((p2) == 0)))) | 118 | (((s1) == (s2)) && (((p1) & (p2)) || (((p1) == 0) && ((p2) == 0)))) | 
| @@ -130,7 +130,7 @@ static struct ucode_cpu_info { | |||
| 130 | unsigned int sig; | 130 | unsigned int sig; | 
| 131 | unsigned int pf; | 131 | unsigned int pf; | 
| 132 | unsigned int rev; | 132 | unsigned int rev; | 
| 133 | microcode_t *mc; | 133 | struct microcode *mc; | 
| 134 | } ucode_cpu_info[NR_CPUS]; | 134 | } ucode_cpu_info[NR_CPUS]; | 
| 135 | 135 | ||
| 136 | static void collect_cpu_info(int cpu_num) | 136 | static void collect_cpu_info(int cpu_num) | 
| @@ -171,7 +171,7 @@ static void collect_cpu_info(int cpu_num) | |||
| 171 | } | 171 | } | 
| 172 | 172 | ||
| 173 | static inline int microcode_update_match(int cpu_num, | 173 | static inline int microcode_update_match(int cpu_num, | 
| 174 | microcode_header_t *mc_header, int sig, int pf) | 174 | struct microcode_header *mc_header, int sig, int pf) | 
| 175 | { | 175 | { | 
| 176 | struct ucode_cpu_info *uci = ucode_cpu_info + cpu_num; | 176 | struct ucode_cpu_info *uci = ucode_cpu_info + cpu_num; | 
| 177 | 177 | ||
| @@ -183,7 +183,7 @@ static inline int microcode_update_match(int cpu_num, | |||
| 183 | 183 | ||
| 184 | static int microcode_sanity_check(void *mc) | 184 | static int microcode_sanity_check(void *mc) | 
| 185 | { | 185 | { | 
| 186 | microcode_header_t *mc_header = mc; | 186 | struct microcode_header *mc_header = mc; | 
| 187 | struct extended_sigtable *ext_header = NULL; | 187 | struct extended_sigtable *ext_header = NULL; | 
| 188 | struct extended_signature *ext_sig; | 188 | struct extended_signature *ext_sig; | 
| 189 | unsigned long total_size, data_size, ext_table_size; | 189 | unsigned long total_size, data_size, ext_table_size; | 
| @@ -268,7 +268,7 @@ static int microcode_sanity_check(void *mc) | |||
| 268 | static int get_maching_microcode(void *mc, int cpu) | 268 | static int get_maching_microcode(void *mc, int cpu) | 
| 269 | { | 269 | { | 
| 270 | struct ucode_cpu_info *uci = ucode_cpu_info + cpu; | 270 | struct ucode_cpu_info *uci = ucode_cpu_info + cpu; | 
| 271 | microcode_header_t *mc_header = mc; | 271 | struct microcode_header *mc_header = mc; | 
| 272 | struct extended_sigtable *ext_header; | 272 | struct extended_sigtable *ext_header; | 
| 273 | unsigned long total_size = get_totalsize(mc_header); | 273 | unsigned long total_size = get_totalsize(mc_header); | 
| 274 | int ext_sigcount, i; | 274 | int ext_sigcount, i; | 
| @@ -355,7 +355,7 @@ static unsigned int user_buffer_size; /* it's size */ | |||
| 355 | 355 | ||
| 356 | static long get_next_ucode(void **mc, long offset) | 356 | static long get_next_ucode(void **mc, long offset) | 
| 357 | { | 357 | { | 
| 358 | microcode_header_t mc_header; | 358 | struct microcode_header mc_header; | 
| 359 | unsigned long total_size; | 359 | unsigned long total_size; | 
| 360 | 360 | ||
| 361 | /* No more data */ | 361 | /* No more data */ | 
| @@ -497,13 +497,13 @@ MODULE_ALIAS_MISCDEV(MICROCODE_MINOR); | |||
| 497 | static long get_next_ucode_from_buffer(void **mc, const u8 *buf, | 497 | static long get_next_ucode_from_buffer(void **mc, const u8 *buf, | 
| 498 | unsigned long size, long offset) | 498 | unsigned long size, long offset) | 
| 499 | { | 499 | { | 
| 500 | microcode_header_t *mc_header; | 500 | struct microcode_header *mc_header; | 
| 501 | unsigned long total_size; | 501 | unsigned long total_size; | 
| 502 | 502 | ||
| 503 | /* No more data */ | 503 | /* No more data */ | 
| 504 | if (offset >= size) | 504 | if (offset >= size) | 
| 505 | return 0; | 505 | return 0; | 
| 506 | mc_header = (microcode_header_t *)(buf + offset); | 506 | mc_header = (struct microcode_header *)(buf + offset); | 
| 507 | total_size = get_totalsize(mc_header); | 507 | total_size = get_totalsize(mc_header); | 
| 508 | 508 | ||
| 509 | if (offset + total_size > size) { | 509 | if (offset + total_size > size) { | 
| diff --git a/include/asm-x86/microcode.h b/include/asm-x86/microcode.h index 5a0556855154..1519ef0674bb 100644 --- a/include/asm-x86/microcode.h +++ b/include/asm-x86/microcode.h | |||
| @@ -16,9 +16,6 @@ struct microcode { | |||
| 16 | unsigned int bits[0]; | 16 | unsigned int bits[0]; | 
| 17 | }; | 17 | }; | 
| 18 | 18 | ||
| 19 | typedef struct microcode microcode_t; | ||
| 20 | typedef struct microcode_header microcode_header_t; | ||
| 21 | |||
| 22 | /* microcode format is extended from prescott processors */ | 19 | /* microcode format is extended from prescott processors */ | 
| 23 | struct extended_signature { | 20 | struct extended_signature { | 
| 24 | unsigned int sig; | 21 | unsigned int sig; | 
