Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1664849 > unrolled thread

[PATCH][target-devel-next] tcmu: make array tcmu_attrib_attrs static const

Started byColin King <colin.king@canonical.com>
First post2017-06-13 15:30 +0200
Last post2017-06-13 15:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH][target-devel-next] tcmu: make array tcmu_attrib_attrs static const Colin King <colin.king@canonical.com> - 2017-06-13 15:30 +0200

#1664849 — [PATCH][target-devel-next] tcmu: make array tcmu_attrib_attrs static const

FromColin King <colin.king@canonical.com>
Date2017-06-13 15:30 +0200
Subject[PATCH][target-devel-next] tcmu: make array tcmu_attrib_attrs static const
Message-ID<tRU3n-8vr-9@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

The guid intel_dsm_guid does not need to be in global scope, so make
it static.

Cleans up sparse warning:
"symbol 'tcmu_attrib_attrs' was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/target/target_core_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index afc1fd6bacaf..04fb3f720895 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -1672,7 +1672,7 @@ static ssize_t tcmu_emulate_write_cache_store(struct config_item *item,
 }
 CONFIGFS_ATTR(tcmu_, emulate_write_cache);
 
-struct configfs_attribute *tcmu_attrib_attrs[] = {
+static struct configfs_attribute *tcmu_attrib_attrs[] = {
 	&tcmu_attr_cmd_time_out,
 	&tcmu_attr_dev_path,
 	&tcmu_attr_dev_size,
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web