]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: wdc-plugin mark array static declaration
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Sun, 19 Aug 2018 17:06:57 +0000 (13:06 -0400)
committerKeith Busch <keith.busch@intel.com>
Mon, 20 Aug 2018 18:40:50 +0000 (12:40 -0600)
The array deFeatureIdList is only used in wdc-nvme.c,
use static declaration.

wdc-nvme.c

index 1545172c4fe55714b7e26766baacf8650b0db149..4e691e707b001a234b21b133f607b0c54b47bb5c 100644 (file)
@@ -238,7 +238,7 @@ typedef struct _WDC_DE_CSA_FEATURE_ID_LIST
     __u8 featureName[WDC_DE_GENERIC_BUFFER_SIZE];
 } WDC_DE_CSA_FEATURE_ID_LIST;
 
-WDC_DE_CSA_FEATURE_ID_LIST deFeatureIdList[] =
+static WDC_DE_CSA_FEATURE_ID_LIST deFeatureIdList[] =
 {
        {0x00                                   , "Dummy Placeholder"},
        {FID_ARBITRATION                        , "Arbitration"},