From: Eliot Blennerhassett <linux@audioscience.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Greg KH <greg@kroah.com>, alsa-devel@alsa-project.org
Subject: [OT] visible symbols was Re: asihpi driver -> kernel
Date: Thu, 20 Dec 2007 17:09:16 +1300 [thread overview]
Message-ID: <4769EAEC.5060208@audioscience.com> (raw)
In-Reply-To: <s5hzlw6vmax.wl%tiwai@suse.de>
Takashi Iwai wrote:
> At Wed, 19 Dec 2007 11:13:25 +1300,
> Eliot Blennerhassett wrote:
>> BTW is there any way to not export functions/variables that are used
>> only inside the kernel module? (but used between object files that make
>> up the module so cannot be made static)
>
> Remember that a driver can be built in a kernel, not as a module.
>
>> I.e. if the module was compiled as one huge sourcefile, almost
>> everything could be static.
>
> You can do it in that way, of course :)
Hmmm. Seems to be a general problem whether building a shared library,
or a kernel module.
I.e. as soon as I have more than one source file in my lib or module, I
suddenly have to make some functions not static, and they become visible
globally.
Is there no way to compile and link a.c and b.c so that only specific
entry points are visible before statically linking ab.o with the rest of
the kernel or making ab.o into a kernel module.
--
Eliot
next prev parent reply other threads:[~2007-12-20 4:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200709051300.35503.linux@audioscience.com>
[not found] ` <s5hzm01tn8w.wl%tiwai@suse.de>
[not found] ` <47141823.4000307@audioscience.com>
2007-10-23 12:16 ` asihpi driver -> kernel Takashi Iwai
2007-11-13 10:01 ` Eliot Blennerhassett
2007-12-06 23:33 ` Eliot Blennerhassett
2007-12-13 15:16 ` Takashi Iwai
2007-12-14 16:09 ` Takashi Iwai
2007-12-18 0:16 ` Eliot Blennerhassett
2007-12-18 12:57 ` Takashi Iwai
2007-12-18 20:52 ` Eliot Blennerhassett
2007-12-19 13:33 ` Takashi Iwai
2007-12-19 20:42 ` Eliot Blennerhassett
2007-12-18 22:13 ` Eliot Blennerhassett
2007-12-19 13:36 ` Takashi Iwai
2007-12-20 4:09 ` Eliot Blennerhassett [this message]
2007-12-20 11:14 ` [OT] visible symbols was " Takashi Iwai
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=4769EAEC.5060208@audioscience.com \
--to=linux@audioscience.com \
--cc=alsa-devel@alsa-project.org \
--cc=greg@kroah.com \
--cc=tiwai@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.