diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2007-08-01 11:41:15 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-16 21:01:51 -0400 |
commit | f774216d465959a4777ac3de67f33bf75ecd4a76 (patch) | |
tree | bdafc364944cfd8fba6529b7680c60d299a5764f /include/asm-powerpc/dma-mapping.h | |
parent | c05129bd8190fd702426f93f9fe0a00fa6cacb31 (diff) |
[POWERPC] Replace a few #defines with empty inline functions
...so that GCC doesn't complain about unused variables in the
callers of these.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/dma-mapping.h')
-rw-r--r-- | include/asm-powerpc/dma-mapping.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h index 744d6bb24116..d05891608f74 100644 --- a/include/asm-powerpc/dma-mapping.h +++ b/include/asm-powerpc/dma-mapping.h | |||
@@ -249,8 +249,12 @@ dma_map_single(struct device *dev, void *ptr, size_t size, | |||
249 | return virt_to_bus(ptr); | 249 | return virt_to_bus(ptr); |
250 | } | 250 | } |
251 | 251 | ||
252 | /* We do nothing. */ | 252 | static inline void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, |
253 | #define dma_unmap_single(dev, addr, size, dir) ((void)0) | 253 | size_t size, |
254 | enum dma_data_direction direction) | ||
255 | { | ||
256 | /* We do nothing. */ | ||
257 | } | ||
254 | 258 | ||
255 | static inline dma_addr_t | 259 | static inline dma_addr_t |
256 | dma_map_page(struct device *dev, struct page *page, | 260 | dma_map_page(struct device *dev, struct page *page, |
@@ -264,8 +268,12 @@ dma_map_page(struct device *dev, struct page *page, | |||
264 | return page_to_bus(page) + offset; | 268 | return page_to_bus(page) + offset; |
265 | } | 269 | } |
266 | 270 | ||
267 | /* We do nothing. */ | 271 | static inline void dma_unmap_page(struct device *dev, dma_addr_t dma_address, |
268 | #define dma_unmap_page(dev, handle, size, dir) ((void)0) | 272 | size_t size, |
273 | enum dma_data_direction direction) | ||
274 | { | ||
275 | /* We do nothing. */ | ||
276 | } | ||
269 | 277 | ||
270 | static inline int | 278 | static inline int |
271 | dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | 279 | dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, |
@@ -284,8 +292,12 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
284 | return nents; | 292 | return nents; |
285 | } | 293 | } |
286 | 294 | ||
287 | /* We don't do anything here. */ | 295 | static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg, |
288 | #define dma_unmap_sg(dev, sg, nents, dir) ((void)0) | 296 | int nhwentries, |
297 | enum dma_data_direction direction) | ||
298 | { | ||
299 | /* We don't do anything here. */ | ||
300 | } | ||
289 | 301 | ||
290 | #endif /* CONFIG_PPC64 */ | 302 | #endif /* CONFIG_PPC64 */ |
291 | 303 | ||