* Staging: lustre: Make lustre_profile_list static
@ 2016-04-12 21:08 Iban Rodriguez
2016-04-13 18:18 ` Simmons, James A.
0 siblings, 1 reply; 2+ messages in thread
From: Iban Rodriguez @ 2016-04-12 21:08 UTC (permalink / raw)
To: Oleg Drokin, Andreas Dilger, Greg Kroah-Hartman, Arnd Bergmann,
Shraddha Barke, Dmitry Eremin, Mike Rapoport, Julia Lawall
Cc: lustre-devel, devel, linux-kernel, Iban Rodriguez
Variable lustre_profile_list is only used inside obd_config.c,
better make it static
Signed-off-by: Iban Rodriguez <iban.rodriguez@ono.com>
---
drivers/staging/lustre/lustre/obdclass/obd_config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/obdclass/obd_config.c b/drivers/staging/lustre/lustre/obdclass/obd_config.c
index 5395e994deab..8d484633b83a 100644
--- a/drivers/staging/lustre/lustre/obdclass/obd_config.c
+++ b/drivers/staging/lustre/lustre/obdclass/obd_config.c
@@ -606,7 +606,7 @@ static int class_del_conn(struct obd_device *obd, struct lustre_cfg *lcfg)
return rc;
}
-LIST_HEAD(lustre_profile_list);
+static LIST_HEAD(lustre_profile_list);
struct lustre_profile *class_get_profile(const char *prof)
{
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread* RE: Staging: lustre: Make lustre_profile_list static
2016-04-12 21:08 Staging: lustre: Make lustre_profile_list static Iban Rodriguez
@ 2016-04-13 18:18 ` Simmons, James A.
0 siblings, 0 replies; 2+ messages in thread
From: Simmons, James A. @ 2016-04-13 18:18 UTC (permalink / raw)
To: 'Iban Rodriguez',
Oleg Drokin, Andreas Dilger, Greg Kroah-Hartman, Arnd Bergmann,
Shraddha Barke, Dmitry Eremin, Mike Rapoport, Julia Lawall
Cc: devel, linux-kernel, lustre-devel
>Variable lustre_profile_list is only used inside obd_config.c,
>better make it static
>
>Signed-off-by: Iban Rodriguez <iban.rodriguez@ono.com>
Acked-by: James Simmons <jsimmons@infradead.org>
>---
> drivers/staging/lustre/lustre/obdclass/obd_config.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/obdclass/obd_config.c b/drivers/staging/lustre/lustre/obdclass/obd_config.c
index 5395e994deab..8d484633b83a 100644
--- a/drivers/staging/lustre/lustre/obdclass/obd_config.c
+++ b/drivers/staging/lustre/lustre/obdclass/obd_config.c
@@ -606,7 +606,7 @@ static int class_del_conn(struct obd_device *obd, struct lustre_cfg *lcfg)
return rc;
}
-LIST_HEAD(lustre_profile_list);
+static LIST_HEAD(lustre_profile_list);
struct lustre_profile *class_get_profile(const char *prof)
{
--
1.9.1
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-13 18:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-12 21:08 Staging: lustre: Make lustre_profile_list static Iban Rodriguez
2016-04-13 18:18 ` Simmons, James A.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®