From: David Sterba <dsterba@suse.cz>
To: 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: Thu, 10 Oct 2024 22:38:52 +0200 [thread overview]
Message-ID: <20241010203852.GU1609@twin.jikos.cz> (raw)
In-Reply-To: <20241010-const-range-v1-1-afb6e4bfd8ce@intel.com>
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.
> Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: David Sterba <dsterba@suse.com>
next prev parent reply other threads:[~2024-10-10 20:38 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 [this message]
2024-10-11 14:29 ` Ira Weiny
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=20241010203852.GU1609@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=ira.weiny@intel.com \
--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