Modify the custom parameter parsing routines in:
xen/arch/x86/genapic/probe.c
to indicate whether the parameter value was parsed successfully.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
}
}
-static void __init genapic_apic_force(char *str)
+static int __init genapic_apic_force(const char *str)
{
- int i;
+ int i, rc = -EINVAL;
+
for (i = 0; apic_probe[i]; i++)
- if (!strcmp(apic_probe[i]->name, str))
+ if (!strcmp(apic_probe[i]->name, str)) {
genapic = apic_probe[i];
+ rc = 0;
+ }
+
+ return rc;
}
custom_param("apic", genapic_apic_force);