Skip to contentSkip to conversation

Remove warning in fs/ext3/super.c

PATCH RESEND New Stephane Ouellette 1 participant 1 message Aug 16, 2003

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Remove warning in fs/ext3/super.c

Andrew,

those patches fix a compile warning because the variable
old_sync_dquot is used only if CONFIG_QUOTA is defined.

Included patches are for 2.4.22-rc1-ac1 and 2.6.0-test2.

Stephane Ouellette.

fs/ext3/super.c +2 -0
@@ -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)
 {
fs/ext3/super.c +3 -0
@@ -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 */