Commit 2bd8010a authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Vinod Koul

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: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarPeter 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: default avatarVinod Koul <vkoul@kernel.org>
parent d7024191
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
} }
/* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */
struct psil_ep am654_src_ep_map[] = { static struct psil_ep am654_src_ep_map[] = {
/* SA2UL */ /* SA2UL */
PSIL_SA2UL(0x4000, 0), PSIL_SA2UL(0x4000, 0),
PSIL_SA2UL(0x4001, 0), PSIL_SA2UL(0x4001, 0),
...@@ -124,7 +124,7 @@ struct psil_ep am654_src_ep_map[] = { ...@@ -124,7 +124,7 @@ struct psil_ep am654_src_ep_map[] = {
}; };
/* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */ /* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */
struct psil_ep am654_dst_ep_map[] = { static struct psil_ep am654_dst_ep_map[] = {
/* SA2UL */ /* SA2UL */
PSIL_SA2UL(0xc000, 1), PSIL_SA2UL(0xc000, 1),
PSIL_SA2UL(0xc001, 1), PSIL_SA2UL(0xc001, 1),
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
} }
/* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */
struct psil_ep j721e_src_ep_map[] = { static struct psil_ep j721e_src_ep_map[] = {
/* SA2UL */ /* SA2UL */
PSIL_SA2UL(0x4000, 0), PSIL_SA2UL(0x4000, 0),
PSIL_SA2UL(0x4001, 0), PSIL_SA2UL(0x4001, 0),
...@@ -169,7 +169,7 @@ struct psil_ep j721e_src_ep_map[] = { ...@@ -169,7 +169,7 @@ struct psil_ep j721e_src_ep_map[] = {
}; };
/* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */ /* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */
struct psil_ep j721e_dst_ep_map[] = { static struct psil_ep j721e_dst_ep_map[] = {
/* SA2UL */ /* SA2UL */
PSIL_SA2UL(0xc000, 1), PSIL_SA2UL(0xc000, 1),
PSIL_SA2UL(0xc001, 1), PSIL_SA2UL(0xc001, 1),
......
...@@ -36,4 +36,8 @@ struct psil_ep_map { ...@@ -36,4 +36,8 @@ struct psil_ep_map {
struct psil_endpoint_config *psil_get_ep_config(u32 thread_id); struct psil_endpoint_config *psil_get_ep_config(u32 thread_id);
/* SoC PSI-L endpoint maps */
extern struct psil_ep_map am654_ep_map;
extern struct psil_ep_map j721e_ep_map;
#endif /* K3_PSIL_PRIV_H_ */ #endif /* K3_PSIL_PRIV_H_ */
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
#include "k3-psil-priv.h" #include "k3-psil-priv.h"
extern struct psil_ep_map am654_ep_map;
extern struct psil_ep_map j721e_ep_map;
static DEFINE_MUTEX(ep_map_mutex); static DEFINE_MUTEX(ep_map_mutex);
static struct psil_ep_map *soc_ep_map; static struct psil_ep_map *soc_ep_map;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment