lkml.org 
[lkml]   [2014]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 12/55] scsi: Mark function as static in bnx2fc/bnx2fc_els.c
    Mark functions as static in bnx2fc/bnx2fc_els.c because they are not
    used outside this file.

    This eliminates the following warning in bnx2fc/bnx2fc_els.c:
    drivers/scsi/bnx2fc/bnx2fc_els.c:256:6: warning: no previous prototype for ‘bnx2fc_srr_compl’ [-Wmissing-prototypes]
    drivers/scsi/bnx2fc/bnx2fc_els.c:366:6: warning: no previous prototype for ‘bnx2fc_rec_compl’ [-Wmissing-prototypes]

    Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
    Reviewed-by: Josh Triplett <josh@joshtriplett.org>
    ---
    drivers/scsi/bnx2fc/bnx2fc_els.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/scsi/bnx2fc/bnx2fc_els.c b/drivers/scsi/bnx2fc/bnx2fc_els.c
    index b1c9a4f..3121da5 100644
    --- a/drivers/scsi/bnx2fc/bnx2fc_els.c
    +++ b/drivers/scsi/bnx2fc/bnx2fc_els.c
    @@ -253,7 +253,7 @@ int bnx2fc_send_rls(struct bnx2fc_rport *tgt, struct fc_frame *fp)
    return rc;
    }

    -void bnx2fc_srr_compl(struct bnx2fc_els_cb_arg *cb_arg)
    +static void bnx2fc_srr_compl(struct bnx2fc_els_cb_arg *cb_arg)
    {
    struct bnx2fc_mp_req *mp_req;
    struct fc_frame_header *fc_hdr, *fh;
    @@ -363,7 +363,7 @@ srr_compl_done:
    kref_put(&orig_io_req->refcount, bnx2fc_cmd_release);
    }

    -void bnx2fc_rec_compl(struct bnx2fc_els_cb_arg *cb_arg)
    +static void bnx2fc_rec_compl(struct bnx2fc_els_cb_arg *cb_arg)
    {
    struct bnx2fc_cmd *orig_io_req, *new_io_req;
    struct bnx2fc_cmd *rec_req;
    --
    1.7.9.5
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2014-03-29 19:21    [W:4.168 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site