Skip to contentSkip to conversation

quota: fix redefinition of sync_quota_sb()

PATCH New Alexander Beregalov 1 participant 1 message May 5, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 quota: fix redefinition of sync_quota_sb()

Fix this build error when CONFIG_QUOTA is not set:
fs/quota/quota.c:162: error: redefinition of 'sync_quota_sb' include/linux/quotaops.h:338: error: previous definition of 'sync_quota_sb' was here

sync_quota_sb() is already defined as "static inline" with empty body.

---
 fs/quota/quota.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fs/quota/quota.c +2 -0
index 5edb20d..95c5b42 100644
@@ -159,6 +159,7 @@ static int check_quotactl_valid(struct super_block *sb, int type, int cmd,
 	return error;
 }
 
+#ifdef CONFIG_QUOTA
 void sync_quota_sb(struct super_block *sb, int type)
 {
 	int cnt;
@@ -194,6 +195,7 @@ void sync_quota_sb(struct super_block *sb, int type)
 	}
 	mutex_unlock(&sb_dqopt(sb)->dqonoff_mutex);
 }
+#endif
 
 static void sync_dquots(int type)
 {
Signature · 1 line
1.6.2.3