diff options
author | Paul Menage <menage@google.com> | 2009-06-25 03:17:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-25 14:22:13 -0400 |
commit | ab420e6d9c2511b862d753b70efb4e979faa0714 (patch) | |
tree | 6bfe86c8c3663d568e891f86ebce80772d664548 /arch/um | |
parent | 47749b14e55cd167632f9a27a4fc439e591e5268 (diff) |
UML: Fix some apparent bitrot
UML: Fix some apparent bitrot
- migration of net_device methods into net_device_ops
- dma_sync_single() changes
Signed-off-by: Paul Menage <menage@google.com>
Acked-by: Amerigo Wang <xiyou.wangcong@gmail.com>
--
This version is split from my earlier patch, including just the
portions that ar required for Linus' tree.
Fixes the following compile errors:
include/linux/dma-mapping.h:113: error: redefinition of 'dma_sync_single'
arch/um/include/asm/dma-mapping.h:84: error: previous definition of 'dma_sync_single' was here
include/linux/dma-mapping.h: In function 'dma_sync_single':
include/linux/dma-mapping.h:117: error: implicit declaration of function 'dma_sync_single_for_cpu'
include/linux/dma-mapping.h: At top level:
include/linux/dma-mapping.h:120: error: redefinition of 'dma_sync_sg'
arch/um/include/asm/dma-mapping.h:91: error: previous definition of 'dma_sync_sg' was here
include/linux/dma-mapping.h: In function 'dma_sync_sg':
include/linux/dma-mapping.h:124: error: implicit declaration of function 'dma_sync_sg_for_cpu'
arch/um/drivers/slirp_kern.c: In function 'slirp_init':
arch/um/drivers/slirp_kern.c:35: error: 'struct net_device' has no member named 'init'
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/slip_kern.c | 1 | ||||
-rw-r--r-- | arch/um/drivers/slirp_kern.c | 1 | ||||
-rw-r--r-- | arch/um/include/asm/dma-mapping.h | 4 |
3 files changed, 2 insertions, 4 deletions
diff --git a/arch/um/drivers/slip_kern.c b/arch/um/drivers/slip_kern.c index 5ec17563142e..dd2aadc14af0 100644 --- a/arch/um/drivers/slip_kern.c +++ b/arch/um/drivers/slip_kern.c | |||
@@ -30,7 +30,6 @@ static void slip_init(struct net_device *dev, void *data) | |||
30 | 30 | ||
31 | slip_proto_init(&spri->slip); | 31 | slip_proto_init(&spri->slip); |
32 | 32 | ||
33 | dev->init = NULL; | ||
34 | dev->hard_header_len = 0; | 33 | dev->hard_header_len = 0; |
35 | dev->header_ops = NULL; | 34 | dev->header_ops = NULL; |
36 | dev->addr_len = 0; | 35 | dev->addr_len = 0; |
diff --git a/arch/um/drivers/slirp_kern.c b/arch/um/drivers/slirp_kern.c index f15a6e7654f3..e376284f0fb7 100644 --- a/arch/um/drivers/slirp_kern.c +++ b/arch/um/drivers/slirp_kern.c | |||
@@ -32,7 +32,6 @@ void slirp_init(struct net_device *dev, void *data) | |||
32 | 32 | ||
33 | slip_proto_init(&spri->slip); | 33 | slip_proto_init(&spri->slip); |
34 | 34 | ||
35 | dev->init = NULL; | ||
36 | dev->hard_header_len = 0; | 35 | dev->hard_header_len = 0; |
37 | dev->header_ops = NULL; | 36 | dev->header_ops = NULL; |
38 | dev->addr_len = 0; | 37 | dev->addr_len = 0; |
diff --git a/arch/um/include/asm/dma-mapping.h b/arch/um/include/asm/dma-mapping.h index 90fc708b320e..378de4bbf49f 100644 --- a/arch/um/include/asm/dma-mapping.h +++ b/arch/um/include/asm/dma-mapping.h | |||
@@ -79,14 +79,14 @@ dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, | |||
79 | } | 79 | } |
80 | 80 | ||
81 | static inline void | 81 | static inline void |
82 | dma_sync_single(struct device *dev, dma_addr_t dma_handle, size_t size, | 82 | dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, |
83 | enum dma_data_direction direction) | 83 | enum dma_data_direction direction) |
84 | { | 84 | { |
85 | BUG(); | 85 | BUG(); |
86 | } | 86 | } |
87 | 87 | ||
88 | static inline void | 88 | static inline void |
89 | dma_sync_sg(struct device *dev, struct scatterlist *sg, int nelems, | 89 | dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, |
90 | enum dma_data_direction direction) | 90 | enum dma_data_direction direction) |
91 | { | 91 | { |
92 | BUG(); | 92 | BUG(); |