Message ID | 5fdc284b6451dd19f2e84db97d12ab45efaf3bfd.1690295729.git.federico.serafini@bugseng.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [XEN] xen/cpu: change parameter name in __cpu_up() declaration | expand |
On 25.07.2023 16:43, Federico Serafini wrote: > Change parameter name from 'cpunum' to 'cpu' to keep consistency with > the name used in the corresponding definitions thus addressing a > violation of MISRA C:2012 Rule 8.3: "All declarations of an object or > function shall use the same names and type qualifiers". > > No functional changes. > > Signed-off-by: Federico Serafini <federico.serafini@bugseng.com> Acked-by: Jan Beulich <jbeulich@suse.com>
diff --git a/xen/include/xen/cpu.h b/xen/include/xen/cpu.h index e8eeb217a0..e1d4eb5967 100644 --- a/xen/include/xen/cpu.h +++ b/xen/include/xen/cpu.h @@ -69,7 +69,7 @@ int disable_nonboot_cpus(void); void enable_nonboot_cpus(void); /* Private arch-dependent helpers for CPU hotplug. */ -int __cpu_up(unsigned int cpunum); +int __cpu_up(unsigned int cpu); void __cpu_disable(void); void __cpu_die(unsigned int cpu);
Change parameter name from 'cpunum' to 'cpu' to keep consistency with the name used in the corresponding definitions thus addressing a violation of MISRA C:2012 Rule 8.3: "All declarations of an object or function shall use the same names and type qualifiers". No functional changes. Signed-off-by: Federico Serafini <federico.serafini@bugseng.com> --- xen/include/xen/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)