From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935286AbdEKOuu (ORCPT ); Thu, 11 May 2017 10:50:50 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:34102 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932613AbdEKOuL (ORCPT ); Thu, 11 May 2017 10:50:11 -0400 Date: Thu, 11 May 2017 10:50:09 -0400 From: Tejun Heo To: Arnd Bergmann Cc: Adam Manzanares , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ata: avoid gcc-7 warning in ata_timing_quantize Message-ID: <20170511145009.GB30473@htj.duckdns.org> References: <20170511125145.265782-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170511125145.265782-1-arnd@arndb.de> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Arnd. On Thu, May 11, 2017 at 02:51:25PM +0200, Arnd Bergmann wrote: > gcc-7 warns about the result of a constant multiplication used as > a boolean: > > drivers/ata/libata-core.c: In function 'ata_timing_quantize': > drivers/ata/libata-core.c:3164:30: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] > > This slightly rearranges the macro to simplify the code and avoid > the warning at the same time. > > Signed-off-by: Arnd Bergmann Heh, that's an interesting new warning. Appied to libata/for-4.12-fixes. Thanks. -- tejun