[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120227173747.853e7fbe3ce3afab8939720b@canb.auug.org.au>
Date: Mon, 27 Feb 2012 17:37:47 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Jesse Barnes <jbarnes@...tuousgeek.org>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
Bjorn Helgaas <bhelgaas@...gle.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
ppc-dev <linuxppc-dev@...ts.ozlabs.org>
Subject: linux-next: build failure after merge of the final tree
Hi all,
After merging the final tree, today's linux-next build (powerpc
ppc44x_defconfig) failed like this:
arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup_phb_resources':
arch/powerpc/kernel/pci-common.c:1520:4: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
Caused by commit 6c5705fec63d ("powerpc/PCI: get rid of device resource
fixups") from the pci tree. In this build, resource_size_t is 64 bits
while pointers are only 32.
I applied the following fix patch.
From: Stephen Rothwell <sfr@...b.auug.org.au>
Date: Mon, 27 Feb 2012 17:33:48 +1100
Subject: [PATCH] powerpc/PCI: fix up for mismatch between resource_size_t and
pointer size
Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
---
arch/powerpc/kernel/pci-common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 910b9de..808ecbb 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -1517,7 +1517,7 @@ static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, s
(unsigned long long)res->end,
(unsigned long)res->flags);
pci_add_resource_offset(resources, res,
- (resource_size_t) hose->io_base_virt - _IO_BASE);
+ (resource_size_t)(unsigned long)hose->io_base_virt - _IO_BASE);
/* Hookup PHB Memory resources */
for (i = 0; i < 3; ++i) {
--
1.7.9.1
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists