diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-07-04 11:44:19 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-07-07 09:11:44 +0300 |
commit | c82ff239ecf27dd5eddc91540f50321547a2d311 (patch) | |
tree | bfa41c8a8bda4354d158e31bafa4bb30e228a350 /drivers/target/target_core_device.c | |
parent | 9d62bc0e6d79b11e3298e831358155930fb8f5e3 (diff) | |
download | linux-c82ff239ecf27dd5eddc91540f50321547a2d311.tar.xz |
target: make device_mutex and device_list static
Variables device_mutex and device_list static are local to the source,
so make them static.
Cleans up sparse warnings:
"symbol 'device_list' was not declared. Should it be static?"
"symbol 'device_mutex' was not declared. Should it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r-- | drivers/target/target_core_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index 3ae8fbf01bdf..bbcef3bc66c8 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -49,8 +49,8 @@ #include "target_core_pr.h" #include "target_core_ua.h" -DEFINE_MUTEX(device_mutex); -LIST_HEAD(device_list); +static DEFINE_MUTEX(device_mutex); +static LIST_HEAD(device_list); static DEFINE_IDR(devices_idr); static struct se_hba *lun0_hba; |