Browse Source

[PATCH] cpqarray section fix

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

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andrew Morton 19 năm trước cách đây
mục cha
commit
bc64863814
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      drivers/block/cpqarray.c

+ 2 - 2
drivers/block/cpqarray.c

@@ -392,7 +392,7 @@ static void __devexit cpqarray_remove_one_eisa (int i)
 }
 }
 
 
 /* pdev is NULL for eisa */
 /* 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;
 	request_queue_t *q;
 	int j;
 	int j;
@@ -744,7 +744,7 @@ __setup("smart2=", cpqarray_setup);
 /*
 /*
  * Find an EISA controller's signature.  Set up an hba if we find it.
  * 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;
 	int i=0, j;
 	__u32 board_id;
 	__u32 board_id;