2006-11-29 13:20:57

by David Binderman

[permalink] [raw]
Subject: fs/9p/vfs_inode.c(406): remark #593: variable "sb" was set but never used


Hello there,

I just tried to compile Linux kernel 2.6.18.3 with the Intel C
C compiler.

The compiler said

1.

fs/9p/vfs_inode.c(406): remark #593: variable "sb" was set but never used

The source code is

struct super_block *sb = NULL;

I have checked the source code and I agree with the compiler.
Suggest delete local variable.

2.

fs/9p/vfs_inode.c(757): remark #593: variable "olddirfidnum" was set but
never used
fs/9p/vfs_inode.c(758): remark #593: variable "newdirfidnum" was set but
never used

More of the same.

Regards

David Binderman

_________________________________________________________________
Find Singles In Your Area Now With Match.com! msnuk.match.com


2006-11-29 14:48:24

by Alexey Dobriyan

[permalink] [raw]
Subject: Re: fs/9p/vfs_inode.c(406): remark #593: variable "sb" was set but never used

On 11/29/06, d binderman <[email protected]> wrote:
>
> Hello there,
>
> I just tried to compile Linux kernel 2.6.18.3 with the Intel C
> C compiler.
>
> The compiler said
>
> 1.
>
> fs/9p/vfs_inode.c(406): remark #593: variable "sb" was set but never used
>
> The source code is
>
> struct super_block *sb = NULL;
>
> I have checked the source code and I agree with the compiler.
> Suggest delete local variable.
>
> 2.
>
> fs/9p/vfs_inode.c(757): remark #593: variable "olddirfidnum" was set but
> never used
> fs/9p/vfs_inode.c(758): remark #593: variable "newdirfidnum" was set but
> never used

Please, upload full list of these warnings somewhere and post URL.