Re: [dm:for-next 8/9] drivers//md/dm-log-writes.c:279:17: note: in expansion of macro 'min'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 24 2017 at  5:50pm -0400,
Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx> 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

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux