lkml.org 
[lkml]   [2003]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subject[PATCH] Unused variable warning in fs/ext3/super.c if CONFIG_QUOTA is not defined
Folks,

the following two patches fix a compile warning in fs/ext3/super.c
if CONFIG_QUOTA is not defined.

The patches apply against 2.4.22-rc1-ac1 and 2.6.0-test2.

Stephane Ouellette

--- linux-2.4.22-rc1-ac1-orig/fs/ext3/super.c Fri Aug 8 22:34:32 2003
+++ linux-2.4.22-rc1-ac1-fixed/fs/ext3/super.c Fri Aug 8 23:48:54 2003
@@ -449,7 +449,10 @@
}

static struct dquot_operations ext3_qops;
+
+#ifdef CONFIG_QUOTA
static int (*old_sync_dquot)(struct dquot *dquot);
+#endif

static struct super_operations ext3_sops = {
read_inode: ext3_read_inode, /* BKL held */--- linux-2.6.0-test2-orig/fs/ext3/super.c 2003-07-27 13:09:04.000000000 -0400
+++ linux-2.6.0-test2-fixed/fs/ext3/super.c 2003-08-08 23:52:42.000000000 -0400
@@ -2000,7 +2000,9 @@
/* Blocks: quota info + (4 pointer blocks + 1 entry block) * (3 indirect + 1 descriptor + 1 bitmap) + superblock */
#define EXT3_V0_QFMT_BLOCKS 27

+#ifdef CONFIG_QUOTA
static int (*old_sync_dquot)(struct dquot *dquot);
+#endif

static int ext3_sync_dquot(struct dquot *dquot)
{
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.027 / U:7.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site