From: Paolo Abeni <pabeni@redhat.com>
To: Solomon Tan <solomonbstoner@protonmail.ch>,
pshelar@ovn.org, davem@davemloft.net, kuba@kernel.org,
netdev@vger.kernel.org, dev@openvswitch.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] openvswitch: meter: Remove unnecessary int
Date: Thu, 21 Apr 2022 10:47:14 +0200 [thread overview]
Message-ID: <84310b72be223d736c8ac9fc58eb4936a98aa839.camel@redhat.com> (raw)
In-Reply-To: <Yly1t/mE6QAGPS0e@ArchDesktop>
On Mon, 2022-04-18 at 00:50 +0000, Solomon Tan wrote:
> This patch addresses the checkpatch.pl warning that long long is
> preferred over long long int.
Please don't do that. This kind of changes cause e.g. backporting issue
for any later relevant bugfix touching the same area, for no real
benefit.
Documentation/process/2.Process.rst
explicltly states to avoid this kind of patches.
>
> Signed-off-by: Solomon Tan <solomonbstoner@protonmail.ch>
> ---
> net/openvswitch/meter.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/net/openvswitch/meter.c b/net/openvswitch/meter.c
> index 04a060ac7fdf..a790920c11d6 100644
> --- a/net/openvswitch/meter.c
> +++ b/net/openvswitch/meter.c
> @@ -592,8 +592,8 @@ static int ovs_meter_cmd_del(struct sk_buff *skb, struct genl_info *info)
> bool ovs_meter_execute(struct datapath *dp, struct sk_buff *skb,
> struct sw_flow_key *key, u32 meter_id)
> {
> - long long int now_ms = div_u64(ktime_get_ns(), 1000 * 1000);
> - long long int long_delta_ms;
> + long long now_ms = div_u64(ktime_get_ns(), 1000 * 1000);
> + long long long_delta_ms;
> struct dp_meter_band *band;
> struct dp_meter *meter;
> int i, band_exceeded_max = -1;
Additionally the patch is mangled by non plain-text encoding.
For any later submissions (regarding some other different topic) please
ensure that your client/mailer send purely plain-text messages,
Thanks,
Paolo
prev parent reply other threads:[~2022-04-21 8:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-18 0:50 [PATCH] openvswitch: meter: Remove unnecessary int Solomon Tan
2022-04-21 8:47 ` Paolo Abeni [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=84310b72be223d736c8ac9fc58eb4936a98aa839.camel@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=dev@openvswitch.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pshelar@ovn.org \
--cc=solomonbstoner@protonmail.ch \
/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;
as well as URLs for NNTP newsgroup(s).