mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
a9dfd281a7
Most architectures' scatterlist.h use the type dma_addr_t, but omit to include <asm/types.h> which defines it. This could lead to build failures, so let's add the missing includes. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
23 lines
404 B
C
23 lines
404 B
C
#ifndef _ALPHA_SCATTERLIST_H
|
|
#define _ALPHA_SCATTERLIST_H
|
|
|
|
#include <asm/page.h>
|
|
#include <asm/types.h>
|
|
|
|
struct scatterlist {
|
|
struct page *page;
|
|
unsigned int offset;
|
|
|
|
unsigned int length;
|
|
|
|
dma_addr_t dma_address;
|
|
__u32 dma_length;
|
|
};
|
|
|
|
#define sg_dma_address(sg) ((sg)->dma_address)
|
|
#define sg_dma_len(sg) ((sg)->dma_length)
|
|
|
|
#define ISA_DMA_THRESHOLD (~0UL)
|
|
|
|
#endif /* !(_ALPHA_SCATTERLIST_H) */
|