2008-07-05 00:57:45

by Stoyan Gaydarov

[permalink] [raw]
Subject: Ext4 Compile warning 2.6.26-rc8

I found a warning while compiling the 2.6.26-rc8 I though I would
point it out and see if I could help.

fs/ext4/super.c: In function 'ext4_show_options':
fs/ext4/super.c:674: warning: unused variable 'journal'

This is a patch to get rid of the variable causing the warning. I
compiled the kernel again after applying this patch and it got rid of
the warning. If you intend to use this variable in later versions and
it was just left there as a setup then ignore this.


diff -uprN linux-2.6.26-rc8/fs/ext4/super.c devel/fs/ext4/super.c
--- linux-2.6.26-rc8/fs/ext4/super.c 2008-06-24 20:58:20.000000000 -0500
+++ devel/fs/ext4/super.c 2008-07-04 19:37:42.000000000 -0500
@@ -671,7 +671,6 @@ static int ext4_show_options(struct seq_
unsigned long def_mount_opts;
struct super_block *sb = vfs->mnt_sb;
struct ext4_sb_info *sbi = EXT4_SB(sb);
- journal_t *journal = sbi->s_journal;
struct ext4_super_block *es = sbi->s_es;

def_mount_opts = le32_to_cpu(es->s_default_mount_opts);

Signed-off-by: Stoyan Gaydarov <[email protected]>