Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41qK3M2lzGzF0Qs for ; Tue, 14 Aug 2018 14:13:51 +1000 (AEST) From: Michael Ellerman To: Mathieu Malaterre , Frederic Barrat Cc: linuxppc-dev , Christophe Lombard , Andrew Donnellan Subject: Re: cxl: remove a dead branch In-Reply-To: References: <20180322210528.22017-1-malat@debian.org> <41ptcv2xyYz9sC7@ozlabs.org> Date: Tue, 14 Aug 2018 14:13:50 +1000 Message-ID: <87d0ullh4x.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mathieu Malaterre writes: > Frederic, > > Could you double check with Michael what is now best to do. I decided it had been long enough (since March), so I just merged it. If Fred et. al. want to do something better they can send me another patch on top of it. cheers > On Mon, Aug 13, 2018 at 1:23 PM Michael Ellerman > wrote: >> >> On Thu, 2018-03-22 at 21:05:28 UTC, Mathieu Malaterre wrote: >> > In commit 14baf4d9c739 ("cxl: Add guest-specific code") the following code >> > was added: >> > >> > if (afu->crs_len < 0) { >> > dev_err(&afu->dev, "Unexpected configuration record size value\n"); >> > return -EINVAL; >> > } >> > >> > However the variable `crs_len` is of type u64 and cannot be compared < 0. >> > Remove the dead code section. Fix the following warning treated as error >> > with W=1: >> > >> > ../drivers/misc/cxl/guest.c:919:19: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits] >> > >> > Signed-off-by: Mathieu Malaterre >> >> Applied to powerpc next, thanks. >> >> https://git.kernel.org/powerpc/c/e4ecafb14fd9cd77d8f4320af1922e >> >> cheers