Re: [PATCH 5/7] kfifo: add DEFINE_KFIFO and friends, add very tinyfunctions

From: Andrew Morton
Date: Tue Nov 24 2009 - 18:31:06 EST


On Fri, 20 Nov 2009 09:27:13 +0100
Stefani Seibold <stefani@xxxxxxxxxxx> wrote:

> Add DECLARE_KFIFO - macro to declare a kfifo and the associated buffer inside a struct
> Add INIT_KFIFO - Initialize a kfifo declared by DECLARED_KFIFO
> Add DEFINE_KFIFO - macro to define and initialize a kfifo as a global or local object
> Add kfifo_size() - returns the size of the fifo in bytes
> Add kfifo_is_empty() - returns true if the fifo is empty
> Add kfifo_is_full() - returns true if the fifo is full
> Add kfifo_avail() - returns the number of bytes available in the FIFO
> Do some code cleanup

Causes this:


drivers/scsi/libiscsi_tcp.c: In function 'iscsi_tcp_cleanup_task':
drivers/scsi/libiscsi_tcp.c:449: warning: ignoring return value of 'kfifo_in', declared with attribute warn_unused_result
drivers/scsi/libiscsi_tcp.c:456: warning: ignoring return value of 'kfifo_in', declared with attribute warn_unused_result
drivers/scsi/libiscsi_tcp.c: In function 'iscsi_tcp_r2t_rsp':
drivers/scsi/libiscsi_tcp.c:557: warning: ignoring return value of 'kfifo_in', declared with attribute warn_unused_result
drivers/scsi/libiscsi_tcp.c:573: warning: ignoring return value of 'kfifo_in', declared with attribute warn_unused_result
drivers/scsi/libiscsi_tcp.c:583: warning: ignoring return value of 'kfifo_in', declared with attribute warn_unused_result
drivers/scsi/libiscsi_tcp.c: In function 'iscsi_tcp_get_curr_r2t':
drivers/scsi/libiscsi_tcp.c:985: warning: ignoring return value of 'kfifo_in', declared with attribute warn_unused_result
drivers/scsi/libiscsi_tcp.c:993: warning: ignoring return value of 'kfifo_out', declared with attribute warn_unused_result
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/