The function megaraid_detach_one is used only wrapped by __devexit_p so define it using __devexit. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Acked-by: Sam Ravnborg <sam@xxxxxxxxxxxx> Cc: Neela Syam Kolli <megaraidlinux@xxxxxxx> Cc: James E.J. Bottomley <James.Bottomley@xxxxxxx> Cc: Yang Hongyang <yanghy@xxxxxxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: linux-scsi@xxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx --- drivers/scsi/megaraid/megaraid_mbox.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index 234f0b7..9fc9cf7 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c @@ -76,7 +76,7 @@ static int megaraid_init(void); static void megaraid_exit(void); static int megaraid_probe_one(struct pci_dev*, const struct pci_device_id *); -static void megaraid_detach_one(struct pci_dev *); +static void __devexit megaraid_detach_one(struct pci_dev *); static void megaraid_mbox_shutdown(struct pci_dev *); static int megaraid_io_attach(adapter_t *); @@ -551,7 +551,7 @@ out_probe_one: * * This routine is also called from the PCI hotplug system. */ -static void +static void __devexit megaraid_detach_one(struct pci_dev *pdev) { adapter_t *adapter; -- 1.6.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html