From: Randy Dunlap Date: Sun, 25 Jun 2006 12:48:05 +0000 (-0700) Subject: [PATCH] megaraid_mbox: fix section mismatch warnings X-Git-Tag: v2.6.18-rc1~972 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cedfb178ada245b6c52a654936b34d7996e26a1d;p=linux-2.6-omap-h63xx.git [PATCH] megaraid_mbox: fix section mismatch warnings Fix section warning: WARNING: drivers/scsi/megaraid/megaraid_mbox.o - Section mismatch: reference to .init.text: from .text between 'megaraid_probe_one' (at offset 0x171e) and 'megaraid_queue_command' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index bec1424eda8..b7caf60638e 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c @@ -714,7 +714,7 @@ megaraid_io_detach(adapter_t *adapter) * . Allocate memory required for all the commands * . Use internal library of FW routines, build up complete soft state */ -static int __init +static int __devinit megaraid_init_mbox(adapter_t *adapter) { struct pci_dev *pdev;