From nobody Sun Apr 12 02:48:11 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39D18C19F2A for ; Tue, 2 Aug 2022 03:08:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235619AbiHBDIS (ORCPT ); Mon, 1 Aug 2022 23:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231784AbiHBDIA (ORCPT ); Mon, 1 Aug 2022 23:08:00 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19264136; Mon, 1 Aug 2022 20:07:56 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Lxfvt4B0WzWfS0; Tue, 2 Aug 2022 11:03:54 +0800 (CST) Received: from dggpemm500018.china.huawei.com (7.185.36.111) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 2 Aug 2022 11:07:53 +0800 Received: from huawei.com (10.174.176.191) by dggpemm500018.china.huawei.com (7.185.36.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 2 Aug 2022 11:07:52 +0800 From: Tie Liu To: , , CC: , , , Subject: [PATCH] clocksource: Resolve some coding specification issues about spaces Date: Tue, 2 Aug 2022 11:07:49 +0800 Message-ID: <20220802030749.1044-1-liutie4@huawei.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.174.176.191] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500018.china.huawei.com (7.185.36.111) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Some spaces were not used in accordance with current=20 encoding specifications, so I tried to modify them. Signed-off-by: Liu Tie --- 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=3D 32; + u32 sft, sftacc =3D 32; =20 /* * Calculate the shift factor which is limiting the conversion @@ -55,7 +55,7 @@ clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u= 32 to, u32 maxsec) */ tmp =3D ((u64)maxsec * from) >> 32; while (tmp) { - tmp >>=3D1; + tmp >>=3D 1; sftacc--; } =20 @@ -863,7 +863,7 @@ static u32 clocksource_max_adjustment(struct clocksourc= e *cs) * We won't try to correct for more than 11% adjustments (110,000 ppm), */ ret =3D (u64)cs->mult * 11; - do_div(ret,100); + do_div(ret, 100); return (u32)ret; } =20 @@ -1446,7 +1446,7 @@ device_initcall(init_clocksource_sysfs); * Takes a clocksource=3D 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=3D", boot_override_clocksource); * DEPRECATED! Takes a clock=3D 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=3Dpmtmr is deprecated - use clocksource=3Dacpi_pm\n"); --=20 2.27.0