[PATCH] Minor warning when building ext3 without quota

From: Adam Wysocki (gophi_at_chmurka.net)
Date: 11/12/05

  • Next message: Adrian Bunk: "Re: Which version of 2.6.11 is most stable"
    Date:	Sat, 12 Nov 2005 05:28:48 +0100 (CET)
    To: linux-kernel@vger.kernel.org
    
    

    From: Adam Wysocki <gophi@nospam.chmurka.net>

    This tiny patch eliminates a warning message about unused variable
    sbi, when compiling ext3 support without quota support enabled.

    Signed-off-by: Adam Wysocki <gophi@nospam.chmurka.net>

    ---
    --- linux-2.6.14.2/fs/ext3/super.c.orig Sat Nov 12 05:17:24 2005
    +++ linux-2.6.14.2/fs/ext3/super.c      Sat Nov 12 05:17:44 2005
    @@ -513,7 +513,9 @@ static void ext3_clear_inode(struct inod
     static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs)
     {
     	struct super_block *sb = vfs->mnt_sb;
    +#if defined(CONFIG_QUOTA)
     	struct ext3_sb_info *sbi = EXT3_SB(sb);
    +#endif
     	if (test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA)
     		seq_puts(seq, ",data=journal");
    -- 
    Adam Wysocki :: www.gophi.rotfl.pl :: GG: 1234 :: Fidonet: 2:480/138
    -
    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/
    

  • Next message: Adrian Bunk: "Re: Which version of 2.6.11 is most stable"

    Relevant Pages