kdb
[Top] [All Lists]

Re: patching kdb to Centos kernel : error

To: "Satish Eerpini" <eerpini@xxxxxxxxx>
Subject: Re: patching kdb to Centos kernel : error
From: "jidong xiao" <jidong.xiao@xxxxxxxxx>
Date: Mon, 18 Aug 2008 16:21:55 +0800
Cc: kdb@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=q/jx4bBoCCCR0uaIh4z/9v70VmyhDZphnUTzIByRZVc=; b=NwSeY/mQtWJ1C8E0YVNRZhju7dKc2Xzetv2iPhr/G2z0u2iLC8WxYSEs477VzWnZVq 0xC1lSJ/DWpbdmLQwvVBqxVSOcevzp7A/0I2Lq+qiJlPyGksfL2ekrS5Y8k/mSZVrGdG Uufy5iKU/j72Bq2/jiqz7NGn5gD88NxEyJZCo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=AeO36W6xNbyS0x1ShcWPYWq0dWj6H6wU9X3yY2yb6dkMmg/E/8VCdVicWqJlN+r+nY Y2rAh/aCphZhYo7vctELak+4f/wtkw6cdciRE3i9mN/EulYFPh0yPNLkBSzU4PJsdibv G/GIQGbpdM8JvBDpA2lOb7viSIh4tdJmDvY9g=
In-reply-to: <93655eb70808171224w7e4d2ce1w7b29ac7238fb06ac@mail.gmail.com>
References: <93655eb70808171119m29fa0974tef44caa326352dd0@mail.gmail.com> <93655eb70808171224w7e4d2ce1w7b29ac7238fb06ac@mail.gmail.com>
Sender: kdb-bounce@xxxxxxxxxxx
On Mon, Aug 18, 2008 at 3:24 AM, Satish Eerpini <eerpini@xxxxxxxxx> wrote:
> hi everyone , i was trying to patch kdb with CentOS 5.0 kernel
> (2.6.18-8) , and had a few rejects ( which i am still trying to
> resolve) ,.... but apart from the rejects during the kernel
> compilation i got the following error which does not seem to have
> anything to do with the rejects ............
> i have got an error in a kdb module, which has nothing to do with the
> rejected patches ( or so i guess ) :
>
>            kdb/modules/kdbm_pg.c: In function 'kdbm_show_page':
>            kdb/modules/kdbm_pg.c:349: error: implicit declaration
> of function 'PageChecked'
>            kdb/modules/kdbm_pg.c: In function 'kdbm_inode':
>            kdb/modules/kdbm_pg.c:507: error: 'struct inode' has no
> member named 'u'
>
>  the code(in kdb/modules/kdbm_pg.c) which is causing the second error
> is something like this :
>
>           iaddr += offsetof(struct inode, u);
>
> what i am not able to understand is that if 'u' is not a correct
> member of the inode , .. then what did they( whoever wrote this piece
> code) intend by 'u' ? , .....
>
> ....
> and for the first error , ... i just checked out the code ....
> according to the line no shown in the error .....the code is :
>
>           kdb_page_flags(page, Checked);
>
> and i don't see any function PageChecked ....! so what can the error
> actually mean ??
>
> Thanks in advance
> Satish
>
> --
Well I think people usually don't use KDB modules, so you can simply
disable KDB modules by setting CONFIG_KDB_MODULES=n. This can avoid
the two errors you mentioned.

Regarding your second error, you can replace "u" with "i_private".

 iaddr += offsetof(struct inode, i_private);

As to the first error, you can refer to the definition of
kdb_page_flags, which explains your question.

#define kdb_page_flags(page, type) if (Page ## type(page))
kdb_printf(" " #type);


Regards
Jason
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>