From: Vegard Nossum <vegard.nossum@gmail.com>
To: arjenpool@gmail.com, Andrew Morton <akpm@linux-foundation.org>
Cc: Jan Kara <jack@suse.cz>, linux-kernel@vger.kernel.org
Subject: Re: Cant compile 2.6.26-rc5-mm2 kernel
Date: Wed, 11 Jun 2008 22:03:42 +0200 [thread overview]
Message-ID: <20080611200342.GA24766@damson.getinternet.no> (raw)
In-Reply-To: <200806112008.56478.arjenpool@gmail.com>
Hi,
Thanks for the report.
On Wed, Jun 11, 2008 at 8:08 PM, <arjenpool@gmail.com> wrote:
> Today i`ve tried to compile a linux-2.6.26-rc5-mm2 kernel obtained with the
> Ketchup tool.
>
> It got halfway interupted with the following error messages:
>
> CC [M] fs/xfs/support/debug.o
> CC [M] fs/xfs/support/uuid.o
> LD [M] fs/xfs/xfs.o
> CC fs/quota.o
> fs/quota.c: In function 'quota_sync_sb':
> fs/quota.c:174: error: implicit declaration of function 'sb_dqopt'
It seems that this definition is needed regardless of CONFIG_QUOTA.
I'm attaching a patch that fixes it for me. I'm not 100% it's the right
thing.
Vegard
>From 5fc276129d8a3e2a70980104cc374bdc0d61afa3 Mon Sep 17 00:00:00 2001
From: Vegard Nossum <vegard.nossum@gmail.com>
Date: Wed, 11 Jun 2008 21:58:32 +0200
Subject: [PATCH] fs: fix build breakage
The patch
| commit 9651a656c9fbf3e8183b5eb21740edc1eb9ca16b
| Author: Jan Kara <jack@suse.cz>
| Date: Thu Jun 5 19:53:42 2008 +0000
|
| quota-move-function-macros-from-quotah-to-quotaopsh
|
causes the build to break for CONFIG_QUOTA=n.
Reported-by: Arjen Pool <arjenpool@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
---
include/linux/quotaops.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h
index 5644280..eb575d1 100644
--- a/include/linux/quotaops.h
+++ b/include/linux/quotaops.h
@@ -14,6 +14,11 @@
#include <linux/fs.h>
+static inline struct quota_info *sb_dqopt(struct super_block *sb)
+{
+ return &sb->s_dquot;
+}
+
#if defined(CONFIG_QUOTA)
/*
@@ -52,11 +57,6 @@ void vfs_dq_drop(struct inode *inode);
int vfs_dq_transfer(struct inode *inode, struct iattr *iattr);
int vfs_dq_quota_on_remount(struct super_block *sb);
-static inline struct quota_info *sb_dqopt(struct super_block *sb)
-{
- return &sb->s_dquot;
-}
-
static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type)
{
return sb_dqopt(sb)->info + type;
--
1.5.4.1
next prev parent reply other threads:[~2008-06-11 20:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 18:08 Cant compile 2.6.26-rc5-mm2 kernel arjenpool
2008-06-11 20:03 ` Vegard Nossum [this message]
2008-06-12 17:19 ` Jan Kara
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=20080611200342.GA24766@damson.getinternet.no \
--to=vegard.nossum@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=arjenpool@gmail.com \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
/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