]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/sched: address violation of MISRA C Rule 8.2
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Fri, 14 Feb 2025 20:45:22 +0000 (21:45 +0100)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 4 Mar 2025 00:14:13 +0000 (16:14 -0800)
Rule 8.2 states: "Function types shall be in prototype form with
named parameters".

The parameter name is missing from the function pointer type
that constitutes the first parameter.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
xen/common/sched/rt.c

index f368e0fdd5a5eb2c102783eeecc1845135665fd5..7b1f64a779eaadae3de3dde64b264cddad4ecf22 100644 (file)
@@ -500,7 +500,7 @@ deadline_queue_remove(struct list_head *queue, struct list_head *elem)
 }
 
 static inline bool
-deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *),
+deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *elem),
                       struct rt_unit *svc, struct list_head *elem,
                       struct list_head *queue)
 {