From: Rusty Russell <rusty@rustcorp.com.au>
To: Dawson Engler <engler@csl.Stanford.EDU>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CHECKER] __init functions called by non-__init
Date: Sat, 07 Apr 2001 05:31:43 +1000 [thread overview]
Message-ID: <m14lbxT-001PHvC@mozart> (raw)
In-Reply-To: Your message of "Wed, 04 Apr 2001 23:49:48 MST." <200104050649.XAA22384@csl.Stanford.EDU>
In message <200104050649.XAA22384@csl.Stanford.EDU> you write:
> where if you look in the code, the flagged routine generic_NCR53C400A_setup
> does indeed not have __init:
> void generic_NCR53C400A_setup (char *str, int *ints) {
> internal_setup (BOARD_NCR53C400A, str, ints);
> }
As long as, of course, making that function an __init would not make
it a class 2 error.
> void __init uninit_aedsp16(void)
>
> static void __exit cleanup_aedsp16(void) {
> uninit_aedsp16();
> }
Ick. Currently, this will work, since if it's not a module, __exit
function never get included or called. If it is a module, __init does
nothing.
It's incredibly poor taste, though, and if we ever implement __init
dropping for modules (Keith?), it'll break horribly of course. Thus
it's a bug to call __init functions from __exit functions, but not a
very exciting one.
Rusty.
--
Premature optmztion is rt of all evl. --DK
next prev parent reply other threads:[~2001-04-06 19:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-05 6:49 [CHECKER] __init functions called by non-__init Dawson Engler
2001-04-06 19:31 ` Rusty Russell [this message]
2001-04-06 19:32 ` David S. Miller
2001-04-07 21:29 ` Pavel Machek
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=m14lbxT-001PHvC@mozart \
--to=rusty@rustcorp.com.au \
--cc=engler@csl.Stanford.EDU \
--cc=linux-kernel@vger.kernel.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