I just tried to compile linux-3.6-rc4 with a recent snapshot of the gcc compiler. It said drivers/scsi/bnx2fc/bnx2fc_io.c:1810:41: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] The source code is memset(sc_cmd->sense_buffer, 0, sizeof(sc_cmd->sense_buffer)); maybe memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); might be better.
Yes this does appear to be the case - the warning is confusing though.
Agree. I'll fix this soon.