Skip to contentSkip to conversation

nvmet: mark nvmet_ana_state static

PATCH In review Christoph Hellwig 3 participants 3 messages May 12, 2020 – May 13, 2020

Subsystems (2)
lore
Share & tools
lore

Christoph Hellwig

author maintainer
#0 lore raw

PATCH 1/1 nvmet: mark nvmet_ana_state static

---
 drivers/nvme/target/configfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/target/configfs.c +1 -1
index 19bd5e1c681ce..24eb4cf53b4f5 100644
@@ -1146,7 +1146,7 @@ static const struct config_item_type nvmet_referrals_type = {
 	.ct_group_ops	= &nvmet_referral_group_ops,
 };
 
-struct nvmet_type_name_map nvmet_ana_state[] = {
+static struct nvmet_type_name_map nvmet_ana_state[] = {
 	{ NVME_ANA_OPTIMIZED,		"optimized" },
 	{ NVME_ANA_NONOPTIMIZED,	"non-optimized" },
 	{ NVME_ANA_INACCESSIBLE,	"inaccessible" },
Signature · 7 lines
2.26.2


_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Christoph Hellwig
---
  drivers/nvme/target/configfs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/target/configfs.c +0 -0
index 19bd5e1c681ce..24eb4cf53b4f5 100644

drivers/nvme/target/configfs.c static const struct config_item_type nvmet_referrals_type = { · line 1152

Quoted 8 lines
drivers/nvme/target/configfs.c +1 -1
@@ -1146,7 +1146,7 @@ static const struct config_item_type nvmet_referrals_type = {
  	.ct_group_ops	= &nvmet_referral_group_ops,
  };
 
-struct nvmet_type_name_map nvmet_ana_state[] = {
+static struct nvmet_type_name_map nvmet_ana_state[] = {
  	{ NVME_ANA_OPTIMIZED,		"optimized" },
  	{ NVME_ANA_NONOPTIMIZED,	"non-optimized" },
  	{ NVME_ANA_INACCESSIBLE,	"inaccessible" },

Looks good,

_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme

Reviewed-by
#2 lore raw
Quoted 14 lines · Christoph Hellwig
Quoted 13 lines
---
   drivers/nvme/target/configfs.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/target/configfs.c +0 -0
index 19bd5e1c681ce..24eb4cf53b4f5 100644
@@ -1146,7 +1146,7 @@ static const struct config_item_type nvmet_referrals_type = {
   	.ct_group_ops	= &nvmet_referral_group_ops,
   };
 
Quoted 7 lines

drivers/nvme/target/configfs.c static const struct config_item_type nvmet_referrals_type = { · line 1152

Quoted 5 lines
drivers/nvme/target/configfs.c +1 -1
-struct nvmet_type_name_map nvmet_ana_state[] = {
+static struct nvmet_type_name_map nvmet_ana_state[] = {
   	{ NVME_ANA_OPTIMIZED,		"optimized" },
   	{ NVME_ANA_NONOPTIMIZED,	"non-optimized" },
   	{ NVME_ANA_INACCESSIBLE,	"inaccessible" },

Looks good.

_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme