From: "Randy.Dunlap" <rddunlap@osdl.org>
To: akpm <akpm@osdl.org>, amax@us.ibm.com
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] ibmasm: fix init/exit sections
Date: Thu, 6 Jan 2005 23:01:35 -0800 [thread overview]
Message-ID: <20050106230135.0c368fdd.rddunlap@osdl.org> (raw)
Fix init & exit section usage, started with this diagnostic
from reference_discarded.pl (make buildcheck):
Error: ./drivers/misc/ibmasm/module.o .data refers to 00000058 R_386_32 .exit.text
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/misc/ibmasm/module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Naurp ./drivers/misc/ibmasm/module.c~ibmasm_devexit ./drivers/misc/ibmasm/module.c
--- ./drivers/misc/ibmasm/module.c~ibmasm_devexit 2004-12-24 13:35:00.000000000 -0800
+++ ./drivers/misc/ibmasm/module.c 2005-01-06 21:33:59.261935440 -0800
@@ -57,7 +57,7 @@
#include "remote.h"
-static int __init ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
+static int __devinit ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
int err, result = -ENOMEM;
struct service_processor *sp;
@@ -161,7 +161,7 @@ error_kmalloc:
return result;
}
-static void __exit ibmasm_remove_one(struct pci_dev *pdev)
+static void __devexit ibmasm_remove_one(struct pci_dev *pdev)
{
struct service_processor *sp = (struct service_processor *)pci_get_drvdata(pdev);
---
reply other threads:[~2005-01-07 7:14 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=20050106230135.0c368fdd.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=akpm@osdl.org \
--cc=amax@us.ibm.com \
--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
all inboxes | Powered by JetHome®