From: Ira Weiny <ira.weiny@intel.com>
To: David Sterba <dsterba@suse.cz>, Ira Weiny <ira.weiny@intel.com>
Cc: David Sterba <dsterba@suse.com>, Chris Mason <clm@fb.com>,
Josef Bacik <josef@toxicpanda.com>, <linux-btrfs@vger.kernel.org>,
<linux-cxl@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
David Sterba <dsterba@suse.cz>
Subject: Re: [PATCH] kernel/range: Const-ify range_contains parameters
Date: Fri, 11 Oct 2024 09:29:21 -0500 [thread overview]
Message-ID: <67093641c8654_9533f29461@iweiny-mobl.notmuch> (raw)
In-Reply-To: <20241010203852.GU1609@twin.jikos.cz>
David Sterba wrote:
> On Thu, Oct 10, 2024 at 10:24:42AM -0500, Ira Weiny wrote:
> > range_contains() does not modify the range values. David suggested it
> > is safer to keep those parameters as const.[1]
> >
> > Make range parameters const
> >
> > Link: https://lore.kernel.org/all/20241008161032.GB1609@twin.jikos.cz/ [1]
> > Suggested-by: David Sterba <dsterba@suse.cz>
>
> You can drop the above line.
Done.
>
> > Signed-off-by: Ira Weiny <ira.weiny@intel.com>
>
> Reviewed-by: David Sterba <dsterba@suse.com>
Queued in the cxl-next tree.
Thanks!
Ira
prev parent reply other threads:[~2024-10-11 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 15:24 [PATCH] kernel/range: Const-ify range_contains parameters Ira Weiny
2024-10-10 19:55 ` Dan Williams
2024-10-10 20:38 ` David Sterba
2024-10-11 14:29 ` Ira Weiny [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=67093641c8654_9533f29461@iweiny-mobl.notmuch \
--to=ira.weiny@intel.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=dsterba@suse.cz \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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).