lkml.org 
[lkml]   [2007]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] intel-iommu: fix sg_page()
    On Tue, Oct 23 2007, FUJITA Tomonori wrote:
    > drivers/pci/intel-iommu.c: In function 'intel_unmap_sg':
    > drivers/pci/intel-iommu.c:1987: error: 'struct scatterlist' has no member named 'page'
    > drivers/pci/intel-iommu.c: In function 'intel_nontranslate_map_sg':
    > drivers/pci/intel-iommu.c:2013: error: 'struct scatterlist' has no member named 'page'
    > drivers/pci/intel-iommu.c:2014: error: 'struct scatterlist' has no member named 'page'
    > drivers/pci/intel-iommu.c: In function 'intel_map_sg':
    > drivers/pci/intel-iommu.c:2044: error: 'struct scatterlist' has no member named 'page'
    > drivers/pci/intel-iommu.c:2068: error: 'struct scatterlist' has no member named 'page'
    >
    > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
    > ---
    > drivers/pci/intel-iommu.c | 11 +++++------
    > 1 files changed, 5 insertions(+), 6 deletions(-)
    >
    > diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
    > index b3d7031..0f6e528 100644
    > --- a/drivers/pci/intel-iommu.c
    > +++ b/drivers/pci/intel-iommu.c
    > @@ -1962,7 +1962,6 @@ static void intel_free_coherent(struct device *hwdev, size_t size,
    > free_pages((unsigned long)vaddr, order);
    > }
    >
    > -#define SG_ENT_VIRT_ADDRESS(sg) (page_address((sg)->page) + (sg)->offset)

    Thanks, though I preferred to just do the one-liner for the conversions.
    Funny that I missed this file - ah seems it was merged yesterday as
    well, it didn't exist in the current tree I was working against.

    --
    Jens Axboe

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

    \
     
     \ /
      Last update: 2007-10-23 07:07    [W:0.023 / U:59.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site