OpenVZ Forum


Home » Mailing lists » Devel » filemap.c: interesting check around zero_length_segment:
filemap.c: interesting check around zero_length_segment: [message #14481] Fri, 29 June 2007 07:56
Alexey Dobriyan is currently offline  Alexey Dobriyan
Messages: 195
Registered: August 2006
Senior Member
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?
 
Read Message
Previous Topic: [RFC][PATCH 0/3] Containers: Integrated RSS and pagecache control v5
Next Topic: [PATCH] se401: fix "&& 0x" typo
Goto Forum:
  


Current Time: Sat Sep 14 06:49:19 GMT 2024

Total time taken to generate the page: 0.06352 seconds