[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 08/52] xen/arch/x86/genapic/probe.c: let custom parameter parsing routines return errno
Modify the custom parameter parsing routines in: xen/arch/x86/genapic/probe.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich <jbeulich@xxxxxxxx> Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/arch/x86/genapic/probe.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/genapic/probe.c b/xen/arch/x86/genapic/probe.c index 9a147ff64a..c3a3b85cd6 100644 --- a/xen/arch/x86/genapic/probe.c +++ b/xen/arch/x86/genapic/probe.c @@ -44,12 +44,16 @@ void __init generic_bigsmp_probe(void) } } -static void __init genapic_apic_force(char *str) +static int __init genapic_apic_force(char *str) { int i; 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]; + return 0; + } + + return -EINVAL; } custom_param("apic", genapic_apic_force); -- 2.12.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |