]> Pileus Git - ~andy/linux/commitdiff
isci: make function declaration match implementation
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Jun 2012 09:10:06 +0000 (12:10 +0300)
committerDan Williams <dan.j.williams@intel.com>
Tue, 3 Jul 2012 19:09:31 +0000 (12:09 -0700)
Sparse complains that we redeclare this with a different type, because
in the .c file we use an enum and in the .h file we declare the
parameter as a u32.  Probably it's best to use an enum in both places.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/remote_node_context.h

index a703b9ce0c2c211c984a877179b724a624ebf4fc..c7ee81d011253487055b982942dff0620c635a17 100644 (file)
@@ -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 reason,
                                                     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,