Silence warning.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 9 Jul 2010 10:47:03 +0000 (10:47 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 9 Jul 2010 10:47:03 +0000 (10:47 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4019 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/drv/spi_dma_at91.c

index 25a104103705be0e6af8fb1a1697d5828038ae65..c4cbf2da70a37b288ddf9fa63ce484577d3c5e3a 100644 (file)
@@ -92,7 +92,7 @@ static size_t spi_dma_write(struct KFile *fd, const void *_buf, size_t size)
  */
 static const uint8_t tx_dummy_buf[CONFIG_SPI_DMA_MAX_RX] = { [0 ... (CONFIG_SPI_DMA_MAX_RX - 1)] = 0xFF };
 
-static size_t spi_dma_read(struct KFile *fd, void *_buf, size_t size)
+static size_t spi_dma_read(UNUSED_ARG(struct KFile *, fd), void *_buf, size_t size)
 {
        size_t count, total_rx = 0;
        uint8_t *buf = (uint8_t *)_buf;