From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932457AbdIFN6T (ORCPT ); Wed, 6 Sep 2017 09:58:19 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:36963 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932299AbdIFN6P (ORCPT ); Wed, 6 Sep 2017 09:58:15 -0400 Date: Wed, 6 Sep 2017 06:58:12 -0700 From: Christoph Hellwig To: Arnd Bergmann Cc: Doug Ledford , Sean Hefty , Hal Rosenstock , Matan Barak , Yishai Hadas , Leon Romanovsky , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [RESEND] IB/uverbs: fix gcc-7 type warning Message-ID: <20170906135812.GA1213@infradead.org> References: <20170906134558.3279199-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170906134558.3279199-1-arnd@arndb.de> User-Agent: Mutt/1.8.3 (2017-05-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 06, 2017 at 03:45:31PM +0200, Arnd Bergmann wrote: > We get a harmless warning about the fact that we use the result of a > multiplication as a condition: Please just turn the thing into a function while you're at it. I'm not even sure it needs to be inline..