All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] quota: fix redefinition of sync_quota_sb()
@ 2009-05-05 10:43 Alexander Beregalov
  0 siblings, 0 replies; only message in thread
From: Alexander Beregalov @ 2009-05-05 10:43 UTC (permalink / raw)
  To: linux-next, linux-fsdevel, viro; +Cc: Alexander Beregalov

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.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
 fs/quota/quota.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index 5edb20d..95c5b42 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -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)
 {
-- 
1.6.2.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-05 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 10:43 [PATCH] quota: fix redefinition of sync_quota_sb() Alexander Beregalov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.