diff options
| author | James Smart <james.smart@emulex.com> | 2012-05-09 21:18:12 -0400 |
|---|---|---|
| committer | James Bottomley <JBottomley@Parallels.com> | 2012-05-17 06:04:30 -0400 |
| commit | 0829a19a6142af09eb4f9509cd1d3666270e87bd (patch) | |
| tree | 29dba58bad7431af372226d41cd911d3fa6a4128 /drivers/scsi/lpfc | |
| parent | 043c956f50ee9e19a02a681cdf198b0b964cf772 (diff) | |
[SCSI] lpfc 8.3.31: Fix build warnings when debugfs is not defined
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc')
| -rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index cdc5fb92c9f5..b3e8f3346009 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
| @@ -1945,7 +1945,9 @@ lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |||
| 1945 | dma_addr_t physaddr; | 1945 | dma_addr_t physaddr; |
| 1946 | int i = 0, num_bde = 0, status; | 1946 | int i = 0, num_bde = 0, status; |
| 1947 | int datadir = sc->sc_data_direction; | 1947 | int datadir = sc->sc_data_direction; |
| 1948 | #ifdef CONFIG_SCSI_LPFC_DEBUG_FS | ||
| 1948 | uint32_t rc; | 1949 | uint32_t rc; |
| 1950 | #endif | ||
| 1949 | uint32_t checking = 1; | 1951 | uint32_t checking = 1; |
| 1950 | uint32_t reftag; | 1952 | uint32_t reftag; |
| 1951 | unsigned blksize; | 1953 | unsigned blksize; |
| @@ -2082,7 +2084,9 @@ lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |||
| 2082 | int datadir = sc->sc_data_direction; | 2084 | int datadir = sc->sc_data_direction; |
| 2083 | unsigned char pgdone = 0, alldone = 0; | 2085 | unsigned char pgdone = 0, alldone = 0; |
| 2084 | unsigned blksize; | 2086 | unsigned blksize; |
| 2087 | #ifdef CONFIG_SCSI_LPFC_DEBUG_FS | ||
| 2085 | uint32_t rc; | 2088 | uint32_t rc; |
| 2089 | #endif | ||
| 2086 | uint32_t checking = 1; | 2090 | uint32_t checking = 1; |
| 2087 | uint32_t reftag; | 2091 | uint32_t reftag; |
| 2088 | uint8_t txop, rxop; | 2092 | uint8_t txop, rxop; |
| @@ -2301,7 +2305,9 @@ lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |||
| 2301 | uint32_t reftag; | 2305 | uint32_t reftag; |
| 2302 | unsigned blksize; | 2306 | unsigned blksize; |
| 2303 | uint8_t txop, rxop; | 2307 | uint8_t txop, rxop; |
| 2308 | #ifdef CONFIG_SCSI_LPFC_DEBUG_FS | ||
| 2304 | uint32_t rc; | 2309 | uint32_t rc; |
| 2310 | #endif | ||
| 2305 | uint32_t checking = 1; | 2311 | uint32_t checking = 1; |
| 2306 | uint32_t dma_len; | 2312 | uint32_t dma_len; |
| 2307 | uint32_t dma_offset = 0; | 2313 | uint32_t dma_offset = 0; |
| @@ -2431,7 +2437,9 @@ lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |||
| 2431 | uint32_t reftag; | 2437 | uint32_t reftag; |
| 2432 | uint8_t txop, rxop; | 2438 | uint8_t txop, rxop; |
| 2433 | uint32_t dma_len; | 2439 | uint32_t dma_len; |
| 2440 | #ifdef CONFIG_SCSI_LPFC_DEBUG_FS | ||
| 2434 | uint32_t rc; | 2441 | uint32_t rc; |
| 2442 | #endif | ||
| 2435 | uint32_t checking = 1; | 2443 | uint32_t checking = 1; |
| 2436 | uint32_t dma_offset = 0; | 2444 | uint32_t dma_offset = 0; |
| 2437 | int num_sge = 0; | 2445 | int num_sge = 0; |
