On Wed, Mar 12, 2014 at 12:53:30AM +0100, Stephane Eranian wrote:
>  #ifdef CONFIG_PHYS_ADDR_T_64BIT
> -     pci_read_config_dword(pdev, SNB_UNCORE_PCI_IMC_BAR_OFFSET+4, &addr_hi);
> -     addr = ((resource_size_t)addr_hi << 32) | addr_lo;
> +       pci_read_config_dword(pdev, where + 4, &pci_dword);
> +       addr |= ((resource_size_t)pci_dword << 32);
>  #endif

Indent fail there; fixed it.

FWIW; I thought of an even more horrible solution:

        resource_size_t addr;
        u32 *addr_ptr = &addr;

        pci_read_config_dword(pdev, SNB_UNCORE_PCI_IMC_BAR_OFFSET, 
&addr_ptr[0]);
#ifdef ..
        pci_read_config_dword(pdev, SNB_UNCORE_PCI_IMC_BAR_OFFSET+4, 
&addr_ptr[1]);
#endif

:-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to