Re: 2.6.17-rc5-mm2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Barry K. Nathan" <[email protected]> wrote:
>
> On 6/1/06, Jesper Juhl <[email protected]> wrote:
> > Got a few build warnings with this one :
> 
> On the topic of build warnings, I got these (it's still building, and
> some of the earlier build output has gone past screen's scrollback
> buffer, so this might not be everything):
> 
> drivers/scsi/libsrp.c: In function 'srp_cmd_perform':
> drivers/scsi/libsrp.c:434: warning: implicit declaration of function
> 'scsi_host_get_command'
> drivers/scsi/libsrp.c:434: warning: assignment makes pointer from
> integer without a cast

Yes, I managed to lose a fix-up-the-rejects patch.  I wonder why it
compiled for me..

--- 25/include/scsi/scsi_cmnd.h~git-scsi-target-fixup	Thu Jun  1 15:38:27 2006
+++ 25-akpm/include/scsi/scsi_cmnd.h	Thu Jun  1 15:39:04 2006
@@ -150,11 +150,16 @@ struct scsi_cmnd {
 #define SCSI_STATE_MLQUEUE         0x100b
 
 
+extern struct scsi_cmnd *scsi_host_get_command(struct Scsi_Host *,
+					       enum dma_data_direction, gfp_t);
 extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t);
+extern void scsi_host_put_command(struct Scsi_Host *, struct scsi_cmnd *);
 extern void scsi_put_command(struct scsi_cmnd *);
 extern void scsi_io_completion(struct scsi_cmnd *, unsigned int, unsigned int);
 extern void scsi_finish_command(struct scsi_cmnd *cmd);
 extern void scsi_req_abort_cmd(struct scsi_cmnd *cmd);
+extern struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *, gfp_t);
+extern void scsi_free_sgtable(struct scatterlist *, int);
 
 extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
 				 size_t *offset, size_t *len);
_


> ipc/msg.c: In function 'sys_msgctl':
> ipc/msg.c:338: warning: 'setbuf.qbytes' may be used uninitialized in
> this function
> ipc/msg.c:338: warning: 'setbuf.uid' may be used uninitialized in this function
> ipc/msg.c:338: warning: 'setbuf.gid' may be used uninitialized in this function
> ipc/msg.c:338: warning: 'setbuf.mode' may be used uninitialized in this function


Various false positives from gcc-4.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux