From 781e4d94baaaac3e6625bf6687f4992a4a3329af Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 15 Aug 2016 15:54:55 +0000 Subject: [PATCH] efm32lg: mark internal function as static Squelches gcc warnings Fixes github #686 --- lib/efm32/lg/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efm32/lg/dma.c b/lib/efm32/lg/dma.c index dafdd185..e6967bfe 100644 --- a/lib/efm32/lg/dma.c +++ b/lib/efm32/lg/dma.c @@ -540,7 +540,7 @@ uint32_t dma_desc_get_user_data(uint32_t desc_base, enum dma_ch ch) * @return the calculate end address * @note can be used to calculate {source, destination} end address */ -inline uint32_t dma_calc_end_from_start(uint32_t start, uint8_t inc, +static inline uint32_t dma_calc_end_from_start(uint32_t start, uint8_t inc, uint16_t n_minus_1) { switch (inc) {