--- zzzz-none-000/linux-2.6.39.4/arch/x86/include/asm/dma-mapping.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/arch/x86/include/asm/dma-mapping.h 2021-11-10 13:23:10.000000000 +0000 @@ -28,7 +28,7 @@ extern struct dma_map_ops *dma_ops; -static inline struct dma_map_ops *get_dma_ops(struct device *dev) +static inline struct dma_map_ops *get_dma_ops(struct device *dev __attribute__((unused))) { #ifdef CONFIG_X86_32 return dma_ops; @@ -69,19 +69,19 @@ return addr + size - 1 <= *dev->dma_mask; } -static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) +static inline dma_addr_t phys_to_dma(struct device *dev __attribute__((unused)), phys_addr_t paddr) { return paddr; } -static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) +static inline phys_addr_t dma_to_phys(struct device *dev __attribute__((unused)), dma_addr_t daddr) { return daddr; } static inline void -dma_cache_sync(struct device *dev, void *vaddr, size_t size, - enum dma_data_direction dir) +dma_cache_sync(struct device *dev __attribute__((unused)), void *vaddr __attribute__((unused)), size_t size __attribute__((unused)), + enum dma_data_direction dir __attribute__((unused))) { flush_write_buffers(); }