Skip to contentSkip to conversation

cpqarray: section fixups

PATCH New Randy.Dunlap 1 participant 1 message Jun 9, 2006 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpqarray: section fixups

From: Randy Dunlap <[email protected]>

Priority: not critical.
Makes cpqarray_register_ctlr() __init. Saves a little memory.

Fix section mismatch warning:
WARNING: drivers/block/cpqarray.o - Section mismatch: reference to .init.text: from .text between 'cpqarray_register_ctlr' (at offset 0x682) and 'alloc_cpqarray_hba'

---
 drivers/block/cpqarray.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/block/cpqarray.c +2 -2
@@ -392,7 +392,7 @@ static void __devexit cpqarray_remove_on
 }
 
 /* pdev is NULL for eisa */
-static int cpqarray_register_ctlr( int i, struct pci_dev *pdev)
+static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev)
 {
 	request_queue_t *q;
 	int j;
@@ -745,7 +745,7 @@ __setup("smart2=", cpqarray_setup);
 /*
  * Find an EISA controller's signature.  Set up an hba if we find it.
  */
-static int cpqarray_eisa_detect(void)
+static int __init cpqarray_eisa_detect(void)
 {
 	int i=0, j;
 	__u32 board_id;

---