From patchwork Thu Jul 19 23:54:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10535767 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C824A600F4 for ; Thu, 19 Jul 2018 23:54:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8D2728927 for ; Thu, 19 Jul 2018 23:54:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA93129A51; Thu, 19 Jul 2018 23:54:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4234128927 for ; Thu, 19 Jul 2018 23:54:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730057AbeGTAkI (ORCPT ); Thu, 19 Jul 2018 20:40:08 -0400 Received: from mga02.intel.com ([134.134.136.20]:23090 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729215AbeGTAkI (ORCPT ); Thu, 19 Jul 2018 20:40:08 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2018 16:54:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,376,1526367600"; d="scan'208";a="59115765" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga006.jf.intel.com with ESMTP; 19 Jul 2018 16:54:37 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1fgIkn-0002it-2t; Fri, 20 Jul 2018 07:54:37 +0800 Date: Fri, 20 Jul 2018 07:54:17 +0800 From: kbuild test robot To: Alexandru Gagniuc Cc: kbuild-all@01.org, linux-pci@vger.kernel.org, Bjorn Helgaas Subject: [PATCH] PCI/AER: fix boolreturn.cocci warnings Message-ID: <20180719235417.GA7720@athens> References: <201807200714.M8pIgh8M%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201807200714.M8pIgh8M%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: lkp@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot drivers/pci/pcie/aer.c:349:9-10: WARNING: return of 0/1 in function 'aer_acpi_firmware_first' 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 Fixes: 69c7f453d545 ("PCI/AER: Honor "pcie_ports=native" even if HEST sets FIRMWARE_FIRST") CC: Alexandru Gagniuc Signed-off-by: kbuild test robot --- aer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -346,7 +346,7 @@ bool aer_acpi_firmware_first(void) }; if (pcie_ports_native) - return 0; + return false; if (!parsed) { apei_hest_parse(aer_hest_parse, &info);