@@ -192,7 +192,7 @@ static const struct ipr_chip_t ipr_chip[] = {
192192 { PCI_VENDOR_ID_IBM , PCI_DEVICE_ID_IBM_CROCODILE , IPR_USE_MSI , IPR_SIS64 , IPR_MMIO , & ipr_chip_cfg [2 ] }
193193};
194194
195- static int ipr_max_bus_speeds [] = {
195+ static int ipr_max_bus_speeds [] = {
196196 IPR_80MBs_SCSI_RATE , IPR_U160_SCSI_RATE , IPR_U320_SCSI_RATE
197197};
198198
@@ -562,7 +562,7 @@ static void ipr_trc_hook(struct ipr_cmnd *ipr_cmd,
562562 trace_entry -> u .add_data = add_data ;
563563}
564564#else
565- #define ipr_trc_hook (ipr_cmd , type , add_data ) do { } while(0)
565+ #define ipr_trc_hook (ipr_cmd , type , add_data ) do { } while (0)
566566#endif
567567
568568/**
@@ -1002,7 +1002,7 @@ static void ipr_send_hcam(struct ipr_ioa_cfg *ioa_cfg, u8 type,
10021002 **/
10031003static void ipr_update_ata_class (struct ipr_resource_entry * res , unsigned int proto )
10041004{
1005- switch (proto ) {
1005+ switch (proto ) {
10061006 case IPR_PROTO_SATA :
10071007 case IPR_PROTO_SAS_STP :
10081008 res -> ata_class = ATA_DEV_ATA ;
@@ -3043,7 +3043,7 @@ static void ipr_get_ioa_dump(struct ipr_ioa_cfg *ioa_cfg, struct ipr_dump *dump)
30433043}
30443044
30453045#else
3046- #define ipr_get_ioa_dump (ioa_cfg , dump ) do { } while(0)
3046+ #define ipr_get_ioa_dump (ioa_cfg , dump ) do { } while (0)
30473047#endif
30483048
30493049/**
@@ -3055,7 +3055,7 @@ static void ipr_get_ioa_dump(struct ipr_ioa_cfg *ioa_cfg, struct ipr_dump *dump)
30553055 **/
30563056static void ipr_release_dump (struct kref * kref )
30573057{
3058- struct ipr_dump * dump = container_of (kref ,struct ipr_dump ,kref );
3058+ struct ipr_dump * dump = container_of (kref , struct ipr_dump , kref );
30593059 struct ipr_ioa_cfg * ioa_cfg = dump -> ioa_cfg ;
30603060 unsigned long lock_flags = 0 ;
30613061 int i ;
@@ -3142,7 +3142,7 @@ static void ipr_worker_thread(struct work_struct *work)
31423142 break ;
31433143 }
31443144 }
3145- } while (did_work );
3145+ } while (did_work );
31463146
31473147 list_for_each_entry (res , & ioa_cfg -> used_res_q , queue ) {
31483148 if (res -> add_to_ml ) {
@@ -3268,7 +3268,7 @@ static ssize_t ipr_show_log_level(struct device *dev,
32683268 * number of bytes printed to buffer
32693269 **/
32703270static ssize_t ipr_store_log_level (struct device * dev ,
3271- struct device_attribute * attr ,
3271+ struct device_attribute * attr ,
32723272 const char * buf , size_t count )
32733273{
32743274 struct Scsi_Host * shost = class_to_shost (dev );
@@ -3315,7 +3315,7 @@ static ssize_t ipr_store_diagnostics(struct device *dev,
33153315 return - EACCES ;
33163316
33173317 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
3318- while (ioa_cfg -> in_reset_reload ) {
3318+ while (ioa_cfg -> in_reset_reload ) {
33193319 spin_unlock_irqrestore (ioa_cfg -> host -> host_lock , lock_flags );
33203320 wait_event (ioa_cfg -> reset_wait_q , !ioa_cfg -> in_reset_reload );
33213321 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
@@ -3682,7 +3682,7 @@ static int ipr_update_ioa_ucode(struct ipr_ioa_cfg *ioa_cfg,
36823682 unsigned long lock_flags ;
36833683
36843684 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
3685- while (ioa_cfg -> in_reset_reload ) {
3685+ while (ioa_cfg -> in_reset_reload ) {
36863686 spin_unlock_irqrestore (ioa_cfg -> host -> host_lock , lock_flags );
36873687 wait_event (ioa_cfg -> reset_wait_q , !ioa_cfg -> in_reset_reload );
36883688 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
@@ -3746,7 +3746,7 @@ static ssize_t ipr_store_update_fw(struct device *dev,
37463746 len = snprintf (fname , 99 , "%s" , buf );
37473747 fname [len - 1 ] = '\0' ;
37483748
3749- if (request_firmware (& fw_entry , fname , & ioa_cfg -> pdev -> dev )) {
3749+ if (request_firmware (& fw_entry , fname , & ioa_cfg -> pdev -> dev )) {
37503750 dev_err (& ioa_cfg -> pdev -> dev , "Firmware file %s not found\n" , fname );
37513751 return - EIO ;
37523752 }
@@ -4612,7 +4612,7 @@ static int ipr_slave_alloc(struct scsi_device *sdev)
46124612 * Return value:
46134613 * SUCCESS / FAILED
46144614 **/
4615- static int __ipr_eh_host_reset (struct scsi_cmnd * scsi_cmd )
4615+ static int __ipr_eh_host_reset (struct scsi_cmnd * scsi_cmd )
46164616{
46174617 struct ipr_ioa_cfg * ioa_cfg ;
46184618 int rc ;
@@ -4634,7 +4634,7 @@ static int __ipr_eh_host_reset(struct scsi_cmnd * scsi_cmd)
46344634 return rc ;
46354635}
46364636
4637- static int ipr_eh_host_reset (struct scsi_cmnd * cmd )
4637+ static int ipr_eh_host_reset (struct scsi_cmnd * cmd )
46384638{
46394639 int rc ;
46404640
@@ -4701,7 +4701,7 @@ static int ipr_device_reset(struct ipr_ioa_cfg *ioa_cfg,
47014701 }
47024702
47034703 LEAVE ;
4704- return ( IPR_IOASC_SENSE_KEY (ioasc ) ? - EIO : 0 ) ;
4704+ return IPR_IOASC_SENSE_KEY (ioasc ) ? - EIO : 0 ;
47054705}
47064706
47074707/**
@@ -4725,7 +4725,7 @@ static int ipr_sata_reset(struct ata_link *link, unsigned int *classes,
47254725
47264726 ENTER ;
47274727 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
4728- while (ioa_cfg -> in_reset_reload ) {
4728+ while (ioa_cfg -> in_reset_reload ) {
47294729 spin_unlock_irqrestore (ioa_cfg -> host -> host_lock , lock_flags );
47304730 wait_event (ioa_cfg -> reset_wait_q , !ioa_cfg -> in_reset_reload );
47314731 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
@@ -4753,7 +4753,7 @@ static int ipr_sata_reset(struct ata_link *link, unsigned int *classes,
47534753 * Return value:
47544754 * SUCCESS / FAILED
47554755 **/
4756- static int __ipr_eh_dev_reset (struct scsi_cmnd * scsi_cmd )
4756+ static int __ipr_eh_dev_reset (struct scsi_cmnd * scsi_cmd )
47574757{
47584758 struct ipr_cmnd * ipr_cmd ;
47594759 struct ipr_ioa_cfg * ioa_cfg ;
@@ -4811,10 +4811,10 @@ static int __ipr_eh_dev_reset(struct scsi_cmnd * scsi_cmd)
48114811 res -> resetting_device = 0 ;
48124812
48134813 LEAVE ;
4814- return ( rc ? FAILED : SUCCESS ) ;
4814+ return rc ? FAILED : SUCCESS ;
48154815}
48164816
4817- static int ipr_eh_dev_reset (struct scsi_cmnd * cmd )
4817+ static int ipr_eh_dev_reset (struct scsi_cmnd * cmd )
48184818{
48194819 int rc ;
48204820
@@ -4910,7 +4910,7 @@ static void ipr_abort_timeout(struct ipr_cmnd *ipr_cmd)
49104910 * Return value:
49114911 * SUCCESS / FAILED
49124912 **/
4913- static int ipr_cancel_op (struct scsi_cmnd * scsi_cmd )
4913+ static int ipr_cancel_op (struct scsi_cmnd * scsi_cmd )
49144914{
49154915 struct ipr_cmnd * ipr_cmd ;
49164916 struct ipr_ioa_cfg * ioa_cfg ;
@@ -4979,7 +4979,7 @@ static int ipr_cancel_op(struct scsi_cmnd * scsi_cmd)
49794979 res -> needs_sync_complete = 1 ;
49804980
49814981 LEAVE ;
4982- return ( IPR_IOASC_SENSE_KEY (ioasc ) ? FAILED : SUCCESS ) ;
4982+ return IPR_IOASC_SENSE_KEY (ioasc ) ? FAILED : SUCCESS ;
49834983}
49844984
49854985/**
@@ -4989,7 +4989,7 @@ static int ipr_cancel_op(struct scsi_cmnd * scsi_cmd)
49894989 * Return value:
49904990 * SUCCESS / FAILED
49914991 **/
4992- static int ipr_eh_abort (struct scsi_cmnd * scsi_cmd )
4992+ static int ipr_eh_abort (struct scsi_cmnd * scsi_cmd )
49934993{
49944994 unsigned long flags ;
49954995 int rc ;
@@ -5907,7 +5907,7 @@ static int ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
59075907 * Return value:
59085908 * pointer to buffer with description string
59095909 **/
5910- static const char * ipr_ioa_info (struct Scsi_Host * host )
5910+ static const char * ipr_ioa_info (struct Scsi_Host * host )
59115911{
59125912 static char buffer [512 ];
59135913 struct ipr_ioa_cfg * ioa_cfg ;
@@ -5965,7 +5965,7 @@ static void ipr_ata_phy_reset(struct ata_port *ap)
59655965
59665966 ENTER ;
59675967 spin_lock_irqsave (ioa_cfg -> host -> host_lock , flags );
5968- while (ioa_cfg -> in_reset_reload ) {
5968+ while (ioa_cfg -> in_reset_reload ) {
59695969 spin_unlock_irqrestore (ioa_cfg -> host -> host_lock , flags );
59705970 wait_event (ioa_cfg -> reset_wait_q , !ioa_cfg -> in_reset_reload );
59715971 spin_lock_irqsave (ioa_cfg -> host -> host_lock , flags );
@@ -6005,7 +6005,7 @@ static void ipr_ata_post_internal(struct ata_queued_cmd *qc)
60056005 unsigned long flags ;
60066006
60076007 spin_lock_irqsave (ioa_cfg -> host -> host_lock , flags );
6008- while (ioa_cfg -> in_reset_reload ) {
6008+ while (ioa_cfg -> in_reset_reload ) {
60096009 spin_unlock_irqrestore (ioa_cfg -> host -> host_lock , flags );
60106010 wait_event (ioa_cfg -> reset_wait_q , !ioa_cfg -> in_reset_reload );
60116011 spin_lock_irqsave (ioa_cfg -> host -> host_lock , flags );
@@ -6330,7 +6330,7 @@ static int ipr_invalid_adapter(struct ipr_ioa_cfg *ioa_cfg)
63306330 int i ;
63316331
63326332 if ((ioa_cfg -> type == 0x5702 ) && (ioa_cfg -> pdev -> revision < 4 )) {
6333- for (i = 0 ; i < ARRAY_SIZE (ipr_blocked_processors ); i ++ ){
6333+ for (i = 0 ; i < ARRAY_SIZE (ipr_blocked_processors ); i ++ ) {
63346334 if (__is_processor (ipr_blocked_processors [i ]))
63356335 return 1 ;
63366336 }
@@ -6608,7 +6608,7 @@ static void ipr_scsi_bus_speed_limit(struct ipr_ioa_cfg *ioa_cfg)
66086608 * none
66096609 **/
66106610static void ipr_modify_ioafp_mode_page_28 (struct ipr_ioa_cfg * ioa_cfg ,
6611- struct ipr_mode_pages * mode_pages )
6611+ struct ipr_mode_pages * mode_pages )
66126612{
66136613 int i , entry_length ;
66146614 struct ipr_dev_bus_entry * bus ;
@@ -8022,7 +8022,7 @@ static void ipr_reset_ioa_job(struct ipr_cmnd *ipr_cmd)
80228022 ipr_reinit_ipr_cmnd (ipr_cmd );
80238023 ipr_cmd -> job_step_failed = ipr_reset_cmd_failed ;
80248024 rc = ipr_cmd -> job_step (ipr_cmd );
8025- } while (rc == IPR_RC_JOB_CONTINUE );
8025+ } while (rc == IPR_RC_JOB_CONTINUE );
80268026}
80278027
80288028/**
@@ -8283,7 +8283,7 @@ static void ipr_free_cmd_blks(struct ipr_ioa_cfg *ioa_cfg)
82838283 }
82848284
82858285 if (ioa_cfg -> ipr_cmd_pool )
8286- pci_pool_destroy (ioa_cfg -> ipr_cmd_pool );
8286+ pci_pool_destroy (ioa_cfg -> ipr_cmd_pool );
82878287
82888288 kfree (ioa_cfg -> ipr_cmnd_list );
82898289 kfree (ioa_cfg -> ipr_cmnd_list_dma );
@@ -8363,8 +8363,8 @@ static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg)
83638363 dma_addr_t dma_addr ;
83648364 int i ;
83658365
8366- ioa_cfg -> ipr_cmd_pool = pci_pool_create (IPR_NAME , ioa_cfg -> pdev ,
8367- sizeof (struct ipr_cmnd ), 512 , 0 );
8366+ ioa_cfg -> ipr_cmd_pool = pci_pool_create (IPR_NAME , ioa_cfg -> pdev ,
8367+ sizeof (struct ipr_cmnd ), 512 , 0 );
83688368
83698369 if (!ioa_cfg -> ipr_cmd_pool )
83708370 return - ENOMEM ;
@@ -8378,7 +8378,7 @@ static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg)
83788378 }
83798379
83808380 for (i = 0 ; i < IPR_NUM_CMD_BLKS ; i ++ ) {
8381- ipr_cmd = pci_pool_alloc (ioa_cfg -> ipr_cmd_pool , GFP_KERNEL , & dma_addr );
8381+ ipr_cmd = pci_pool_alloc (ioa_cfg -> ipr_cmd_pool , GFP_KERNEL , & dma_addr );
83828382
83838383 if (!ipr_cmd ) {
83848384 ipr_free_cmd_blks (ioa_cfg );
@@ -8964,7 +8964,7 @@ static void ipr_scan_vsets(struct ipr_ioa_cfg *ioa_cfg)
89648964 int target , lun ;
89658965
89668966 for (target = 0 ; target < IPR_MAX_NUM_TARGETS_PER_BUS ; target ++ )
8967- for (lun = 0 ; lun < IPR_MAX_NUM_VSET_LUNS_PER_TARGET ; lun ++ )
8967+ for (lun = 0 ; lun < IPR_MAX_NUM_VSET_LUNS_PER_TARGET ; lun ++ )
89688968 scsi_add_device (ioa_cfg -> host , IPR_VSET_BUS , target , lun );
89698969}
89708970
@@ -9010,7 +9010,7 @@ static void __ipr_remove(struct pci_dev *pdev)
90109010 ENTER ;
90119011
90129012 spin_lock_irqsave (ioa_cfg -> host -> host_lock , host_lock_flags );
9013- while (ioa_cfg -> in_reset_reload ) {
9013+ while (ioa_cfg -> in_reset_reload ) {
90149014 spin_unlock_irqrestore (ioa_cfg -> host -> host_lock , host_lock_flags );
90159015 wait_event (ioa_cfg -> reset_wait_q , !ioa_cfg -> in_reset_reload );
90169016 spin_lock_irqsave (ioa_cfg -> host -> host_lock , host_lock_flags );
@@ -9139,7 +9139,7 @@ static void ipr_shutdown(struct pci_dev *pdev)
91399139 unsigned long lock_flags = 0 ;
91409140
91419141 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
9142- while (ioa_cfg -> in_reset_reload ) {
9142+ while (ioa_cfg -> in_reset_reload ) {
91439143 spin_unlock_irqrestore (ioa_cfg -> host -> host_lock , lock_flags );
91449144 wait_event (ioa_cfg -> reset_wait_q , !ioa_cfg -> in_reset_reload );
91459145 spin_lock_irqsave (ioa_cfg -> host -> host_lock , lock_flags );
0 commit comments