diff options
author | Zhu Yanjun <zyjzyj2000@gmail.com> | 2016-01-05 11:39:04 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-08 19:47:53 +0100 |
commit | 9e35fdcb9cd54e381135310aae3d9bbb23cecda3 (patch) | |
tree | 58bd94e9e62928f6eeea6a5fabea579b92ab9711 /drivers/block/mtip32xx | |
parent | bcache: Change refill_dirty() to always scan entire disk if necessary (diff) | |
download | linux-9e35fdcb9cd54e381135310aae3d9bbb23cecda3.tar.xz 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 |