quota: fix redefinition of sync_quota_sb()
Subsystems (3)
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.
Signed-off-by Alexander Beregalov <[email protected]>
--- fs/quota/quota.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
fs/quota/quota.c +2 -0
@@ -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