Skip to contentSkip to conversation

dmaengine: ste_dma40_ll: make d40_width_to_bits static

PATCH New Ben Dooks 2 participants 2 messages Jun 7, 2016 – Jun 8, 2016

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 dmaengine: ste_dma40_ll: make d40_width_to_bits static

Fix warning due to d40_width_to_bits() not being used outside this file. Fixes:

drivers/dma/ste_dma40_ll.c:13:4: warning: symbol 'd40_width_to_bits' was not declared. Should it be static?

---
Cc: Linus Walleij <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Vinod Koul <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
Cc: dmaengine at vger.kernel.org

---
 drivers/dma/ste_dma40_ll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/ste_dma40_ll.c +1 -1
index 27b818d..13b42dd 100644
@@ -10,7 +10,7 @@
 
 #include "ste_dma40_ll.h"
 
-u8 d40_width_to_bits(enum dma_slave_buswidth width)
+static u8 d40_width_to_bits(enum dma_slave_buswidth width)
 {
 	if (width == DMA_SLAVE_BUSWIDTH_1_BYTE)
 		return STEDMA40_ESIZE_8_BIT;
Signature · 1 line
2.8.1
Applied
#1 lore raw

PATCH 1/1 dmaengine: ste_dma40_ll: make d40_width_to_bits static

Quoted 2 lines · Ben Dooks

Fix warning due to d40_width_to_bits() not being used outside this file. Fixes:

Applied, thanks

Signature · 1 line
~Vinod