Re: [PATCH 1/5] Convert resource to u64 from unsigned long

Jesse Barnes
2005-01-14T01:41:36Z

On Thursday, January 13, 2005 4:23 pm, Andrew Morton wrote:
> +#if BITS_PER_LONG == 64
> return (void __iomem *)pci_resource_start(pdev, PCI_ROM_RESOURCE);
> +#else
> + return (void __iomem *)(u32)pci_resource_start(pdev, PCI_ROM_RESOURCE);
> +#endif

I just noticed that the PCI rom code also appears to be mixing other types,
e.g. it delcares start as loff_t and stuffs a pci_resource_start into it,
then uses it as the first argument to ioremap.

Jesse