* OSS sound core optionalization has __init/__exit mismatches
@ 2008-09-12 15:22 Mike Frysinger
2008-09-13 15:19 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2008-09-12 15:22 UTC (permalink / raw)
To: tj; +Cc: Linux Kernel
this commit:
commit 1be95f401657e75984871c369d774d507e462939
Author: Tejun Heo <tj@kernel.org>
Date: Thu Aug 28 16:42:51 2008 +0200
sound: make OSS sound core optional
results in this failure:
WARNING: vmlinux.o(.init.text+0xfbf0): Section mismatch in reference
from the function _init_soundcore() to the function
.exit.text:_cleanup_oss_soundcore()
The function __init _init_soundcore() references
a function __exit _cleanup_oss_soundcore().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
_cleanup_oss_soundcore() so it may be used outside an exit section.
and can easily be seen in sound/sound_core.c:
...
static int __init init_soundcore(void)
{
...
cleanup_oss_soundcore();
...
}
...
static void __exit cleanup_oss_soundcore(void)
{
...
}
...
-mike
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: OSS sound core optionalization has __init/__exit mismatches
2008-09-12 15:22 OSS sound core optionalization has __init/__exit mismatches Mike Frysinger
@ 2008-09-13 15:19 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2008-09-13 15:19 UTC (permalink / raw)
To: Mike Frysinger; +Cc: tj, Linux Kernel
At Fri, 12 Sep 2008 11:22:21 -0400,
Mike Frysinger wrote:
>
> this commit:
> commit 1be95f401657e75984871c369d774d507e462939
> Author: Tejun Heo <tj@kernel.org>
> Date: Thu Aug 28 16:42:51 2008 +0200
> sound: make OSS sound core optional
>
> results in this failure:
> WARNING: vmlinux.o(.init.text+0xfbf0): Section mismatch in reference
> from the function _init_soundcore() to the function
> .exit.text:_cleanup_oss_soundcore()
> The function __init _init_soundcore() references
> a function __exit _cleanup_oss_soundcore().
> This is often seen when error handling in the init function
> uses functionality in the exit path.
> The fix is often to remove the __exit annotation of
> _cleanup_oss_soundcore() so it may be used outside an exit section.
>
> and can easily be seen in sound/sound_core.c:
> ...
> static int __init init_soundcore(void)
> {
> ...
> cleanup_oss_soundcore();
> ...
> }
> ...
> static void __exit cleanup_oss_soundcore(void)
> {
> ...
> }
> ...
> -mike
Thanks for reporting. It was already fixed on my sound-2.6.git.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-13 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-12 15:22 OSS sound core optionalization has __init/__exit mismatches Mike Frysinger
2008-09-13 15:19 ` Takashi Iwai
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®