diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-26 13:43:07 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-26 13:43:07 +0000 |
commit | b1d8e52e636fd2c137e5abb2d59b331473e0930d (patch) | |
tree | b9fe10850b589a60f5dade8cdf3407c67428127b /hw/soc_dma.c | |
parent | 51a0f568c5b0301fd8e44e5c28eaa8a82ea523d8 (diff) |
Fix undeclared symbol warnings from sparse
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5539 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/soc_dma.c')
-rw-r--r-- | hw/soc_dma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/soc_dma.c b/hw/soc_dma.c index 4c87c8b9bd..54804221f3 100644 --- a/hw/soc_dma.c +++ b/hw/soc_dma.c @@ -23,20 +23,20 @@ #include "qemu-timer.h" #include "soc_dma.h" -void transfer_mem2mem(struct soc_dma_ch_s *ch) +static void transfer_mem2mem(struct soc_dma_ch_s *ch) { memcpy(ch->paddr[0], ch->paddr[1], ch->bytes); ch->paddr[0] += ch->bytes; ch->paddr[1] += ch->bytes; } -void transfer_mem2fifo(struct soc_dma_ch_s *ch) +static void transfer_mem2fifo(struct soc_dma_ch_s *ch) { ch->io_fn[1](ch->io_opaque[1], ch->paddr[0], ch->bytes); ch->paddr[0] += ch->bytes; } -void transfer_fifo2mem(struct soc_dma_ch_s *ch) +static void transfer_fifo2mem(struct soc_dma_ch_s *ch) { ch->io_fn[0](ch->io_opaque[0], ch->paddr[1], ch->bytes); ch->paddr[1] += ch->bytes; @@ -47,7 +47,7 @@ void transfer_fifo2mem(struct soc_dma_ch_s *ch) * oprating systems may not need to use them. */ static void *fifo_buf; static int fifo_size; -void transfer_fifo2fifo(struct soc_dma_ch_s *ch) +static void transfer_fifo2fifo(struct soc_dma_ch_s *ch) { if (ch->bytes > fifo_size) fifo_buf = qemu_realloc(fifo_buf, fifo_size = ch->bytes); |