diff mbox

scsi: sim710: fix build warning

Message ID 1441375829-6061-1-git-send-email-sudipm.mukherjee@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sudip Mukherjee Sept. 4, 2015, 2:10 p.m. UTC
We were 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>
---
 drivers/scsi/sim710.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Sudip Mukherjee Sept. 15, 2015, 8 a.m. UTC | #1
On Fri, Sep 04, 2015 at 07:40:29PM +0530, Sudip Mukherjee wrote:
> We were 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>
> ---
A gentle ping.
I still get the build warning while building for i386 allmodconfig with
next-20150915.
Build is at https://travis-ci.org/sudipm-mukherjee/parport/jobs/80365417

regards
sudip
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sudip Mukherjee Dec. 9, 2015, 11:45 a.m. UTC | #2
On Tue, Sep 15, 2015 at 01:30:00PM +0530, Sudip Mukherjee wrote:
> On Fri, Sep 04, 2015 at 07:40:29PM +0530, Sudip Mukherjee wrote:
> > We were 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>
> > ---
> A gentle ping.
> I still get the build warning while building for i386 allmodconfig with
> next-20150915.
> Build is at https://travis-ci.org/sudipm-mukherjee/parport/jobs/80365417

Another gentle ping. Build warning with i386 allmodconfig is still there
with next-20151209.
Build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/95746184
 
regards
sudip
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sudip Mukherjee Jan. 9, 2016, 7:42 a.m. UTC | #3
On Wed, Dec 09, 2015 at 05:15:51PM +0530, Sudip Mukherjee wrote:
> On Tue, Sep 15, 2015 at 01:30:00PM +0530, Sudip Mukherjee wrote:
> > On Fri, Sep 04, 2015 at 07:40:29PM +0530, Sudip Mukherjee wrote:
> > > We were 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>
> > > ---
> > A gentle ping.
> > I still get the build warning while building for i386 allmodconfig with
> > next-20150915.
> > Build is at https://travis-ci.org/sudipm-mukherjee/parport/jobs/80365417
> 
> Another gentle ping. Build warning with i386 allmodconfig is still there
> with next-20151209.
> Build log is at:
> https://travis-ci.org/sudipm-mukherjee/parport/jobs/95746184

Another gentle ping. Build warning with i386 allmodconfig is still there
with next-20160108.
Build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/101006139

regards
sudip
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c
index 3b3b56f..82ed998 100644
--- a/drivers/scsi/sim710.c
+++ b/drivers/scsi/sim710.c
@@ -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;