[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] init: drop invbool_param()
commit 1be853024d79ef46748c7ced1684000dd708cc8c Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Thu Feb 11 16:42:24 2016 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Feb 11 16:42:24 2016 +0100 init: drop invbool_param() There are now no users. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/common/kernel.c | 5 +---- xen/include/xen/init.h | 5 ----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 6a3196a..0618da2 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -121,12 +121,9 @@ void __init cmdline_parse(const char *cmdline) simple_strtoll(optval, NULL, 0)); break; case OPT_BOOL: - case OPT_INVBOOL: if ( !parse_bool(optval) ) bool_assert = !bool_assert; - assign_integer_param( - param, - (param->type == OPT_BOOL) == bool_assert); + assign_integer_param(param, bool_assert); break; case OPT_SIZE: assign_integer_param( diff --git a/xen/include/xen/init.h b/xen/include/xen/init.h index 7072013..6081102 100644 --- a/xen/include/xen/init.h +++ b/xen/include/xen/init.h @@ -78,7 +78,6 @@ struct kernel_param { OPT_STR, OPT_UINT, OPT_BOOL, - OPT_INVBOOL, OPT_SIZE, OPT_CUSTOM } type; @@ -98,10 +97,6 @@ extern struct kernel_param __setup_start, __setup_end; __setup_str __setup_str_##_var[] = _name; \ __kparam __setup_##_var = \ { __setup_str_##_var, OPT_BOOL, &_var, sizeof(_var) } -#define invbool_param(_name, _var) \ - __setup_str __setup_str_##_var[] = _name; \ - __kparam __setup_##_var = \ - { __setup_str_##_var, OPT_INVBOOL, &_var, sizeof(_var) } #define integer_param(_name, _var) \ __setup_str __setup_str_##_var[] = _name; \ __kparam __setup_##_var = \ -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |