login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
15
Re: [RFC-PATCH] fuse: shadowed variable warning
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Miklos Szeredi <miklos@...>
To: <harvey.harrison@...>
Cc: <miklos@...>, <akpm@...>, <linux-kernel@...>
Subject:
Re: [RFC-PATCH] fuse: shadowed variable warning
Date: Friday, February 15, 2008 - 3:13 pm
>
quoted text
> fs/fuse/dir.c:909:7: warning: symbol 'err' shadows an earlier one > fs/fuse/dir.c:893:6: originally declared here > > This means that an error between lines 909 and 923 will not be > returned.
Right. Just submitted the exact same patch this morning :) Thanks, Miklos
quoted text
> > Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> > --- > Miklos, could you confirm whether or not you want the err from lines > 909-923 returned or not. If so, I can respin this patch changing the > variable name instead which would preserve the current behavior. > This patch changes behavior. > > fs/fuse/dir.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c > index 7fb514b..c4807b3 100644 > --- a/fs/fuse/dir.c > +++ b/fs/fuse/dir.c > @@ -906,7 +906,7 @@ static int fuse_permission(struct inode *inode, int mask, struct nameidata *nd) > } > > if (fc->flags & FUSE_DEFAULT_PERMISSIONS) { > - int err = generic_permission(inode, mask, NULL); > + err = generic_permission(inode, mask, NULL); > > /* If permission is denied, try to refresh file > attributes. This is also needed, because the root > -- > 1.5.4.1.1278.gc75be > > > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC-PATCH] fuse: shadowed variable warning
, Harvey Harrison
, (Fri Feb 15, 2:58 pm)
Re: [RFC-PATCH] fuse: shadowed variable warning
, Miklos Szeredi
, (Fri Feb 15, 3:13 pm)
Re: [RFC-PATCH] fuse: shadowed variable warning
, Harvey Harrison
, (Fri Feb 15, 3:40 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Brandeburg, Jesse
RE: [regression] e1000e broke e1000 (was: Re: [ANNOUNCE] e1000 toe1000e migration ...
Linus Torvalds
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
IKEDA Munehiro
[RFD] Documentation/stable_api_nonsense.txt translated into Japanese
git
:
linux-netdev
:
Paweł Staszewski
rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
Gerrit Renker
[PATCH 28/37] dccp: Integration of dynamic feature activation - part 3 (client side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
linux-activists
:
Les Andrzejewski
X386/WD90C31/SUMSUNG SYNC MASTER 4
Rob Coleman
S3
Doug Evans
Re: Stabilizing Linux
Dave `geek' Gymer
WARNING (was Re: New afio release)
Colocation donated by:
Who's online
There are currently
0 users
and
573 guests
online.
Syndicate