[1/2] dmaengine: ppc4xx: make ppc440spe_adma_chan_list static
diff mbox series

Message ID 20201019155756.21445-1-krzk@kernel.org
State In Next
Commit 54ee09c324a5333964f5d65240aa75c1d9637630
Headers show
Series
  • [1/2] dmaengine: ppc4xx: make ppc440spe_adma_chan_list static
Related show

Commit Message

Krzysztof Kozlowski Oct. 19, 2020, 3:57 p.m. UTC
The ppc440spe_adma_chan_list file-scope variable is not used outside of
the unit so it can be made static.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/dma/ppc4xx/adma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vinod Koul Oct. 28, 2020, 6:25 a.m. UTC | #1
On 19-10-20, 17:57, Krzysztof Kozlowski wrote:
> The ppc440spe_adma_chan_list file-scope variable is not used outside of
> the unit so it can be made static.

Applied both, thanks

Patch
diff mbox series

diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c
index 71cdaaa8134c..fea598550582 100644
--- a/drivers/dma/ppc4xx/adma.c
+++ b/drivers/dma/ppc4xx/adma.c
@@ -69,7 +69,7 @@  struct ppc_dma_chan_ref {
 };
 
 /* The list of channels exported by ppc440spe ADMA */
-struct list_head
+static struct list_head
 ppc440spe_adma_chan_list = LIST_HEAD_INIT(ppc440spe_adma_chan_list);
 
 /* This flag is set when want to refetch the xor chain in the interrupt