From 8b547b19800ab85c97103c87fedbba7512add7d6 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 30 Mar 2010 09:56:35 +0000 Subject: reduce warnings in MCP55 and Fam10 code Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5325 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/model_10xxx/fidvid.c | 6 +++--- src/cpu/amd/model_10xxx/processor_name.c | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/cpu') diff --git a/src/cpu/amd/model_10xxx/fidvid.c b/src/cpu/amd/model_10xxx/fidvid.c index b1d6bae7a6..fb8e7da76f 100644 --- a/src/cpu/amd/model_10xxx/fidvid.c +++ b/src/cpu/amd/model_10xxx/fidvid.c @@ -25,21 +25,21 @@ // if we are tight of CAR stack, disable it #define FAM10_SET_FIDVID_STORE_AP_APICID_AT_FIRST 1 -static void print_debug_fv(const char *str, u32 val) +static inline void print_debug_fv(const char *str, u32 val) { #if FAM10_SET_FIDVID_DEBUG == 1 printk(BIOS_DEBUG, "%s%x\n", str, val); #endif } -static void print_debug_fv_8(const char *str, u8 val) +static inline void print_debug_fv_8(const char *str, u8 val) { #if FAM10_SET_FIDVID_DEBUG == 1 printk(BIOS_DEBUG, "%s%02x\n", str, val); #endif } -static void print_debug_fv_64(const char *str, u32 val, u32 val2) +static inline void print_debug_fv_64(const char *str, u32 val, u32 val2) { #if FAM10_SET_FIDVID_DEBUG == 1 printk(BIOS_DEBUG, "%s%x%x\n", str, val, val2); diff --git a/src/cpu/amd/model_10xxx/processor_name.c b/src/cpu/amd/model_10xxx/processor_name.c index 29bc50802d..15604de536 100644 --- a/src/cpu/amd/model_10xxx/processor_name.c +++ b/src/cpu/amd/model_10xxx/processor_name.c @@ -120,13 +120,14 @@ static const struct str_s String2_socket_AM2[] = { }; -char const *unknown = "AMD Processor model unknown"; -char const *unknown2 = " type unknown"; -char const *sample = "AMD Engineering Sample"; -char const *thermal = "AMD Thermal Test Kit"; +const char const *unknown = "AMD Processor model unknown"; +const char const *unknown2 = " type unknown"; +const char const *sample = "AMD Engineering Sample"; +const char const *thermal = "AMD Thermal Test Kit"; -int strcpymax(char *dst, const char *src, int buflen) { +static int strcpymax(char *dst, const char *src, int buflen) +{ int i; for (i = 0; i < buflen && src[i]; i++) dst[i] = src[i]; -- cgit v1.2.3