[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v2] xen/sched: mechanical renaming to address MISRA C:2012 Rule 5.3
- To: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 25 Jul 2023 16:52:29 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H9ZB3Cp0sgSI1qvkZRQIy33j9qWeKYMHFTtR0g54CNc=; b=aQGUGIL1BM43VF7i/2BXR4KA2+aIu2mchWXhGpDdV5oL7Xn1MP7FpjaTn3ZGiGpo63fdF4CFuhAzHbmij4o3L1wcs7iBM86nfHbTOTjVeeEwWIRBnvxK7EsAOKGiyQWvVSNqsDJyzO2IRVoc33p+hXN5qIzCK1ha01nNeptec9NDowSRDN/gkyFMs15WhyIbmHctlWDLg0FTKxvzcVT9cYGauDbkIK/z2tTtGzL94aplMWPVl/N2AXIvNlHmvsgPRCwsJy/o8LFJJXmK8TkG4P4L6/2SAZkRB5h7CJJiwnwB+5gBeNFp2KIep5/ISojSPYHZ/V3VZjhGXr3+CzkIwQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sl9mJzCwpY7uoyPwhPLfYUeNJw2YuASmYw9zkR7JpWhv9l1xFJAsFCSURSDIT1x+WXw1HNyQTdKuI6h2sPZeuME5ExQmMxR6XukUN8MUp9frerZ41vZHIpysrPiNeCR0WkFlefx+XGAba7V2+pa8Ss1PIZXuR4l0GI7X2NbZvZHqJ72Im+cTUf7ljPv3OrU/VA4dythoMqdhg6YvDxzJ+zL1toWse//FOn32X/+0Xqe4YRbJUl7hIS91qvljyihBXsz623xr9IA9b+bmuXdvGQH49dhkNuDJEWwbW++22vkzjtKobcvhW9azJXhIWS9bwVH9XmaY+oiP9cwXXEX9cw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: sstabellini@xxxxxxxxxx, michal.orzel@xxxxxxx, xenia.ragiadakou@xxxxxxx, ayan.kumar.halder@xxxxxxx, consulting@xxxxxxxxxxx, George Dunlap <george.dunlap@xxxxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 25 Jul 2023 14:53:15 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 25.07.2023 11:08, Nicola Vetrini wrote:
> @@ -99,14 +99,15 @@ static void sched_set_affinity(
> struct sched_unit *unit, const cpumask_t *hard, const cpumask_t *soft);
>
> static struct sched_resource *cf_check
> -sched_idle_res_pick(const struct scheduler *ops, const struct sched_unit
> *unit)
> +sched_idle_res_pick(
> + const struct scheduler *ops, const struct sched_unit *unit)
> {
> return unit->res;
> }
>
> static void *cf_check
> -sched_idle_alloc_udata(const struct scheduler *ops, struct sched_unit *unit,
> - void *dd)
> +sched_idle_alloc_udata(
> + const struct scheduler *ops, struct sched_unit *unit, void *dd)
> {
> /* Any non-NULL pointer is fine here. */
> return ZERO_BLOCK_PTR;
These look like stray changes, presumably resulting from you not fully
undoing earlier changes.
> --- a/xen/common/sched/credit2.c
> +++ b/xen/common/sched/credit2.c
> @@ -3809,7 +3809,8 @@ csched2_dump(const struct scheduler *ops)
> struct list_head *iter_sdom;
> struct csched2_private *prv = csched2_priv(ops);
> unsigned long flags;
> - unsigned int j, loop;
> + unsigned int loop;
> + int j;
This looks like a stray change too, just that it's unclear where it is
coming from.
> @@ -3884,7 +3885,7 @@ csched2_dump(const struct scheduler *ops)
> list_for_each_entry ( rqd, &prv->rql, rql )
> {
> struct list_head *iter, *runq = &rqd->runq;
> - int loop = 0;
> + loop = 0;
>
> /* We need the lock to scan the runqueue. */
> spin_lock(&rqd->lock);
With the switch from declaration to statement, a blank line wants
inserting (to separate the remaining declaration from the
statements).
Jan
|