[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>
This commit is contained in:
committed by
James Bottomley
parent
a762dce41c
commit
c6b21c93c1
@@ -677,7 +677,8 @@ EXPORT_SYMBOL(fc_set_mfs);
|
||||
* @lport: The local port receiving the event
|
||||
* @event: The discovery event
|
||||
*/
|
||||
void fc_lport_disc_callback(struct fc_lport *lport, enum fc_disc_event event)
|
||||
static void fc_lport_disc_callback(struct fc_lport *lport,
|
||||
enum fc_disc_event event)
|
||||
{
|
||||
switch (event) {
|
||||
case DISC_EV_SUCCESS:
|
||||
@@ -1568,7 +1569,7 @@ EXPORT_SYMBOL(fc_lport_flogi_resp);
|
||||
* Locking Note: The lport lock is expected to be held before calling
|
||||
* this routine.
|
||||
*/
|
||||
void fc_lport_enter_flogi(struct fc_lport *lport)
|
||||
static void fc_lport_enter_flogi(struct fc_lport *lport)
|
||||
{
|
||||
struct fc_frame *fp;
|
||||
|
||||
|
Reference in New Issue
Block a user