mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
[PATCH] m68k/kernel/dma.c assumes !MMU_SUN3
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1622605cf6
commit
58ba81dba7
@ -9,10 +9,11 @@ else
|
|||||||
endif
|
endif
|
||||||
extra-y += vmlinux.lds
|
extra-y += vmlinux.lds
|
||||||
|
|
||||||
obj-y := entry.o process.o traps.o ints.o dma.o signal.o ptrace.o \
|
obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o \
|
||||||
sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o
|
sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o
|
||||||
|
|
||||||
obj-$(CONFIG_PCI) += bios32.o
|
obj-$(CONFIG_PCI) += bios32.o
|
||||||
obj-$(CONFIG_MODULES) += module.o
|
obj-$(CONFIG_MODULES) += module.o
|
||||||
|
obj-y$(CONFIG_MMU_SUN3) += dma.o # no, it's not a typo
|
||||||
|
|
||||||
EXTRA_AFLAGS := -traditional
|
EXTRA_AFLAGS := -traditional
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
struct scatterlist;
|
struct scatterlist;
|
||||||
|
|
||||||
|
#ifndef CONFIG_MMU_SUN3
|
||||||
static inline int dma_supported(struct device *dev, u64 mask)
|
static inline int dma_supported(struct device *dev, u64 mask)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
@ -88,4 +89,8 @@ static inline int dma_mapping_error(dma_addr_t handle)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#include <asm-generic/dma-mapping-broken.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _M68K_DMA_MAPPING_H */
|
#endif /* _M68K_DMA_MAPPING_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user