* drivers/scsi/sym53c416.c - address of 'sym53c416*' will always evaluate as 'true' , warnings
@ 2007-07-22 13:52 Gabriel C
2007-07-22 16:23 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: Gabriel C @ 2007-07-22 13:52 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Lieven Willems, Alan Cox, linux-scsi
Hi,
I got this warnings on current git with gcc 4.2.1 :
...
drivers/scsi/sym53c416.c: In function 'sym53c416_detect':
drivers/scsi/sym53c416.c:638: warning: the address of 'sym53c416' will always evaluate as 'true'
drivers/scsi/sym53c416.c:644: warning: the address of 'sym53c416_1' will always evaluate as 'true'
drivers/scsi/sym53c416.c:650: warning: the address of 'sym53c416_2' will always evaluate as 'true'
drivers/scsi/sym53c416.c:656: warning: the address of 'sym53c416_3' will always evaluate as 'true'
...
Regards,
Gabriel C
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: drivers/scsi/sym53c416.c - address of 'sym53c416*' will always evaluate as 'true' , warnings
2007-07-22 13:52 drivers/scsi/sym53c416.c - address of 'sym53c416*' will always evaluate as 'true' , warnings Gabriel C
@ 2007-07-22 16:23 ` Matthew Wilcox
2007-07-22 16:38 ` Gabriel C
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2007-07-22 16:23 UTC (permalink / raw)
To: Gabriel C; +Cc: Linux Kernel Mailing List, Lieven Willems, Alan Cox, linux-scsi
On Sun, Jul 22, 2007 at 03:52:21PM +0200, Gabriel C wrote:
> drivers/scsi/sym53c416.c: In function 'sym53c416_detect':
> drivers/scsi/sym53c416.c:638: warning: the address of 'sym53c416' will always evaluate as 'true'
> drivers/scsi/sym53c416.c:644: warning: the address of 'sym53c416_1' will always evaluate as 'true'
> drivers/scsi/sym53c416.c:650: warning: the address of 'sym53c416_2' will always evaluate as 'true'
> drivers/scsi/sym53c416.c:656: warning: the address of 'sym53c416_3' will always evaluate as 'true'
These warnings certainly indicate a problem; I've looked through the
driver and it's a bit of a mess. Do you have one of these cards? I can
write and send you some patches to test on Monday or Tuesday, after I'm
done with the advansys driver.
--
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: drivers/scsi/sym53c416.c - address of 'sym53c416*' will always evaluate as 'true' , warnings
2007-07-22 16:23 ` Matthew Wilcox
@ 2007-07-22 16:38 ` Gabriel C
0 siblings, 0 replies; 3+ messages in thread
From: Gabriel C @ 2007-07-22 16:38 UTC (permalink / raw)
To: Matthew Wilcox
Cc: Linux Kernel Mailing List, Lieven Willems, Alan Cox, linux-scsi
Matthew Wilcox wrote:
> On Sun, Jul 22, 2007 at 03:52:21PM +0200, Gabriel C wrote:
>> drivers/scsi/sym53c416.c: In function 'sym53c416_detect':
>> drivers/scsi/sym53c416.c:638: warning: the address of 'sym53c416' will always evaluate as 'true'
>> drivers/scsi/sym53c416.c:644: warning: the address of 'sym53c416_1' will always evaluate as 'true'
>> drivers/scsi/sym53c416.c:650: warning: the address of 'sym53c416_2' will always evaluate as 'true'
>> drivers/scsi/sym53c416.c:656: warning: the address of 'sym53c416_3' will always evaluate as 'true'
>
> These warnings certainly indicate a problem; I've looked through the
> driver and it's a bit of a mess. Do you have one of these cards? I can
> write and send you some patches to test on Monday or Tuesday, after I'm
> done with the advansys driver.
>
Sorry , I don't have these cards :/
Regards,
Gabriel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-22 16:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22 13:52 drivers/scsi/sym53c416.c - address of 'sym53c416*' will always evaluate as 'true' , warnings Gabriel C
2007-07-22 16:23 ` Matthew Wilcox
2007-07-22 16:38 ` Gabriel C
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).