* 2.6.12-rc3 compile error in aic7xxx_osm.c
@ 2005-04-21 17:39 Martin J. Bligh
2005-04-21 17:54 ` Steven Cole
0 siblings, 1 reply; 2+ messages in thread
From: Martin J. Bligh @ 2005-04-21 17:39 UTC (permalink / raw)
To: linux-kernel
drivers/scsi/aic7xxx/aic7xxx_osm.c: In function `ahc_linux_init':
drivers/scsi/aic7xxx/aic7xxx_osm.c:3608: parse error before `int'
drivers/scsi/aic7xxx/aic7xxx_osm.c:3609: `rc' undeclared (first use in this function)
drivers/scsi/aic7xxx/aic7xxx_osm.c:3609: (Each undeclared identifier is reported only once
drivers/scsi/aic7xxx/aic7xxx_osm.c:3609: for each function it appears in.)
drivers/scsi/aic7xxx/aic7xxx_osm.c: At top level:
drivers/scsi/aic7xxx/aic7xxx_osm.c:744: warning: `ahc_linux_detect' defined but not used
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6.12-rc3 compile error in aic7xxx_osm.c
2005-04-21 17:39 2.6.12-rc3 compile error in aic7xxx_osm.c Martin J. Bligh
@ 2005-04-21 17:54 ` Steven Cole
0 siblings, 0 replies; 2+ messages in thread
From: Steven Cole @ 2005-04-21 17:54 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: linux-kernel
Martin J. Bligh wrote:
> drivers/scsi/aic7xxx/aic7xxx_osm.c: In function `ahc_linux_init':
> drivers/scsi/aic7xxx/aic7xxx_osm.c:3608: parse error before `int'
> drivers/scsi/aic7xxx/aic7xxx_osm.c:3609: `rc' undeclared (first use in this function)
> drivers/scsi/aic7xxx/aic7xxx_osm.c:3609: (Each undeclared identifier is reported only once
> drivers/scsi/aic7xxx/aic7xxx_osm.c:3609: for each function it appears in.)
> drivers/scsi/aic7xxx/aic7xxx_osm.c: At top level:
> drivers/scsi/aic7xxx/aic7xxx_osm.c:744: warning: `ahc_linux_detect' defined but not used
>
>
Looks fixed in Linus' current tree:
--------------------------
commit 858eaca169ed5e7b1b14eebb889323e75a02af0e
tree 385e241e0cc18794b8d8b70095181e2578bee14c
parent a2755a80f40e5794ddc20e00f781af9d6320fafb
author James Bottomley <James.Bottomley@SteelEye.com> Thu, 21 Apr 2005 21:35:45 -0700
committer Linus Torvalds <torvalds@ppc970.osdl.org> Thu, 21 Apr 2005 21:35:45 -0700
[PATCH] Fix aic7xxx_osm.c compile with older gcc's
My version of gcc doesn't warn about this error (declaration in the
middle of a set of statements).
The fix is simple (this also corrects return code; for init functions it
should be zero or error).
--------------------------
Steven
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-21 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-21 17:39 2.6.12-rc3 compile error in aic7xxx_osm.c Martin J. Bligh
2005-04-21 17:54 ` Steven Cole
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox