From: Jan Hudec <bulb@ucw.cz>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: linux-fsdevel@vger.kernel.org, vadiraj c s <vadics@rediffmail.com>
Subject: Re: buffer cache
Date: Sat, 13 Sep 2003 19:28:36 +0200 [thread overview]
Message-ID: <20030913172836.GE31719@vagabond> (raw)
In-Reply-To: <OF9E537C2C.1FA2D532-ON87256DA0.005EDCCE-88256DA0.005FB0EE@us.ibm.com>
On Sat, Sep 13, 2003 at 11:25:29 -0600, Bryan Henderson wrote:
>
>
>
>
> >>I get an error saying Undefined reference, the functions are
> >>inline functions.
> >
> >Kernel stuff must be compiled with optimization due to this and ...
>
> Are you sure? I compile a filesystem driver module with no optimization
> all the time. Without optimization, the functions that are supposed to be
> inline become out-of-line, but it still compiles. On older versions of
> Linux, I did have to use -O because there were some "extern inline"
> functions, but not now. This is a 2.4.20ish kernel; maybe there are extern
> inlines in newer kernel code?
>
> But here, we're apparently talking about the link editor (ld) "undefined
> reference" error, which means it isn't a question of compiling kernel code
> at all - he's trying to create an executable. That still wouldn't cause a
> problem with inline functions, but I suspect the problem is really with
> other (external) functions with similar names that the inline functions
> call.
... you are right. The error looks like he is trying to do something
wrong (binary instead of relocable object).
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
next prev parent reply other threads:[~2003-09-13 17:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-13 8:51 buffer cache vadiraj c s
2003-09-13 10:27 ` Jan Hudec
2003-09-13 13:14 ` Matthew Wilcox
2003-09-13 17:25 ` Bryan Henderson
2003-09-13 17:28 ` Jan Hudec [this message]
2003-09-14 9:32 ` David Woodhouse
2003-09-14 10:03 ` Jan Hudec
2003-09-14 10:37 ` David Woodhouse
2003-09-14 11:19 ` Jan Hudec
2003-09-15 16:18 ` Bryan Henderson
2003-09-15 16:35 ` Greg KH
2003-09-15 22:41 ` Bryan Henderson
2003-09-16 5:13 ` David Woodhouse
2003-09-16 10:18 ` Jamie Lokier
2003-09-16 12:16 ` David Woodhouse
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=20030913172836.GE31719@vagabond \
--to=bulb@ucw.cz \
--cc=hbryan@us.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=vadics@rediffmail.com \
/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