]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nand: raw: octeontx: Make list static
authorBin Meng <bmeng@tinylab.org>
Wed, 5 Apr 2023 14:38:37 +0000 (22:38 +0800)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 16 Apr 2023 10:30:46 +0000 (12:30 +0200)
octeontx_bch_devices and octeontx_pci_nand_deferred_devices are only
referenced in the files where they are defined. Make them static.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Acked-by: Michael Trimarchi <michael@amarulasolutions.com>
Link: https://lore.kernel.org/all/20230405143837.785082-1-bmeng@tinylab.org/
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
drivers/mtd/nand/raw/octeontx_bch.c
drivers/mtd/nand/raw/octeontx_nand.c

index fc16b77416bbcaee849e579223a9f82a7120d7d0..056a6857822f9e33802c1c8bfbcf4e7ece118361 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/arch/clock.h>
 #include "octeontx_bch.h"
 
-LIST_HEAD(octeontx_bch_devices);
+static LIST_HEAD(octeontx_bch_devices);
 static unsigned int num_vfs = BCH_NR_VF;
 static void *bch_pf;
 static void *bch_vf;
index 1ffadad9cae76e3c714828a32a21b9781ac466dc..65a03d22c1dbfc6f65f69bdd121a1dd8d08c1c60 100644 (file)
@@ -354,7 +354,7 @@ struct octeontx_probe_device {
 
 static struct bch_vf *bch_vf;
 /** Deferred devices due to BCH not being ready */
-LIST_HEAD(octeontx_pci_nand_deferred_devices);
+static LIST_HEAD(octeontx_pci_nand_deferred_devices);
 
 /** default parameters used for probing chips */
 #define MAX_ONFI_MODE  5