reduce warnings in MCP55 and Fam10 code
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5325 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
9b70cb6243
commit
8b547b1980
@ -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);
|
||||
|
@ -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];
|
||||
|
Reference in New Issue
Block a user