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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220802030749.1044-1-liutie4@huawei.com>
Date:   Tue, 2 Aug 2022 11:07:49 +0800
From:   Tie Liu <liutie4@...wei.com>
To:     <jstultz@...gle.com>, <tglx@...utronix.de>, <sboyd@...nel.org>
CC:     <linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <hewenliang4@...wei.com>, <linfeilong@...wei.com>
Subject: [PATCH] clocksource: Resolve some coding specification issues about spaces

Some spaces were not used in accordance with current 
encoding specifications, so I tried to modify them.

Signed-off-by: Liu Tie <liutie4@...wei.com>
---
 kernel/time/clocksource.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index cee5da1e5..46b738696 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -47,7 +47,7 @@ void
 clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec)
 {
 	u64 tmp;
-	u32 sft, sftacc= 32;
+	u32 sft, sftacc = 32;
 
 	/*
 	 * Calculate the shift factor which is limiting the conversion
@@ -55,7 +55,7 @@ clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec)
 	 */
 	tmp = ((u64)maxsec * from) >> 32;
 	while (tmp) {
-		tmp >>=1;
+		tmp >>= 1;
 		sftacc--;
 	}
 
@@ -863,7 +863,7 @@ static u32 clocksource_max_adjustment(struct clocksource *cs)
 	 * We won't try to correct for more than 11% adjustments (110,000 ppm),
 	 */
 	ret = (u64)cs->mult * 11;
-	do_div(ret,100);
+	do_div(ret, 100);
 	return (u32)ret;
 }
 
@@ -1446,7 +1446,7 @@ device_initcall(init_clocksource_sysfs);
  * Takes a clocksource= boot argument and uses it
  * as the clocksource override name.
  */
-static int __init boot_override_clocksource(char* str)
+static int __init boot_override_clocksource(char *str)
 {
 	mutex_lock(&clocksource_mutex);
 	if (str)
@@ -1464,7 +1464,7 @@ __setup("clocksource=", boot_override_clocksource);
  * DEPRECATED! Takes a clock= boot argument and uses it
  * as the clocksource override name
  */
-static int __init boot_override_clock(char* str)
+static int __init boot_override_clock(char *str)
 {
 	if (!strcmp(str, "pmtmr")) {
 		pr_warn("clock=pmtmr is deprecated - use clocksource=acpi_pm\n");
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ