Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: ti: k3-psil: make symbols static

Fixe the following warnings by making these static

drivers/dma/ti/k3-psil-j721e.c:62:16: warning: symbol 'j721e_src_ep_map' was not declared. Should it be static?
drivers/dma/ti/k3-psil-j721e.c:172:16: warning: symbol 'j721e_dst_ep_map' was not declared. Should it be static?
drivers/dma/ti/k3-psil-j721e.c:216:20: warning: symbol 'j721e_ep_map' was not declared. Should it be static?
CC drivers/dma/ti/k3-psil-j721e.o
drivers/dma/ti/k3-psil-am654.c:52:16: warning: symbol 'am654_src_ep_map' was not declared. Should it be static?
drivers/dma/ti/k3-psil-am654.c:127:16: warning: symbol 'am654_dst_ep_map' was not declared. Should it be static?
drivers/dma/ti/k3-psil-am654.c:169:20: warning: symbol 'am654_ep_map' was not declared. Should it be static?

Reported-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200121070104.4393-1-peter.ujfalusi@ti.com
[vkoul: updated patch title]
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Peter Ujfalusi and committed by
Vinod Koul
2bd8010a d7024191

+8 -7
+2 -2
drivers/dma/ti/k3-psil-am654.c
··· 49 49 } 50 50 51 51 /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ 52 - struct psil_ep am654_src_ep_map[] = { 52 + static struct psil_ep am654_src_ep_map[] = { 53 53 /* SA2UL */ 54 54 PSIL_SA2UL(0x4000, 0), 55 55 PSIL_SA2UL(0x4001, 0), ··· 124 124 }; 125 125 126 126 /* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */ 127 - struct psil_ep am654_dst_ep_map[] = { 127 + static struct psil_ep am654_dst_ep_map[] = { 128 128 /* SA2UL */ 129 129 PSIL_SA2UL(0xc000, 1), 130 130 PSIL_SA2UL(0xc001, 1),
+2 -2
drivers/dma/ti/k3-psil-j721e.c
··· 59 59 } 60 60 61 61 /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ 62 - struct psil_ep j721e_src_ep_map[] = { 62 + static struct psil_ep j721e_src_ep_map[] = { 63 63 /* SA2UL */ 64 64 PSIL_SA2UL(0x4000, 0), 65 65 PSIL_SA2UL(0x4001, 0), ··· 169 169 }; 170 170 171 171 /* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */ 172 - struct psil_ep j721e_dst_ep_map[] = { 172 + static struct psil_ep j721e_dst_ep_map[] = { 173 173 /* SA2UL */ 174 174 PSIL_SA2UL(0xc000, 1), 175 175 PSIL_SA2UL(0xc001, 1),
+4
drivers/dma/ti/k3-psil-priv.h
··· 36 36 37 37 struct psil_endpoint_config *psil_get_ep_config(u32 thread_id); 38 38 39 + /* SoC PSI-L endpoint maps */ 40 + extern struct psil_ep_map am654_ep_map; 41 + extern struct psil_ep_map j721e_ep_map; 42 + 39 43 #endif /* K3_PSIL_PRIV_H_ */
-3
drivers/dma/ti/k3-psil.c
··· 12 12 13 13 #include "k3-psil-priv.h" 14 14 15 - extern struct psil_ep_map am654_ep_map; 16 - extern struct psil_ep_map j721e_ep_map; 17 - 18 15 static DEFINE_MUTEX(ep_map_mutex); 19 16 static struct psil_ep_map *soc_ep_map; 20 17