From dc78c5025e314571e344a608a617e3ac6e715e23 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 27 May 2019 17:27:47 +0000 Subject: [PATCH] qla2x00t-32gbit: Declare local symbols 'static' This patch avoids that sparse complains about local symbols not having been declared 'static'. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8367 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c index 18a1e2c06..b9596a661 100644 --- a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c +++ b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c @@ -73,7 +73,7 @@ #endif #endif -LIST_HEAD(sqa_tgt_glist); +static LIST_HEAD(sqa_tgt_glist); /* Function definitions for callbacks from the SCST target core. */ @@ -101,7 +101,7 @@ static int sqa_parse_wwn(const char *ns, u64 *nm); static ssize_t sqa_version_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf); -struct kobj_attribute sqa_version_attr = +static struct kobj_attribute sqa_version_attr = __ATTR(version, S_IRUGO, sqa_version_show, NULL); static const struct attribute *sqa_attrs[] = { @@ -116,7 +116,7 @@ static ssize_t sqa_store_expl_conf_enabled(struct kobject *kobj, struct kobj_attribute *attr, const char *buffer, size_t size); -struct kobj_attribute sqa_expl_conf_attr = +static struct kobj_attribute sqa_expl_conf_attr = __ATTR(explicit_confirmation, S_IRUGO|S_IWUSR, sqa_show_expl_conf_enabled, sqa_store_expl_conf_enabled); @@ -124,7 +124,7 @@ static ssize_t sqa_abort_isp_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buffer, size_t size); -struct kobj_attribute sqa_abort_isp_attr = +static struct kobj_attribute sqa_abort_isp_attr = __ATTR(abort_isp, S_IWUSR, NULL, sqa_abort_isp_store); static ssize_t sqa_hw_target_show(struct kobject *kobj, @@ -179,7 +179,7 @@ static enum scst_exec_context scst_work_context = SCST_CONTEXT_TASKLET; #endif -struct cmd_state_name { +static struct cmd_state_name { uint8_t state; char *str; } cmd_str[] = {