From: "Devesh Sharma" <devesh28@gmail.com>
To: "Sam Ravnborg" <sam@ravnborg.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Compiling dependent module
Date: Tue, 10 Oct 2006 10:56:07 +0530 [thread overview]
Message-ID: <309a667c0610092226q7c92b325qcf262e7df56c27a@mail.gmail.com> (raw)
In-Reply-To: <20061007181936.GA5937@uranus.ravnborg.org>
Hello sam, thanks for replying,
I have another doubt in the same,
generally when we compile any external kernel module which uses some
kernel symbol, there we don't see any such warnings even though we are
compiling our module separately? So compiling a dependent module
separately is similar to compiling a external kernel module.
Why such warninigs are being observed here in dependent module while compiling?
On 10/7/06, Sam Ravnborg <sam@ravnborg.org> wrote:
> On Sat, Oct 07, 2006 at 05:42:47PM +0530, Devesh Sharma wrote:
> > Hello all,
> >
> > I have a situation where, I have one parent module in ../hello/
> > directory which exports one symbol (g_my_export). I have a dependent
> > module in ../hello1/ directory. Both have it's own makefiles.
> > Compiling of parent module (hello.ko) is fine, but during compilation
> > of dependent module (hello1.ko) I see a warning that g_my_export is
> > undefined.
> >
> > On the other hand when I do depmod -a and modprobe, dependent module
> > inserts successfully in kernel.
> >
> > I want to remove compile time warning. What should I do?
>
> Compile both module in same go.
> See Documentation/kbuild/modules.txt for a description.
>
> In short create a kbuild file that points to both modules
> so kbuild knows about both modules when it builds them.
>
> Sam
>
prev parent reply other threads:[~2006-10-10 5:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-07 12:12 Devesh Sharma
2006-10-07 18:19 ` Sam Ravnborg
2006-10-10 5:26 ` Devesh Sharma [this message]
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=309a667c0610092226q7c92b325qcf262e7df56c27a@mail.gmail.com \
--to=devesh28@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.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
all inboxes | Powered by JetHome®