Skip to contentSkip to conversation

staging: lustre: mgc: make llog_process_lock static

PATCH In review [email protected] 2 participants 2 messages Dec 5, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: mgc: make llog_process_lock static

From: Sandeep Jain <[email protected]>

Fix following sparse warning.
mgc_request.c:376:1:
warning: symbol 'llog_process_lock' was not declared. Should it be static?

---
 drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/mgc/mgc_request.c +1 -1
index 23600fb..e98a2ce 100644
@@ -373,7 +373,7 @@ static int config_log_add(struct obd_device *obd, char *logname,
 	return rc;
 }
 
-DEFINE_MUTEX(llog_process_lock);
+static DEFINE_MUTEX(llog_process_lock);
 
 /** Stop watching for updates on this log.
  */
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Dec 4, 2016, at 9:21 PM, <[email protected]>…

From: Sandeep Jain <[email protected]>

Fix following sparse warning.
mgc_request.c:376:1:
warning: symbol 'llog_process_lock' was not declared. Should it be static?

Quoted 19 lines

---
drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/mgc/mgc_request.c +1 -1
index 23600fb..e98a2ce 100644
@@ -373,7 +373,7 @@ static int config_log_add(struct obd_device *obd, char *logname,
 	return rc;
 }
 
-DEFINE_MUTEX(llog_process_lock);
+static DEFINE_MUTEX(llog_process_lock);
 
 /** Stop watching for updates on this log.
 */
Signature · 1 line
2.7.4