Skip to content

Commit

Permalink
[SCSI] fix scsi_wait_scan build problem
Browse files Browse the repository at this point in the history
The #ifdef MODULE around the export of scsi_complete_async_scans()
which is the API the scsi_wait_scan module uses is incorrect and
causes the symbol to be undefined in certain circumstances leading to
a build failure.  Remove the defines.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
James Bottomley authored and James Bottomley committed Mar 21, 2007
1 parent cc5d2c8 commit 0272bf7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/scsi/scsi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ int scsi_complete_async_scans(void)
return 0;
}

#ifdef MODULE
/* Only exported for the benefit of scsi_wait_scan */
EXPORT_SYMBOL_GPL(scsi_complete_async_scans);
#endif

/**
* scsi_unlock_floptical - unlock device via a special MODE SENSE command
Expand Down

0 comments on commit 0272bf7

Please sign in to comment.