diff options
author | Bart Van Assche <bvanassche@acm.org> | 2012-01-13 20:26:20 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-01-16 03:45:48 -0500 |
commit | c6b21c93c1794113c68f3d43f321968191d87b1b (patch) | |
tree | 011ea47b03dc2628b1b210ab198e08343d3612a1 /drivers/scsi/libfc/fc_rport.c | |
parent | a762dce41cb5742a143f6aa2d80ee1aac7e1f5eb (diff) |
[SCSI] libfc: Declare local functions static
Avoid that sparse complains about missing declarations for local
functions by declaring these static or by adding an #include directive.
Add the __percpu annotation where it is missing.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/libfc/fc_rport.c')
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index b9e434844a69..83aa1efec875 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c | |||
@@ -391,7 +391,7 @@ static void fc_rport_work(struct work_struct *work) | |||
391 | * If it appears we are already logged in, ADISC is used to verify | 391 | * If it appears we are already logged in, ADISC is used to verify |
392 | * the setup. | 392 | * the setup. |
393 | */ | 393 | */ |
394 | int fc_rport_login(struct fc_rport_priv *rdata) | 394 | static int fc_rport_login(struct fc_rport_priv *rdata) |
395 | { | 395 | { |
396 | mutex_lock(&rdata->rp_mutex); | 396 | mutex_lock(&rdata->rp_mutex); |
397 | 397 | ||
@@ -451,7 +451,7 @@ static void fc_rport_enter_delete(struct fc_rport_priv *rdata, | |||
451 | * function will hold the rport lock, call an _enter_* | 451 | * function will hold the rport lock, call an _enter_* |
452 | * function and then unlock the rport. | 452 | * function and then unlock the rport. |
453 | */ | 453 | */ |
454 | int fc_rport_logoff(struct fc_rport_priv *rdata) | 454 | static int fc_rport_logoff(struct fc_rport_priv *rdata) |
455 | { | 455 | { |
456 | mutex_lock(&rdata->rp_mutex); | 456 | mutex_lock(&rdata->rp_mutex); |
457 | 457 | ||
@@ -653,8 +653,8 @@ static int fc_rport_login_complete(struct fc_rport_priv *rdata, | |||
653 | * @fp: The FLOGI response frame | 653 | * @fp: The FLOGI response frame |
654 | * @rp_arg: The remote port that received the FLOGI response | 654 | * @rp_arg: The remote port that received the FLOGI response |
655 | */ | 655 | */ |
656 | void fc_rport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, | 656 | static void fc_rport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, |
657 | void *rp_arg) | 657 | void *rp_arg) |
658 | { | 658 | { |
659 | struct fc_rport_priv *rdata = rp_arg; | 659 | struct fc_rport_priv *rdata = rp_arg; |
660 | struct fc_lport *lport = rdata->local_port; | 660 | struct fc_lport *lport = rdata->local_port; |
@@ -1520,7 +1520,7 @@ reject: | |||
1520 | * | 1520 | * |
1521 | * Locking Note: Called with the lport lock held. | 1521 | * Locking Note: Called with the lport lock held. |
1522 | */ | 1522 | */ |
1523 | void fc_rport_recv_req(struct fc_lport *lport, struct fc_frame *fp) | 1523 | static void fc_rport_recv_req(struct fc_lport *lport, struct fc_frame *fp) |
1524 | { | 1524 | { |
1525 | struct fc_seq_els_data els_data; | 1525 | struct fc_seq_els_data els_data; |
1526 | 1526 | ||