mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Mario Leinweber <marioleinweber@web.de>
Cc: mingo@redhat.com, peterz@infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kernel/sched/cpudeadline: Fixed code style errors and warnings
Date: Tue, 13 Feb 2018 13:27:42 +0100	[thread overview]
Message-ID: <20180213122742.tz2j5nkwuopi7unp@gmail.com> (raw)
In-Reply-To: <20180208025359.17695-1-marioleinweber@web.de>


* Mario Leinweber <marioleinweber@web.de> wrote:

> diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c
> index 8d9562d890d3..6a9defebbb54 100644
> --- a/kernel/sched/cpudeadline.c
> +++ b/kernel/sched/cpudeadline.c
> @@ -42,8 +42,9 @@ static void cpudl_heapify_down(struct cpudl *cp, int idx)
>  		return;
>  
>  	/* adapted from lib/prio_heap.c */
> -	while(1) {
> +	while (1) {
>  		u64 largest_dl;
> +
>  		l = left_child(idx);
>  		r = right_child(idx);
>  		largest = idx;
> @@ -131,6 +132,7 @@ int cpudl_find(struct cpudl *cp, struct task_struct *p,
>  		return 1;
>  	} else {
>  		int best_cpu = cpudl_maximum(cp);
> +
>  		WARN_ON(best_cpu != -1 && !cpu_present(best_cpu));
>  
>  		if (cpumask_test_cpu(best_cpu, &p->cpus_allowed) &&
> @@ -205,6 +207,7 @@ void cpudl_set(struct cpudl *cp, int cpu, u64 dl)
>  	old_idx = cp->elements[cpu].idx;
>  	if (old_idx == IDX_INVALID) {
>  		int new_idx = cp->size++;
> +
>  		cp->elements[new_idx].dl = dl;
>  		cp->elements[new_idx].cpu = cpu;
>  		cp->elements[cpu].idx = new_idx;

Your Signed-off-by tag is missing.

Thanks,

	Ingo

      reply	other threads:[~2018-02-13 12:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-08  2:53 Mario Leinweber
2018-02-13 12:27 ` Ingo Molnar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180213122742.tz2j5nkwuopi7unp@gmail.com \
    --to=mingo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marioleinweber@web.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®