lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211201071534.35488-1-yinan@linux.alibaba.com>
Date:   Wed,  1 Dec 2021 15:15:34 +0800
From:   Yinan Liu <yinan@...ux.alibaba.com>
To:     peterz@...radead.org
Cc:     mingo@...hat.com, linux-kernel@...r.kernel.org
Subject: [PATCH] sched/pelt: fix code alignment problem

link:https://lore.kernel.org/lkml/20200219135442.18107-8-mgorman@techsingularity.net/

runnable_load_avg is no more used and it is removed by this patch.
It makes extra spaces appear in the code.

before
	shares   = calc_group_shares(gcfs_rq);
	runnable = calc_group_runnable(gcfs_rq, shares);

current
	shares   = calc_group_shares(gcfs_rq);

The original three spaces were meant to be aligned, but
it doesn't make sense now.

Signed-off-by: Yinan Liu <yinan@...ux.alibaba.com>
---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 44c452072a1b..a344117d5aaf 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3219,7 +3219,7 @@ static void update_cfs_group(struct sched_entity *se)
 	if (likely(se->load.weight == shares))
 		return;
 #else
-	shares   = calc_group_shares(gcfs_rq);
+	shares = calc_group_shares(gcfs_rq);
 #endif
 
 	reweight_entity(cfs_rq_of(se), se, shares);
-- 
2.19.1.6.gb485710b

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ