Message ID | 5692c7c51de63d67865208be2be7bf011f171540.1690378948.git.federico.serafini@bugseng.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [XEN] xen/kernel: change parameter name in add_taint() definition | expand |
On 26.07.2023 15:58, Federico Serafini wrote: > Change parameter name from 'flag' to 'taint' for consistency with > the corresponding declaration. > This addresses 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/common/kernel.c b/xen/common/kernel.c index 719b08d6c7..fb919f3d9c 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -397,9 +397,9 @@ char *print_tainted(char *str) return str; } -void add_taint(unsigned int flag) +void add_taint(unsigned int taint) { - tainted |= flag; + tainted |= taint; } extern const initcall_t __initcall_start[], __presmp_initcall_end[],
Change parameter name from 'flag' to 'taint' for consistency with the corresponding declaration. This addresses 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/common/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)