From: Mike Snitzer <snitzer@redhat.com>
To: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: dm-devel@redhat.com, kbuild test robot <fengguang.wu@intel.com>,
kbuild-all@01.org
Subject: Re: [dm:for-next 8/9] drivers//md/dm-log-writes.c:279:17: note: in expansion of macro 'min'
Date: Tue, 24 Oct 2017 18:55:04 -0400 [thread overview]
Message-ID: <20171024225504.GA23859@redhat.com> (raw)
In-Reply-To: <20171024215003.GA6963@linux.intel.com>
On Tue, Oct 24 2017 at 5:50pm -0400,
Ross Zwisler <ross.zwisler@linux.intel.com> wrote:
> So I think this just needs to be
>
> pg_datalen = min((int)datalen, PAGE_SIZE);
>
> since the resulting pg_datalen is also an int.
>
> Mike can you fix up, or would you like an updated patch (or follow-on patch)
> from me?
I went with: pg_datalen = min_t(int, datalen, PAGE_SIZE);
I've fixed it up and pushed it out to linux-next.
Mike
prev parent reply other threads:[~2017-10-24 22:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-24 21:44 [dm:for-next 8/9] drivers//md/dm-log-writes.c:279:17: note: in expansion of macro 'min' kbuild test robot
2017-10-24 21:50 ` Ross Zwisler
2017-10-24 22:55 ` Mike Snitzer [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=20171024225504.GA23859@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=ross.zwisler@linux.intel.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