lkml.org 
[lkml]   [2012]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch -resend] isci: make function declaration match implementation
    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>
    ---
    I originally sent this on Tue, 27 Mar 2012, and Emil Goode sent the same
    patch on Fri, May 4, 2012. Both were silently ignored.

    diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
    index a703b9c..c7ee81d 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 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,

    \
     
     \ /
      Last update: 2012-06-27 12:42    [W:4.050 / U:0.308 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site