[PATCH] fs/isofs/namei.c: Remove uninitialized local vars warning,was: Re: Arr! Linux 2.6.23-rc7

From: Borislav Petkov
Date: Thu Sep 20 2007 - 01:06:25 EST


Hi Andrew,

since there's no iso9660 maintainer i send this one to you :).
---
From: Borislav Petkov <bbpetkov@xxxxxxxx>

shut up those:
fs/isofs/namei.c: In function 'isofs_lookup':
fs/isofs/namei.c:161: warning: 'offset' may be used uninitialized in this function
fs/isofs/namei.c:161: warning: 'block' may be used uninitialized in this function

By the way, they get overwritten at the end of isofs_find_entry().

Signed-off-by: Borislav Petkov <bbpetkov@xxxxxxxx>

fs/isofs/namei.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--
--- 23-rc7/fs/isofs/namei.c.orig 2007-09-20 06:34:19.000000000 +0200
+++ 23-rc7/fs/isofs/namei.c 2007-09-20 06:35:23.000000000 +0200
@@ -158,7 +158,8 @@ isofs_find_entry(struct inode *dir, stru
struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
{
int found;
- unsigned long block, offset;
+ unsigned long uninitialized_var(block);
+ unsigned long uninitialized_var(offset);
struct inode *inode;
struct page *page;

--
Regards/Gruß,
Boris.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/