mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]: Fix __init declarations in Compaq SMART2 Controller driver
@ 2007-02-28 19:24 Prarit Bhargava
  0 siblings, 0 replies; only message in thread
From: Prarit Bhargava @ 2007-02-28 19:24 UTC (permalink / raw)
  To: linux-kernel, akpm, mike.miller, chirag.kantharia; +Cc: Prarit Bhargava

Fix __init declarations in Compaq SMART2 Controller driver.

Resolves MODPOST warnings similar to:

WARNING: drivers/block/cpqarray.o - Section mismatch: reference to
.init.text:cpqarray_init_one from .data.rel.local between 'cpqarray_pci_driver'
(at offset 0x20) and 'smart1_access'

Signed-off-by: Prarit Bhargava <prarit@redhat.com>

--- linux-2.6.18.ia64.orig/drivers/block/cpqarray.c	2007-02-14 11:36:20.000000000 -0500
+++ linux-2.6.18.ia64/drivers/block/cpqarray.c	2007-02-14 13:08:57.000000000 -0500
@@ -212,7 +212,7 @@ static struct proc_dir_entry *proc_array
  * Get us a file in /proc/array that says something about each controller.
  * Create /proc/array if it doesn't exist yet.
  */
-static void __init ida_procinit(int i)
+static void __devinit ida_procinit(int i)
 {
 	if (proc_array == NULL) {
 		proc_array = proc_mkdir("cpqarray", proc_root_driver);
@@ -390,7 +390,7 @@ static void __devexit cpqarray_remove_on
 }
 
 /* pdev is NULL for eisa */
-static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev)
+static int __devinit cpqarray_register_ctlr( int i, struct pci_dev *pdev)
 {
 	request_queue_t *q;
 	int j;
@@ -511,7 +511,7 @@ Enomem4:
 	return -1;
 }
 
-static int __init cpqarray_init_one( struct pci_dev *pdev,
+static int __devinit cpqarray_init_one( struct pci_dev *pdev,
 	const struct pci_device_id *ent)
 {
 	int i;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-28 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-28 19:24 [PATCH]: Fix __init declarations in Compaq SMART2 Controller driver Prarit Bhargava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome