isci: Argument of function prototype is of wrong type
Subsystems (3)
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)
Signed-off-by Emil Goode <[email protected]>
--- drivers/scsi/isci/remote_node_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/isci/remote_node_context.h +1 -1
@@ -212,7 +212,7 @@ enum sci_status sci_remote_node_context_destruct(struct sci_remote_node_contextscics_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