From patchwork Fri Nov 13 11:36:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 7610911 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C2276BF90C for ; Fri, 13 Nov 2015 11:37:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC802207E6 for ; Fri, 13 Nov 2015 11:37:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D9CED20742 for ; Fri, 13 Nov 2015 11:37:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754647AbbKMLhP (ORCPT ); Fri, 13 Nov 2015 06:37:15 -0500 Received: from mga11.intel.com ([192.55.52.93]:21506 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754642AbbKMLhP (ORCPT ); Fri, 13 Nov 2015 06:37:15 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 13 Nov 2015 03:37:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,287,1444719600"; d="scan'208";a="836871918" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga001.fm.intel.com with ESMTP; 13 Nov 2015 03:37:14 -0800 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1ZxCf6-000NBQ-1d; Fri, 13 Nov 2015 19:37:00 +0800 Date: Fri, 13 Nov 2015 19:36:14 +0800 From: kbuild test robot To: Joao Pinto Cc: kbuild-all@01.org, bhelgaas@google.com, CARLOS.PALMINHA@synopsys.com, linux-pci@vger.kernel.org, Joao Pinto Subject: [PATCH] fix compare_const_fl.cocci warnings Message-ID: <20151113113614.GA59294@lkp-hsx03.intel.com> References: <201511131908.aULYhxd0%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <56c2031ee4b5d6d9d5452ac6cca724a15942cbf7.1447411031.git.jpinto@synopsys.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@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-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/pci/host/pcie-designware.c:158:23-47: Move constant to right. Move constants to the right of binary operators. Semantic patch information: Depends on personal taste in some cases. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci CC: Joao Pinto Signed-off-by: Fengguang Wu --- Please take the patch only if it's a positive warning. Thanks! pcie-designware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -155,7 +155,7 @@ static int dw_pcie_wr_own_conf(struct pc static void dw_pcie_prog_outbound_atu(struct pcie_port *pp, int index, int type, u64 cpu_addr, u64 pci_addr, u32 size) { - dw_pcie_writel_rc(pp, PCIE_ATU_REGION_OUTBOUND | index, + dw_pcie_writel_rc(pp, index | PCIE_ATU_REGION_OUTBOUND, PCIE_ATU_VIEWPORT); dw_pcie_writel_rc(pp, lower_32_bits(cpu_addr), PCIE_ATU_LOWER_BASE); dw_pcie_writel_rc(pp, upper_32_bits(cpu_addr), PCIE_ATU_UPPER_BASE);