Skip to content

Commit

Permalink
x86: use dma_length in i386
Browse files Browse the repository at this point in the history
This is done to get the code closer to x86_64.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 19, 2008
1 parent 5b3e5b7 commit d741bde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions arch/x86/kernel/pci-base_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ static int pci32_dma_map_sg(struct device *dev, struct scatterlist *sglist,
BUG_ON(!sg_page(sg));

sg->dma_address = sg_phys(sg);
sg->dma_length = sg->length;
}

flush_write_buffers();
Expand Down
2 changes: 0 additions & 2 deletions include/asm-x86/scatterlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ struct scatterlist {
unsigned int offset;
unsigned int length;
dma_addr_t dma_address;
#ifdef CONFIG_X86_64
unsigned int dma_length;
#endif
};

#define ARCH_HAS_SG_CHAIN
Expand Down

0 comments on commit d741bde

Please sign in to comment.