diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-09-29 14:56:15 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-09-29 14:56:15 +0000 |
commit | 6e2357676fb9ccf202ac3dbc66c83a040f061a4e (patch) | |
tree | 3cb788b3a5c6866737ea33894ce35ebb4dd80deb /src/cpu/amd/model_fxx/processor_name.c | |
parent | 5e54871375a3416c576d1d1fbdfddda2dbcc7411 (diff) | |
download | coreboot-6e2357676fb9ccf202ac3dbc66c83a040f061a4e.tar.xz |
Remove some warnings.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4686 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/model_fxx/processor_name.c')
-rw-r--r-- | src/cpu/amd/model_fxx/processor_name.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/amd/model_fxx/processor_name.c b/src/cpu/amd/model_fxx/processor_name.c index cab92f73e4..f5372cdf4a 100644 --- a/src/cpu/amd/model_fxx/processor_name.c +++ b/src/cpu/amd/model_fxx/processor_name.c @@ -143,7 +143,7 @@ static inline unsigned int cpuid_ecx(unsigned int op) return ecx; } -static inline void strcpy(char *dst, char *src) +static inline void strcpy(char *dst, const char *src) { while (*src) *dst++ = *src++; } @@ -151,7 +151,9 @@ static inline void strcpy(char *dst, char *src) int init_processor_name(void) { +#if CONFIG_K8_REV_F_SUPPORT == 0 u32 EightBitBrandId; +#endif u32 BrandId; u32 BrandTableIndex; u32 NN; @@ -159,7 +161,7 @@ int init_processor_name(void) msr_t progmsr; int i; - char *processor_name_string=NULL; + const char *processor_name_string=NULL; char program_string[48]; unsigned int *program_values = (unsigned int *)program_string; |