On 26.02.2020 13:46, Juergen Gross wrote: > Support of other variable sizes than that of normal bool ones for > boolean_parameter() don't make sense, so catch any other sized > variables at build time.
Nit: boolean_param() > @@ -46,7 +48,8 @@ extern const struct kernel_param __param_start[], > __param_end[]; > __kparam __setup_##_var = \ > { .name = __setup_str_##_var, \ > .type = OPT_BOOL, \ > - .len = sizeof(_var), \ > + .len = sizeof(_var) + \ > + BUILD_BUG_ON_ZERO(sizeof(_var) != sizeof(bool)), \ I was first going to suggest to see about tightening this to do an actual type check, but I think we have a number of cases where boolean_param() actually involves int8_t variables, to allow us to detect whether a command line option was used. Hence Reviewed-by: Jan Beulich <jbeul...@suse.com> Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel