Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751916AbdDCCoF (ORCPT ); Sun, 2 Apr 2017 22:44:05 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:41548 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370AbdDCCoE (ORCPT ); Sun, 2 Apr 2017 22:44:04 -0400 Date: Sun, 02 Apr 2017 19:44:02 -0700 (PDT) Message-Id: <20170402.194402.639435117868426012.davem@davemloft.net> To: lkp@intel.com Cc: salil.mehta@huawei.com, kbuild-all@01.org, yisen.zhuang@huawei.com, mehta.salil.lnk@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, lipeng321@huawei.com Subject: Re: [PATCH] net: hns: fix boolreturn.cocci warnings From: David Miller In-Reply-To: <20170331235055.GA28462@lkp-wsm-ep1> References: <201704010733.8LNMN4m7%fengguang.wu@intel.com> <20170330153106.14344-9-salil.mehta@huawei.com> <20170331235055.GA28462@lkp-wsm-ep1> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 02 Apr 2017 19:02:47 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 500 Lines: 13 From: kbuild test robot Date: Sat, 1 Apr 2017 07:50:55 +0800 > drivers/net/ethernet/hisilicon/hns/hns_enet.c:1548:8-9: WARNING: return of 0/1 in function 'hns_enable_serdes_lb' with return type bool > > Return statements in functions returning bool should use > true/false instead of 1/0. > Generated by: scripts/coccinelle/misc/boolreturn.cocci > > CC: lipeng > Signed-off-by: Fengguang Wu This doesn't apply to any of my trees.