Re: OSS sound core optionalization has __init/__exit mismatches



At Fri, 12 Sep 2008 11:22:21 -0400,
Mike Frysinger wrote:

this commit:
commit 1be95f401657e75984871c369d774d507e462939
Author: Tejun Heo <tj@xxxxxxxxxx>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • OSS sound core optionalization has __init/__exit mismatches
    ... commit 1be95f401657e75984871c369d774d507e462939 ... make OSS sound core optional ... This is often seen when error handling in the init function ... uses functionality in the exit path. ...
    (Linux-Kernel)
  • Re: Sql*plus Auto-Commit
    ... "SET AUTOCOMMIT does not alter the commit behavior when SQL*Plus exits. ... set a WHENEVER SQLERROR EXIT ROLLBACK ...
    (comp.databases.oracle.server)
  • Re: Could Application.DoEvents(); messup code execution ??
    ... that entering method was done twice, didn't set trace on exit but Commit on ... DB was executed only ones ..I would expect Commit to be executed twice too.. ...
    (microsoft.public.dotnet.general)
  • Re: [git pull] drm patches for 2.6.16
    ... What do you use to apply these emails? ... write the commit message by hand from the mail when I check the stuff in, ... echo bad author email ...
    (Linux-Kernel)