* [PATCH] isci: Argument of function prototype is of wrong type
@ 2012-05-04 14:00 Emil Goode
0 siblings, 0 replies; only message in thread
From: Emil Goode @ 2012-05-04 14:00 UTC (permalink / raw)
To: intel-linux-scu, dan.j.williams, dave.jiang, edmund.nadolski,
JBottomley
Cc: linux-scsi, kernel-janitors, Emil Goode
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 <emilgoode@gmail.com>
---
drivers/scsi/isci/remote_node_context.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
index a703b9c..1177204 100644
--- a/drivers/scsi/isci/remote_node_context.h
+++ b/drivers/scsi/isci/remote_node_context.h
@@ -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,
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-04 13:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04 14:00 [PATCH] isci: Argument of function prototype is of wrong type Emil Goode
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).