From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: linux-4.2-rc4/drivers/md/dm-cache-policy-smq.c:1689: bad if test ? Date: Mon, 27 Jul 2015 08:14:13 -0400 Message-ID: <20150727121413.GA2312@redhat.com> References: Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: David Binderman Cc: "dm-devel@redhat.com" , Alasdair Kergon List-Id: dm-devel.ids On Mon, Jul 27 2015 at 3:00P -0400, David Binderman wrote: > Hello there, > = > [linux-4.2-rc4/drivers/md/dm-cache-policy-smq.c:1689]: (warning) Logical = conjunction always evaluates to false: !EXPR && EXPR. > = > Source code is > = > =A0 if (!mq->cache_hit_bits && mq->cache_hit_bits) { > = > Maybe > = > =A0 if (!mq->cache_hit_bits) { > = > was intended. Thanks, was fixed with this, will go upstream for 4.2-rc5: https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/com= mit/?h=3Dfor-next&id=3D134bf30c06f057d6b8d90132e8f8b3cd2be79572