[RFC PATCH linux-nvme] nvme: dev_attr_ctrl_loss_tmo can be static

kernel test robot lkp at intel.com
Tue Jul 7 06:50:17 EDT 2020


Fixes: 3be72d5b2ac2 ("nvme: expose reconnect_delay and ctrl_loss_tmo via sysfs")
Signed-off-by: kernel test robot <lkp at intel.com>
---
 core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 9de93298bd81b..088608714451f 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -3564,7 +3564,7 @@ static ssize_t nvme_ctrl_loss_tmo_store(struct device *dev,
 						opts->reconnect_delay);
 	return count;
 }
-DEVICE_ATTR(ctrl_loss_tmo, S_IRUGO | S_IWUSR,
+static DEVICE_ATTR(ctrl_loss_tmo, S_IRUGO | S_IWUSR,
 	nvme_ctrl_loss_tmo_show, nvme_ctrl_loss_tmo_store);
 
 static ssize_t nvme_ctrl_reconnect_delay_show(struct device *dev,



More information about the Linux-nvme mailing list