[PATCH 8/9] swiotlb: support HIGHMEM in swiotlb_bus_to_virt

2009-05-29 Thread Ian Campbell
Rather than supplying a __weak hook which architectures which support highmem can overide simply provide a version of swiotlb_bus_to_virt which works with high memory. Make it conditional since it is a more expensive variant than the non-highmem version. Acutal function contents taken from the Pow

Re: [PATCH 8/9] swiotlb: support HIGHMEM in swiotlb_bus_to_virt

2009-05-29 Thread Jeremy Fitzhardinge
Ian Campbell wrote: Rather than supplying a __weak hook which architectures which support highmem can overide simply provide a version of swiotlb_bus_to_virt which works with high memory. Make it conditional since it is a more expensive variant than the non-highmem version. Acutal function conte

Re: [PATCH 8/9] swiotlb: support HIGHMEM in swiotlb_bus_to_virt

2009-05-30 Thread Ian Campbell
On Fri, 2009-05-29 at 08:58 -0700, Jeremy Fitzhardinge wrote: > Ian Campbell wrote: > > -void * __weak swiotlb_bus_to_virt(struct device *hwdev, dma_addr_t address) > > +#ifdef CONFIG_HIGHMEM > > +static void * swiotlb_bus_to_virt(struct device *hwdev, dma_addr_t address) > > > > I think it wo