From patchwork Wed Jan 9 17:53:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 210807 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DD8632C030C for ; Thu, 10 Jan 2013 04:53:13 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758026Ab3AIRxM (ORCPT ); Wed, 9 Jan 2013 12:53:12 -0500 Received: from mail-ye0-f201.google.com ([209.85.213.201]:45180 "EHLO mail-ye0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758023Ab3AIRxM (ORCPT ); Wed, 9 Jan 2013 12:53:12 -0500 Received: by mail-ye0-f201.google.com with SMTP id r11so263972yen.0 for ; Wed, 09 Jan 2013 09:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=h7VXad7j9smIp7bA5WqOligxMluYA5tsRzvSjaRX2ms=; b=o8mR5j0NYb+dwh6X7prFeFtLGej3cZ7QD7jIaFy7I5UtrQu4ShHJYULiYs9FWKgO8Q D6DHjbQg/BjyN5rjf0BrWcWgTxwEKQdQ+nAS5rlk97NoIrMeV69IaXBOw40xn3t5Te8D kAqq3aHttASMVZF1QfqEN06w0/l/70wC6uStYm/ALqPY7XiX9XPI97mE4gpi6D3SIlO+ EZRvRQsISnyay3o0i7mDQfa0XwD9k4/UkvqTZzIkJEcLcVjA6eDAL2NMBFtsLWKQI3z7 Nk9jZdwXvcCdd+5oTWfjoV5LAfOQ6FsJHJDWUQRWkxNiUNjCDn4tJvcGqkaZMgQS65Ck ej1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=h7VXad7j9smIp7bA5WqOligxMluYA5tsRzvSjaRX2ms=; b=OpVCrHQSVasoYLLAGvO1AIUIJ5oS8c5vDN3S5/+9ouBFT8C7TGqrGg+JdSQn09lAIh hxrMgiK3Deswniqs31vTRReGw1duTlBe7Q5eS33Xwqpf6Tu15MJPAXz9iNjKxeZwvi76 HhKj44B0ljP95loOqAf3AEItUqWR5PQLXC0xjyWe69vog2SFQLR5RklnFL527fjA1Dy/ c2S2MMsQUnAgDVwVRv4uj6zkiHOvnEUsWKAJMIroFG6r5Pb7XV/Hen1exugNgjcyTpNk tojqXGkRVDKWkzqjWMqxIn9MBbQQVYkfdgaD4aFsk+M9htYdhvxrgqDFJ04H0A/KoK53 2kIw== X-Received: by 10.236.127.145 with SMTP id d17mr38292095yhi.28.1357753991446; Wed, 09 Jan 2013 09:53:11 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id l20si5825695yhi.2.2013.01.09.09.53.11 (version=TLSv1/SSLv3 cipher=AES128-SHA); Wed, 09 Jan 2013 09:53:11 -0800 (PST) Received: from bhelgaas.mtv.corp.google.com (bhelgaas.mtv.corp.google.com [172.17.131.112]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 49DF4100047; Wed, 9 Jan 2013 09:53:11 -0800 (PST) Received: from bhelgaas.mtv.corp.google.com (unknown [IPv6:::1]) by bhelgaas.mtv.corp.google.com (Postfix) with ESMTP id 0B342180190; Wed, 9 Jan 2013 09:53:11 -0800 (PST) Subject: [PATCH 4/5] PCI: Use "unsigned long" for __pci_enable_device_flags to match ioport.h To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: David Howells , Koichi Yasutake , x86@kernel.org Date: Wed, 09 Jan 2013 10:53:11 -0700 Message-ID: <20130109175310.13904.36783.stgit@bhelgaas.mtv.corp.google.com> In-Reply-To: <20130109175151.13904.84252.stgit@bhelgaas.mtv.corp.google.com> References: <20130109175151.13904.84252.stgit@bhelgaas.mtv.corp.google.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlv2V2AP2Ui6wTjRsDR4Lbagc0rQyZ581DEEeDbJ8+/+4cmjOX6VSKIPnuMrr9BZcp7i/XxbFZew7PEOddR/NMlbw71SuRfW2D0y/nxhqRt7xezv87lWOTx/oXcuQEXTeGtlcdMzh1t0pUekGF0FTM39j9f+TZIoscy80tDxVlNRMDoHxXCfU2/9/XJGancEIuBMKkumjXmw27yF2NbK9FiG/Zb9g== Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org __pci_enable_device_flags() takes values like IORESOURCE_IO and IORESOURCE_MEM, which are values for struct resource.flags, which is "unsigned long", not "resource_size_t". Signed-off-by: Bjorn Helgaas --- drivers/pci/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- 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 diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 5cb5820..d574fbd 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1157,7 +1157,7 @@ int pci_reenable_device(struct pci_dev *dev) } static int __pci_enable_device_flags(struct pci_dev *dev, - resource_size_t flags) + unsigned long flags) { int err; int i, bars = 0;