diff options
author | Zhu Yanjun <zyjzyj2000@gmail.com> | 2016-01-05 18:39:04 +0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-08 11:47:53 -0700 |
commit | 9e35fdcb9cd54e381135310aae3d9bbb23cecda3 (patch) | |
tree | 58bd94e9e62928f6eeea6a5fabea579b92ab9711 /drivers/block/mtip32xx | |
parent | 627ccd20b4ad3ba836472468208e2ac4dfadbf03 (diff) | |
download | linux-9e35fdcb9cd54e381135310aae3d9bbb23cecda3.tar.gz linux-9e35fdcb9cd54e381135310aae3d9bbb23cecda3.tar.bz2 linux-9e35fdcb9cd54e381135310aae3d9bbb23cecda3.zip |
mtip32xx: restrict variables visible in current code module
The modified variables are only used in the file mtip32xx.c.
As such, the static keyword is inserted to define that object
to be only visible to the current code module during compilation.
Signed-off-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/mtip32xx')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 3457ac8c03e2..2641a98f2246 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -104,9 +104,9 @@ /* Device instance number, incremented each time a device is probed. */ static int instance; -struct list_head online_list; -struct list_head removing_list; -spinlock_t dev_lock; +static struct list_head online_list; +static struct list_head removing_list; +static spinlock_t dev_lock; /* * Global variable used to hold the major block device number |