From patchwork Fri Apr 1 22:17:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 8728231 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 56017C0554 for ; Fri, 1 Apr 2016 22:18:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93EB220374 for ; Fri, 1 Apr 2016 22:18:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A95852039E for ; Fri, 1 Apr 2016 22:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754824AbcDAWSN (ORCPT ); Fri, 1 Apr 2016 18:18:13 -0400 Received: from mga09.intel.com ([134.134.136.24]:62739 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754751AbcDAWSL (ORCPT ); Fri, 1 Apr 2016 18:18:11 -0400 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 01 Apr 2016 15:18:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,428,1455004800"; d="scan'208";a="77571301" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga004.fm.intel.com with ESMTP; 01 Apr 2016 15:18:09 -0700 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1am7OG-000I31-MA; Sat, 02 Apr 2016 06:18:04 +0800 Date: Sat, 2 Apr 2016 06:17:10 +0800 From: kbuild test robot To: Jake Oshins Cc: kbuild-all@01.org, linux-pci@vger.kernel.org, gregkh@linuxfoundation.org, kys@microsoft.com, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, haiyangz@microsoft.com, haddenh@microsoft.com, Jake Oshins Subject: [PATCH] drivers:hv: fix resource_size.cocci warnings Message-ID: <20160401221710.GA86592@lkp-hsx03> References: <201604020637.7vhdSs6i%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1459552292-1297-7-git-send-email-jakeo@microsoft.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.9 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/hv/vmbus_drv.c:1099:15-18: ERROR: Missing resource_size with fb_mmio Use resource_size function on resource object instead of explicit computation. Generated by: scripts/coccinelle/api/resource_size.cocci CC: Jake Oshins Signed-off-by: Fengguang Wu --- vmbus_drv.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/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -1096,7 +1096,7 @@ static int vmbus_acpi_remove(struct acpi if (hyperv_mmio) { if (fb_mmio) { __release_region(hyperv_mmio, fb_mmio->start, - fb_mmio->end - fb_mmio->start + 1); + resource_size(fb_mmio)); fb_mmio = NULL; }