Commit 5e4edbb7 authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen

[PATCH] i386: Fix warning in mpparse.c

Fix

linux/arch/i386/kernel/mpparse.c: In function #MP_bus_info#:
linux/arch/i386/kernel/mpparse.c:232: warning: comparison is always false due to limited range of data type
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent 2717941c
...@@ -229,12 +229,14 @@ static void __init MP_bus_info (struct mpc_config_bus *m) ...@@ -229,12 +229,14 @@ static void __init MP_bus_info (struct mpc_config_bus *m)
mpc_oem_bus_info(m, str, translation_table[mpc_record]); mpc_oem_bus_info(m, str, translation_table[mpc_record]);
#if MAX_MP_BUSSES < 256
if (m->mpc_busid >= MAX_MP_BUSSES) { if (m->mpc_busid >= MAX_MP_BUSSES) {
printk(KERN_WARNING "MP table busid value (%d) for bustype %s " printk(KERN_WARNING "MP table busid value (%d) for bustype %s "
" is too large, max. supported is %d\n", " is too large, max. supported is %d\n",
m->mpc_busid, str, MAX_MP_BUSSES - 1); m->mpc_busid, str, MAX_MP_BUSSES - 1);
return; return;
} }
#endif
if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA)-1) == 0) { if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA)-1) == 0) {
mp_bus_id_to_type[m->mpc_busid] = MP_BUS_ISA; mp_bus_id_to_type[m->mpc_busid] = MP_BUS_ISA;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment