diff mbox

fs: reiserfs/xattr.c: Make reiserfs_xattr_handlers static

Message ID 1343902157-2267-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Aug. 2, 2012, 10:09 a.m. UTC
Silences the following sparse warning:
fs/reiserfs/xattr.c:899:28: warning:
symbol 'reiserfs_xattr_handlers' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 fs/reiserfs/xattr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Sachin Kamat Aug. 13, 2012, 4:16 p.m. UTC | #1
ping...

On 2 August 2012 15:39, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Silences the following sparse warning:
> fs/reiserfs/xattr.c:899:28: warning:
> symbol 'reiserfs_xattr_handlers' was not declared. Should it be static?
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  fs/reiserfs/xattr.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
> index d319963..c196369 100644
> --- a/fs/reiserfs/xattr.c
> +++ b/fs/reiserfs/xattr.c
> @@ -896,7 +896,7 @@ static int create_privroot(struct dentry *dentry) { return 0; }
>  #endif
>
>  /* Actual operations that are exported to VFS-land */
> -const struct xattr_handler *reiserfs_xattr_handlers[] = {
> +static const struct xattr_handler *reiserfs_xattr_handlers[] = {
>  #ifdef CONFIG_REISERFS_FS_XATTR
>         &reiserfs_xattr_user_handler,
>         &reiserfs_xattr_trusted_handler,
> --
> 1.7.4.1
>
Sachin Kamat Aug. 23, 2012, 2:38 p.m. UTC | #2
Hi Jan,

Please pick this patch if it looks ok.

On 2 August 2012 15:39, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Silences the following sparse warning:
> fs/reiserfs/xattr.c:899:28: warning:
> symbol 'reiserfs_xattr_handlers' was not declared. Should it be static?
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  fs/reiserfs/xattr.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
> index d319963..c196369 100644
> --- a/fs/reiserfs/xattr.c
> +++ b/fs/reiserfs/xattr.c
> @@ -896,7 +896,7 @@ static int create_privroot(struct dentry *dentry) { return 0; }
>  #endif
>
>  /* Actual operations that are exported to VFS-land */
> -const struct xattr_handler *reiserfs_xattr_handlers[] = {
> +static const struct xattr_handler *reiserfs_xattr_handlers[] = {
>  #ifdef CONFIG_REISERFS_FS_XATTR
>         &reiserfs_xattr_user_handler,
>         &reiserfs_xattr_trusted_handler,
> --
> 1.7.4.1
>
Jan Kara Aug. 23, 2012, 3:24 p.m. UTC | #3
On Thu 23-08-12 20:08:55, Sachin Kamat wrote:
> Hi Jan,
> 
> Please pick this patch if it looks ok.
  The patch looks OK. I see that Al didn't pick it up in his tree yet so
I'll take the patch to my tree and push it in the next merge window.

								Honza
> 
> On 2 August 2012 15:39, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> > Silences the following sparse warning:
> > fs/reiserfs/xattr.c:899:28: warning:
> > symbol 'reiserfs_xattr_handlers' was not declared. Should it be static?
> >
> > Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> > ---
> >  fs/reiserfs/xattr.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
> > index d319963..c196369 100644
> > --- a/fs/reiserfs/xattr.c
> > +++ b/fs/reiserfs/xattr.c
> > @@ -896,7 +896,7 @@ static int create_privroot(struct dentry *dentry) { return 0; }
> >  #endif
> >
> >  /* Actual operations that are exported to VFS-land */
> > -const struct xattr_handler *reiserfs_xattr_handlers[] = {
> > +static const struct xattr_handler *reiserfs_xattr_handlers[] = {
> >  #ifdef CONFIG_REISERFS_FS_XATTR
> >         &reiserfs_xattr_user_handler,
> >         &reiserfs_xattr_trusted_handler,
> > --
> > 1.7.4.1
> >
> 
> 
> 
> -- 
> With warm regards,
> Sachin
diff mbox

Patch

diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index d319963..c196369 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -896,7 +896,7 @@  static int create_privroot(struct dentry *dentry) { return 0; }
 #endif
 
 /* Actual operations that are exported to VFS-land */
-const struct xattr_handler *reiserfs_xattr_handlers[] = {
+static const struct xattr_handler *reiserfs_xattr_handlers[] = {
 #ifdef CONFIG_REISERFS_FS_XATTR
 	&reiserfs_xattr_user_handler,
 	&reiserfs_xattr_trusted_handler,