Modify the custom parameter parsing routines in: xen/common/core_parking.c
to indicate whether the parameter value was parsed successfully. Cc: Andrew Cooper <andrew.coop...@citrix.com> Cc: George Dunlap <george.dun...@eu.citrix.com> Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Jan Beulich <jbeul...@suse.com> Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Cc: Stefano Stabellini <sstabell...@kernel.org> Cc: Tim Deegan <t...@xen.org> Cc: Wei Liu <wei.l...@citrix.com> Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- xen/common/core_parking.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/common/core_parking.c b/xen/common/core_parking.c index de269e06c2..b07a157ff9 100644 --- a/xen/common/core_parking.c +++ b/xen/common/core_parking.c @@ -41,14 +41,16 @@ static enum core_parking_controller { PERFORMANCE_FIRST } core_parking_controller = POWER_FIRST; -static void __init setup_core_parking_option(char *str) +static int __init setup_core_parking_option(char *str) { if ( !strcmp(str, "power") ) core_parking_controller = POWER_FIRST; else if ( !strcmp(str, "performance") ) core_parking_controller = PERFORMANCE_FIRST; else - return; + return -EINVAL; + + return 0; } custom_param("core_parking", setup_core_parking_option); -- 2.12.3 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel