login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
30
Re: [PATCH 02/10] scsi: fix integer as NULL pointer warnings
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
James Bottomley <James.Bottomley@...>
To: Harvey Harrison <harvey.harrison@...>
Cc: Andrew Morton <akpm@...>, LKML <linux-kernel@...>, linux-scsi <linux-scsi@...>
Subject:
Re: [PATCH 02/10] scsi: fix integer as NULL pointer warnings
Date: Wednesday, April 30, 2008 - 6:54 pm
On Wed, 2008-04-30 at 15:34 -0700, Harvey Harrison wrote:
quoted text
> On Wed, 2008-04-30 at 17:29 -0500, James Bottomley wrote: > > On Wed, 2008-04-30 at 15:03 -0700, Harvey Harrison wrote: > > > drivers/scsi/FlashPoint.c:906:9: warning: Using plain integer as NULL pointer > > > drivers/scsi/FlashPoint.c:907:53: warning: Using plain integer as NULL pointer > > > drivers/scsi/FlashPoint.c:922:1: warning: Using plain integer as NULL pointer > > > The flashpoint initialiser changes look wrong: {0} is a conventional > > notation for zero initialise this structure. Sparse should probably be > > taught to recognise that. > > Actually, looking closer, should this be initialized at all? Can we > just remove the initialization here and let them end up in .bss?
Yes, but the conventional initialiser doesn't change that (as in zero initialise a static and it ends up in bss anyway). James --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 02/10] scsi: fix integer as NULL pointer warnings
, Harvey Harrison
, (Wed Apr 30, 6:03 pm)
Re: [PATCH 02/10] scsi: fix integer as NULL pointer warnings
, Alan Cox
, (Wed Apr 30, 7:29 pm)
Re: [PATCH 02/10] scsi: fix integer as NULL pointer warnings
, James Bottomley
, (Wed Apr 30, 6:29 pm)
RE: [PATCH 02/10] scsi: fix integer as NULL pointer warnings
, Mark Harvey
, (Thu May 1, 5:50 pm)
Re: [PATCH 02/10] scsi: fix integer as NULL pointer warnings
, Harvey Harrison
, (Wed Apr 30, 6:34 pm)
Re: [PATCH 02/10] scsi: fix integer as NULL pointer warnings
, James Bottomley
, (Wed Apr 30, 6:54 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Peter Zijlstra
[RFC][PATCH 7/7] lockdep: spin_lock_nest_lock()
Gabriel C
Re: 2.6.24-rc2-mm1
Andrew Morton
Re: [PATCH 2.6.21] cramfs: add cramfs Linear XIP
Jiri Kosina
Re: 2.6.21-rc5-mm4
git
:
linux-netdev
:
Gregory Haskins
[RFC PATCH 00/17] virtual-bus
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
1007 guests
online.
Online users
zeekec
Jeremy
Syndicate