Skip to contentSkip to conversation

isci: Argument of function prototype is of wrong type

PATCH New Emil Goode 1 participant 1 message May 4, 2012

Subsystems (3)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 isci: Argument of function prototype is of wrong type

The second argument of the sci_remote_node_context_suspend function prototype should be an enum.

Sparse is warning about this:

drivers/scsi/isci/remote_node_context.c:567:17: error:
symbol 'sci_remote_node_context_suspend' redeclared with different type (originally declared at drivers/scsi/isci/remote_node_context.h:214)
- incompatible argument 2 (different signedness)

---
 drivers/scsi/isci/remote_node_context.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/isci/remote_node_context.h +1 -1
index a703b9c..1177204 100644
@@ -212,7 +212,7 @@ enum sci_status sci_remote_node_context_destruct(struct sci_remote_node_context
 						      scics_sds_remote_node_context_callback callback,
 						      void *callback_parameter);
 enum sci_status sci_remote_node_context_suspend(struct sci_remote_node_context *sci_rnc,
-						     u32 suspend_type,
+						     enum sci_remote_node_suspension_reasons,
 						     u32 suspension_code);
 enum sci_status sci_remote_node_context_resume(struct sci_remote_node_context *sci_rnc,
 						    scics_sds_remote_node_context_callback cb_fn,
Signature · 1 line
1.7.9.5