[PATCH] quota: fix redefinition of sync_quota_sb()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux