* filemap.c: interesting check around zero_length_segment:
@ 2007-06-29 7:56 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2007-06-29 7:56 UTC (permalink / raw)
To: linux-kernel; +Cc: devel
Adding -W -Wno-stupid-warnings results in the following warning:
mm/filemap.c: In function 'generic_file_buffered_write':
mm/filemap.c:2179: warning: comparison of unsigned expression >= 0 is always true
if (likely(copied >= 0)) {
if (!status)
status = copied;
Branch is always taken since "copied" is size_t.
Such code doesn't exist in -mm, but is this something to worry about for
current and older kernels?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-29 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-29 7:56 filemap.c: interesting check around zero_length_segment: Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox