* [PATCH] lustre: obdclass: fix sparse warning
@ 2015-11-01 8:42 Paul Davies C
2015-11-07 1:13 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Paul Davies C @ 2015-11-01 8:42 UTC (permalink / raw)
To: lustre-devel, oleg.drokin, andreas.dilger, gregkh, devel, linux-kernel
Fix the following warning given by sparse:
drivers/staging/lustre/lustre/obdclass/cl_lock.c:690:5: warning: symbol 'cl_lock_mutex_try' was not declared. Should it be static?
Signed-off-by: Paul Davies C <pauldaviesc@gmail.com>
---
drivers/staging/lustre/lustre/obdclass/cl_lock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/obdclass/cl_lock.c b/drivers/staging/lustre/lustre/obdclass/cl_lock.c
index 5621beb..6f83452 100644
--- a/drivers/staging/lustre/lustre/obdclass/cl_lock.c
+++ b/drivers/staging/lustre/lustre/obdclass/cl_lock.c
@@ -687,7 +687,7 @@ EXPORT_SYMBOL(cl_lock_mutex_get);
*
* \see cl_lock_mutex_get()
*/
-int cl_lock_mutex_try(const struct lu_env *env, struct cl_lock *lock)
+static int cl_lock_mutex_try(const struct lu_env *env, struct cl_lock *lock)
{
int result;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] lustre: obdclass: fix sparse warning
2015-11-01 8:42 [PATCH] lustre: obdclass: fix sparse warning Paul Davies C
@ 2015-11-07 1:13 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2015-11-07 1:13 UTC (permalink / raw)
To: Paul Davies C
Cc: lustre-devel, oleg.drokin, andreas.dilger, devel, linux-kernel
On Sun, Nov 01, 2015 at 02:12:29PM +0530, Paul Davies C wrote:
> Fix the following warning given by sparse:
>
> drivers/staging/lustre/lustre/obdclass/cl_lock.c:690:5: warning: symbol 'cl_lock_mutex_try' was not declared. Should it be static?
>
> Signed-off-by: Paul Davies C <pauldaviesc@gmail.com>
> ---
> drivers/staging/lustre/lustre/obdclass/cl_lock.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lustre/obdclass/cl_lock.c b/drivers/staging/lustre/lustre/obdclass/cl_lock.c
> index 5621beb..6f83452 100644
> --- a/drivers/staging/lustre/lustre/obdclass/cl_lock.c
> +++ b/drivers/staging/lustre/lustre/obdclass/cl_lock.c
> @@ -687,7 +687,7 @@ EXPORT_SYMBOL(cl_lock_mutex_get);
> *
> * \see cl_lock_mutex_get()
> */
> -int cl_lock_mutex_try(const struct lu_env *env, struct cl_lock *lock)
> +static int cl_lock_mutex_try(const struct lu_env *env, struct cl_lock *lock)
> {
> int result;
>
Someone did this before you did, sorry :(
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] lustre: obdclass: fix sparse warning
2015-10-24 7:28 Paul Davies C
@ 2015-10-25 1:57 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2015-10-25 1:57 UTC (permalink / raw)
To: Paul Davies C; +Cc: oleg.drokin, andreas.dilger, devel, linux-kernel
On Sat, Oct 24, 2015 at 12:58:20PM +0530, Paul Davies C wrote:
> This patch fixes the following warnings given by the sparse:
>
> drivers/staging/lustre/lustre/obdclass/linux/linux-module.c:424:5: warning: symbol 'class_procfs_init' was not declared. Should it be static?
> drivers/staging/lustre/lustre/obdclass/linux/linux-module.c:460:5: warning: symbol 'class_procfs_clean' was not declared. Should it be static?
> drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c:161:5: warning: symbol 'obd_sysctl_init' was not declared. Should it be static?
> drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c:166:6: warning: symbol 'obd_sysctl_clean' was not declared. Should it be static?
>
> Signed-off-by: Paul Davies C <pauldaviesc@gmail.com>
> ---
> drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 4 ++--
> drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
This doesn't apply to my staging-testing branch of staging.git.
Please rebase and resend, if it is still needed.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] lustre: obdclass: fix sparse warning
@ 2015-10-24 7:28 Paul Davies C
2015-10-25 1:57 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Paul Davies C @ 2015-10-24 7:28 UTC (permalink / raw)
To: oleg.drokin, andreas.dilger, gregkh, devel, linux-kernel
This patch fixes the following warnings given by the sparse:
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c:424:5: warning: symbol 'class_procfs_init' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c:460:5: warning: symbol 'class_procfs_clean' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c:161:5: warning: symbol 'obd_sysctl_init' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c:166:6: warning: symbol 'obd_sysctl_clean' was not declared. Should it be static?
Signed-off-by: Paul Davies C <pauldaviesc@gmail.com>
---
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 4 ++--
drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
index 6218ef3..45d92c2 100644
--- a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
+++ b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
@@ -421,7 +421,7 @@ static struct attribute_group lustre_attr_group = {
.attrs = lustre_attrs,
};
-int class_procfs_init(void)
+static int class_procfs_init(void)
{
int rc = -ENOMEM;
struct dentry *file;
@@ -457,7 +457,7 @@ out:
return rc;
}
-int class_procfs_clean(void)
+static int class_procfs_clean(void)
{
if (debugfs_lustre_root != NULL)
debugfs_remove_recursive(debugfs_lustre_root);
diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c
index 1515163..6f13f21 100644
--- a/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c
+++ b/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c
@@ -158,11 +158,11 @@ static struct attribute_group lustre_attr_group = {
.attrs = lustre_attrs,
};
-int obd_sysctl_init(void)
+static int obd_sysctl_init(void)
{
return sysfs_create_group(lustre_kobj, &lustre_attr_group);
}
-void obd_sysctl_clean(void)
+static void obd_sysctl_clean(void)
{
}
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-07 2:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-01 8:42 [PATCH] lustre: obdclass: fix sparse warning Paul Davies C
2015-11-07 1:13 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2015-10-24 7:28 Paul Davies C
2015-10-25 1:57 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).