Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [patch] [SCSI] qla4xxx: silence a Sparse warning
@ 2012-02-21  7:30 Dan Carpenter
  2012-02-21 13:24 ` Vikas Chaudhary
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2012-02-21  7:30 UTC (permalink / raw)
  To: Ravi Anand
  Cc: Vikas Chaudhary, iscsi-driver, James E.J. Bottomley, linux-scsi,
	kernel-janitors

Sparse complains that the definition of this funciton doesn't match the
implementation.  The "uint32_t aen_code" should be an enum.

drivers/scsi/qla4xxx/ql4_os.c:2966:5: error: symbol
	'qla4xxx_post_aen_work' redeclared with different type
	(originally declared at drivers/scsi/qla4xxx/ql4_glbl.h:184)
	- incompatible argument 2 (different signedness)

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/scsi/qla4xxx/ql4_glbl.h b/drivers/scsi/qla4xxx/ql4_glbl.h
index 954ba91..71bbc07 100644
--- a/drivers/scsi/qla4xxx/ql4_glbl.h
+++ b/drivers/scsi/qla4xxx/ql4_glbl.h
@@ -181,7 +181,8 @@ int qla4xxx_flash_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
 int qla4xxx_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
 		       struct ddb_entry *ddb_entry, uint32_t state);
 void qla4xxx_build_ddb_list(struct scsi_qla_host *ha, int is_reset);
-int qla4xxx_post_aen_work(struct scsi_qla_host *ha, uint32_t aen_code,
+int qla4xxx_post_aen_work(struct scsi_qla_host *ha,
+			  enum iscsi_host_event_code aen_code,
 			  uint32_t data_size, uint8_t *data);
 int qla4xxx_ping_iocb(struct scsi_qla_host *ha, uint32_t options,
 		      uint32_t payload_size, uint32_t pid, uint8_t *ipaddr);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-21 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21  7:30 [patch] [SCSI] qla4xxx: silence a Sparse warning Dan Carpenter
2012-02-21 13:24 ` Vikas Chaudhary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox