提交 c82ff239 编写于 作者: C Colin Ian King 提交者: Nicholas Bellinger

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 9d62bc0e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册