From: Stephen Boyd <sboyd@kernel.org>
To: inochiama@gmail.com, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, mturquette@baylibre.com,
unicorn_wang@outlook.com, xiaopeitux@foxmail.com
Cc: Pei Xiao <xiaopei01@kylinos.cn>
Subject: Re: [PATCH] clk: sophgo: Fixes Coccinelle/coccicheck warnings reported by do_div.cocci.
Date: Thu, 19 Jun 2025 16:50:21 -0700 [thread overview]
Message-ID: <175037702167.4372.8278896635195536448@lazor> (raw)
In-Reply-To: <tencent_D5D35C992B70843CF70F5533E49717D24906@qq.com>
Quoting xiaopeitux@foxmail.com (2025-04-06 20:21:46)
> From: Pei Xiao <xiaopei01@kylinos.cn>
>
> cocci warnings:
> drivers/clk/sophgo/clk-sg2042-pll.c:217:1-7: WARNING:
> do_div() does a 64-by-32 division, please consider using div64_ul
> instead.
>
> drivers/clk/sophgo/clk-sg2042-pll.c:160:1-7: WARNING:
> do_div() does a 64-by-32 division, please consider using div64_u64
> instead.
>
> replace do_div() with div64_*() which doesn't implicitly cast the divisor.
>
> Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
> ---
Applied to clk-next
prev parent reply other threads:[~2025-06-19 23:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 3:21 xiaopeitux
2025-04-07 3:55 ` Inochi Amaoto
2025-04-07 9:01 ` Chen Wang
2025-04-25 13:06 ` Chen Wang
2025-06-19 23:50 ` Stephen Boyd [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=175037702167.4372.8278896635195536448@lazor \
--to=sboyd@kernel.org \
--cc=inochiama@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=unicorn_wang@outlook.com \
--cc=xiaopei01@kylinos.cn \
--cc=xiaopeitux@foxmail.com \
/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®