Skip to content

Commit

Permalink
dma-debug: fix dma_debug_add_bus() definition for !CONFIG_DMA_API_DEBUG
Browse files Browse the repository at this point in the history
Impact: build fix

Fix:

 arch/x86/kvm/x86.o: In function `dma_debug_add_bus':
 (.text+0x0): multiple definition of `dma_debug_add_bus'

dma_debug_add_bus() should be a static inline function.

Cc: Joerg Roedel <joerg.roedel@amd.com>
LKML-Reference: <20090317120112.GP6159@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Mar 18, 2009
1 parent 95f3c4e commit 84be58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/dma-debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ extern void debug_dma_dump_mappings(struct device *dev);

#else /* CONFIG_DMA_API_DEBUG */

void dma_debug_add_bus(struct bus_type *bus)
static inline void dma_debug_add_bus(struct bus_type *bus)
{
}

Expand Down

0 comments on commit 84be58d

Please sign in to comment.