On 08.12.2022 14:26, Sergey Dyasli wrote: > @@ -648,7 +648,7 @@ static long cf_check microcode_update_helper(void *data) > * this requirement can be relaxed in the future. Right now, this is > * conservative and good. > */ > - ret = stop_machine_run(do_microcode_update, patch, NR_CPUS); > + ret = stop_machine_run(do_microcode_update, (void *)patch, NR_CPUS);
Just as a remark - callback function arguments like this one also would be nice to be allowed to be pointer-to-const, but I guess we'd need to introduce some trickery to allow such despite the lack of function templates (and even if we had such, also to limit duplication of binary code). Jan