From: Alexander Beregalov <a.beregalov@gmail.com>
To: linux-next@vger.kernel.org, linux-fsdevel@vger.kernel.org,
viro@zeniv.linux.org.uk
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Subject: [PATCH] quota: fix redefinition of sync_quota_sb()
Date: Tue, 5 May 2009 14:43:55 +0400 [thread overview]
Message-ID: <1241520235-16083-1-git-send-email-a.beregalov@gmail.com> (raw)
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
reply other threads:[~2009-05-05 10:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1241520235-16083-1-git-send-email-a.beregalov@gmail.com \
--to=a.beregalov@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).