From: "Randy.Dunlap" <rddunlap@osdl.org>
To: torvalds <torvalds@osdl.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] oss/aedsp16: init/exit sections cleanup
Date: Sun, 27 Feb 2005 16:07:51 -0800 [thread overview]
Message-ID: <20050227160751.162cbbf8.rddunlap@osdl.org> (raw)
sound/oss/aedsp16: init/exit section cleanups:
Exit-only function uninit_aedsp16() was marked __init instead of __exit;
ae_config data was marked __initdata but used during exit;
several cleanup functions were marked _init but used for init or exit
cleanups;
Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000004 R_X86_64_PC32 .init.data+0x000000000000003b
Error: ./sound/oss/aedsp16.o .exit.text refers to 000000000000000c R_X86_64_PC32 .init.text+0x00000000000001e4
Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000013 R_X86_64_PC32 .init.text+0x0000000000000034
Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000019 R_X86_64_PC32 .init.data+0x000000000000003f
Error: ./sound/oss/aedsp16.o .exit.text refers to 0000000000000023 R_X86_64_PC32 .init.text+0x00000000000001b4
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
sound/oss/aedsp16.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff -Naurp ./sound/oss/aedsp16.c~sound_aedsp16_sections ./sound/oss/aedsp16.c
--- ./sound/oss/aedsp16.c~sound_aedsp16_sections 2005-02-27 12:54:07.333808536 -0800
+++ ./sound/oss/aedsp16.c 2005-02-27 16:07:31.392723440 -0800
@@ -489,7 +489,7 @@ static struct orVals orDMA[] __initdata
{0x00, 0x00}
};
-static struct aedsp16_info ae_config __initdata = {
+static struct aedsp16_info ae_config = {
DEF_AEDSP16_IOB,
DEF_AEDSP16_IRQ,
DEF_AEDSP16_MRQ,
@@ -1155,7 +1155,7 @@ static int __init init_aedsp16_sb(void)
return TRUE;
}
-static void __init uninit_aedsp16_sb(void)
+static void uninit_aedsp16_sb(void)
{
DBG(("uninit_aedsp16_sb: "));
@@ -1196,7 +1196,7 @@ static int __init init_aedsp16_mss(void)
return TRUE;
}
-static void __init uninit_aedsp16_mss(void)
+static void uninit_aedsp16_mss(void)
{
DBG(("uninit_aedsp16_mss: "));
@@ -1237,7 +1237,7 @@ static int __init init_aedsp16_mpu(void)
return TRUE;
}
-static void __init uninit_aedsp16_mpu(void)
+static void uninit_aedsp16_mpu(void)
{
DBG(("uninit_aedsp16_mpu: "));
@@ -1294,7 +1294,7 @@ static int __init init_aedsp16(void)
return initialized;
}
-static void __init uninit_aedsp16(void)
+static void __exit uninit_aedsp16(void)
{
if (ae_config.mss_base != -1)
uninit_aedsp16_mss();
---
reply other threads:[~2005-02-28 0:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050227160751.162cbbf8.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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®