scsi: sim710: fix build warning
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 11 Feb 2016 04:59:03 +0000 (10:29 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
We are getting build warning about:
 "Section mismatch in reference from the variable sim710_eisa_driver to
 the function .init.text:sim710_eisa_probe()
 The variable sim710_eisa_driver references the function __init
 sim710_eisa_probe()"

sim710_eisa_probe() was having __init but that was being referenced from
sim710_eisa_driver.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sim710.c

index 3b3b56f4a8300ae7ebac68f4c27fb26863cef1e8..82ed99848378f6a496875ba3e4f6f10ef6cd76e3 100644 (file)
@@ -176,8 +176,7 @@ static struct eisa_device_id sim710_eisa_ids[] = {
 };
 MODULE_DEVICE_TABLE(eisa, sim710_eisa_ids);
 
-static __init int
-sim710_eisa_probe(struct device *dev)
+static int sim710_eisa_probe(struct device *dev)
 {
        struct eisa_device *edev = to_eisa_device(dev);
        unsigned long io_addr = edev->base_addr;