Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1377261 > unrolled thread
| Started by | Iban Rodriguez <iban.rodriguez@ono.com> |
|---|---|
| First post | 2016-04-12 23:20 +0200 |
| Last post | 2016-04-13 20:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
Staging: lustre: Make lustre_profile_list static Iban Rodriguez <iban.rodriguez@ono.com> - 2016-04-12 23:20 +0200
RE: Staging: lustre: Make lustre_profile_list static "Simmons, James A." <simmonsja@ornl.gov> - 2016-04-13 20:20 +0200
| From | Iban Rodriguez <iban.rodriguez@ono.com> |
|---|---|
| Date | 2016-04-12 23:20 +0200 |
| Subject | Staging: lustre: Make lustre_profile_list static |
| Message-ID | <rndT6-5HZ-45@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | "Simmons, James A." <simmonsja@ornl.gov> |
|---|---|
| Date | 2016-04-13 20:20 +0200 |
| Message-ID | <rnxyq-5qz-9@gated-at.bofh.it> |
| In reply to | #1377261 |
>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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web