fusion: replace remaining __FUNCTION__ occurrences
Subsystems (2)
PATCH 9/17 fusion: replace remaining __FUNCTION__ occurrences
From: Harvey Harrison <[email protected]>
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by Harvey Harrison <[email protected]>
Cc "Moore, Eric Dean" <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/message/fusion/mptbase.c | 18 ++++----- drivers/message/fusion/mptctl.c | 4 +- drivers/message/fusion/mptfc.c | 8 ++-- drivers/message/fusion/mptlan.c | 26 ++++++------- drivers/message/fusion/mptsas.c | 54 ++++++++++++++-------------- drivers/message/fusion/mptscsih.c | 4 +- 6 files changed, 57 insertions(+), 57 deletions(-)
drivers/message/fusion/mptbase.c renamed from drivers/message/fusion/mptbase.c~fusion-replace-remaining-__function__-occurrences +9 -9
@@ -307,7 +307,7 @@ mpt_turbo_reply(MPT_ADAPTER *ioc, u32 paif (!cb_idx || cb_idx >=MPT_MAX_PROTOCOL_DRIVERS || MptCallbacks[cb_idx] ==NULL ) {printk (MYIOC_s_WARN_FMT"%s: Invalid cb_idx (%d)!\n" , - __FUNCTION__, ioc->name, cb_idx); + __func__, ioc->name, cb_idx); goto out; }
@@ -371,7 +371,7 @@ mpt_reply(MPT_ADAPTER *ioc, u32 pa)if (!cb_idx || cb_idx >=MPT_MAX_PROTOCOL_DRIVERS || MptCallbacks[cb_idx] ==NULL ) {printk (MYIOC_s_WARN_FMT"%s: Invalid cb_idx (%d)!\n" , - __FUNCTION__, ioc->name, cb_idx); + __func__, ioc->name, cb_idx); freeme =0 ; goto out; }
@@ -2348,7 +2348,7 @@ mpt_adapter_disable(MPT_ADAPTER *ioc)if (ioc->cached_fw !=NULL ) {ddlprintk (ioc,printk (MYIOC_s_DEBUG_FMT"%s: Pushing FW onto " -"adapter\n" , __FUNCTION__, ioc->name)); +"adapter\n" , __func__, ioc->name));if ((ret =mpt_downloadboot (ioc, (MpiFwHeader_t *) ioc->cached_fw,CAN_SLEEP )) <0 ) { printk(MYIOC_s_WARN_FMT
@@ -3607,7 +3607,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ignif (ioc->pcidev->device ==MPI_MANUFACTPAGE_DEVID_SAS1078 ) {drsprintk (ioc,printk (MYIOC_s_WARN_FMT"%s: Doorbell=%p; 1078 reset " -"address=%p\n" , ioc->name, __FUNCTION__, +"address=%p\n" , ioc->name, __func__, &ioc->chip->Doorbell, &ioc->chip->Reset_1078));CHIPREG_WRITE32 (&ioc->chip->Reset_1078,0x07 );if (sleepFlag ==CAN_SLEEP )
@@ -4656,12 +4656,12 @@ mptbase_sas_persist_operation(MPT_ADAPTEbreak ; } -printk ("%s: persist_opcode=%x\n" ,__FUNCTION__, persist_opcode); +printk ("%s: persist_opcode=%x\n" ,__func__, persist_opcode);/* Get a MF for this command. */ if ((mf =mpt_get_msg_frame (mpt_base_index, ioc)) ==NULL ) { -printk ("%s: no msg frames!\n" ,__FUNCTION__); +printk ("%s: no msg frames!\n" ,__func__);return -1 ; }
@@ -4685,13 +4685,13 @@ mptbase_sas_persist_operation(MPT_ADAPTE (SasIoUnitControlReply_t *)ioc->persist_reply_frame;if (le16_to_cpu (sasIoUnitCntrReply->IOCStatus) !=MPI_IOCSTATUS_SUCCESS ) {printk ("%s: IOCStatus=0x%X IOCLogInfo=0x%X\n" , - __FUNCTION__, + __func__, sasIoUnitCntrReply->IOCStatus, sasIoUnitCntrReply->IOCLogInfo);return -1 ; } -printk ("%s: success\n" ,__FUNCTION__); +printk ("%s: success\n" ,__func__);return 0 ; }
@@ -5698,7 +5698,7 @@ SendEventAck(MPT_ADAPTER *ioc, EventNotiif ((pAck = (EventAck_t *)mpt_get_msg_frame (mpt_base_index, ioc)) ==NULL ) {dfailprintk (ioc,printk (MYIOC_s_WARN_FMT"%s, no msg frames!!\n" , - ioc->name,__FUNCTION__)); + ioc->name,__func__));return -1 ; }
drivers/message/fusion/mptctl.c renamed from drivers/message/fusion/mptctl.c~fusion-replace-remaining-__function__-occurrences +2 -2
@@ -505,7 +505,7 @@ mptctl_event_process(MPT_ADAPTER *ioc, E event =le32_to_cpu (pEvReply->Event) &0xFF ;dctlprintk (ioc,printk (MYIOC_s_DEBUG_FMT"%s() called\n" , - ioc->name, __FUNCTION__)); + ioc->name, __func__));if (async_queue ==NULL )return 1 ;
@@ -2478,7 +2478,7 @@ mptctl_hp_hostinfo(unsigned long arg, un*/ if ((mf =mpt_get_msg_frame (mptctl_id, ioc)) ==NULL ) {dfailprintk (ioc,printk (MYIOC_s_WARN_FMT"%s, no msg frames!!\n" , - ioc->name,__FUNCTION__)); + ioc->name,__func__)); goto out; }
drivers/message/fusion/mptfc.c renamed from drivers/message/fusion/mptfc.c~fusion-replace-remaining-__function__-occurrences +4 -4
@@ -231,28 +231,28 @@ static int mptfc_abort(struct scsi_cmnd *SCpnt) {return -mptfc_block_error_handler (SCpnt, mptscsih_abort, __FUNCTION__); +mptfc_block_error_handler (SCpnt, mptscsih_abort, __func__); }static int mptfc_dev_reset (struct scsi_cmnd *SCpnt) {return -mptfc_block_error_handler (SCpnt, mptscsih_dev_reset, __FUNCTION__); +mptfc_block_error_handler (SCpnt, mptscsih_dev_reset, __func__); }static int mptfc_bus_reset (struct scsi_cmnd *SCpnt) {return -mptfc_block_error_handler (SCpnt, mptscsih_bus_reset, __FUNCTION__); +mptfc_block_error_handler (SCpnt, mptscsih_bus_reset, __func__); }static int mptfc_host_reset (struct scsi_cmnd *SCpnt) {return -mptfc_block_error_handler (SCpnt, mptscsih_host_reset, __FUNCTION__); +mptfc_block_error_handler (SCpnt, mptscsih_host_reset, __func__); } static void
drivers/message/fusion/mptlan.c renamed from drivers/message/fusion/mptlan.c~fusion-replace-remaining-__function__-occurrences +13 -13
@@ -610,7 +610,7 @@ mpt_lan_send_turbo(struct net_device *de dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n",IOC_AND_NETDEV_NAMES_s_s (dev), - __FUNCTION__, sent)); + __func__, sent)); priv->SendCtl[ctx].skb =NULL ; pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma,
@@ -676,7 +676,7 @@ mpt_lan_send_reply(struct net_device *de dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n",IOC_AND_NETDEV_NAMES_s_s (dev), - __FUNCTION__, sent)); + __func__, sent)); priv->SendCtl[ctx].skb =NULL ; pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma,
@@ -715,7 +715,7 @@ mpt_lan_sdu_send (struct sk_buff *skb, su16 cur_naa =0x1000 ; dioprintk((KERN_INFO MYNAM ": %s called, skb_addr = %p\n", - __FUNCTION__, skb)); + __func__, skb));spin_lock_irqsave (&priv->txfidx_lock, flags);if (priv->mpt_txfidx_tail <0 ) {
@@ -723,7 +723,7 @@ mpt_lan_sdu_send (struct sk_buff *skb, sspin_unlock_irqrestore (&priv->txfidx_lock, flags);printk (KERN_ERR "%s: no tx context available: %u\n" , - __FUNCTION__, priv->mpt_txfidx_tail); + __func__, priv->mpt_txfidx_tail);return 1 ; }
@@ -733,7 +733,7 @@ mpt_lan_sdu_send (struct sk_buff *skb, sspin_unlock_irqrestore (&priv->txfidx_lock, flags);printk (KERN_ERR "%s: Unable to alloc request frame\n" , - __FUNCTION__); + __func__);return 1 ; }
@@ -1208,7 +1208,7 @@ mpt_lan_post_receive_buckets(struct mpt_ dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, Start_buckets = %u, buckets_out = %u\n",IOC_AND_NETDEV_NAMES_s_s (dev), - __FUNCTION__, buckets, curr)); + __func__, buckets, curr)); max = (mpt_dev->req_sz -MPT_LAN_RECEIVE_POST_REQUEST_SIZE ) / (MPT_LAN_TRANSACTION32_SIZE +sizeof (SGESimple64_t));
@@ -1217,9 +1217,9 @@ mpt_lan_post_receive_buckets(struct mpt_ mf =mpt_get_msg_frame (LanCtx, mpt_dev);if (mf ==NULL ) {printk (KERN_ERR "%s: Unable to alloc request frame\n" , - __FUNCTION__); + __func__);dioprintk ((KERN_ERR "%s: %u buckets remaining\n" , - __FUNCTION__, buckets)); + __func__, buckets)); goto out; } pRecvReq = (LANReceivePostRequest_t *) mf;
@@ -1244,7 +1244,7 @@ mpt_lan_post_receive_buckets(struct mpt_spin_lock_irqsave (&priv->rxfidx_lock, flags);if (priv->mpt_rxfidx_tail <0 ) {printk (KERN_ERR "%s: Can't alloc context\n" , - __FUNCTION__); + __func__);spin_unlock_irqrestore (&priv->rxfidx_lock, flags);break ;
@@ -1267,7 +1267,7 @@ mpt_lan_post_receive_buckets(struct mpt_if (skb ==NULL ) { printk (KERN_WARNING MYNAM "/%s: Can't alloc skb\n", - __FUNCTION__); + __func__); priv->mpt_rxfidx[++priv->mpt_rxfidx_tail] = ctx;spin_unlock_irqrestore (&priv->rxfidx_lock, flags);break ;
@@ -1305,7 +1305,7 @@ mpt_lan_post_receive_buckets(struct mpt_if (pSimple ==NULL ) { /**/ printk (KERN_WARNING MYNAM "/%s: No buckets posted\n", -/**/ __FUNCTION__); +/**/ __func__);mpt_free_msg_frame (mpt_dev, mf); goto out; }
@@ -1329,9 +1329,9 @@ mpt_lan_post_receive_buckets(struct mpt_ out: dioprintk((KERN_INFO MYNAM "/%s: End_buckets = %u, priv->buckets_out = %u\n", - __FUNCTION__, buckets, atomic_read(&priv->buckets_out))); + __func__, buckets, atomic_read(&priv->buckets_out))); dioprintk((KERN_INFO MYNAM "/%s: Posted %u buckets and received %u back\n", - __FUNCTION__, priv->total_posted, priv->total_received)); + __func__, priv->total_posted, priv->total_received));clear_bit (0 , &priv->post_buckets_active); }
drivers/message/fusion/mptsas.c renamed from drivers/message/fusion/mptsas.c~fusion-replace-remaining-__function__-occurrences +27 -27
215 lines not on this page · raw message
drivers/message/fusion/mptscsih.c renamed from drivers/message/fusion/mptscsih.c~fusion-replace-remaining-__function__-occurrences +2 -2
@@ -461,7 +461,7 @@ mptscsih_issue_sep_command(MPT_ADAPTER *if ((mf =mpt_get_msg_frame (ioc->InternalCtx, ioc)) ==NULL ) {dfailprintk (ioc,printk (MYIOC_s_WARN_FMT"%s: no msg frames!!\n" , - ioc->name,__FUNCTION__)); + ioc->name,__func__));return ; }
@@ -2187,7 +2187,7 @@ mptscsih_taskmgmt_complete(MPT_ADAPTER * (ioc->debug_level & MPT_DEBUG_TM )) printk("%s: ha=%d [%d:%d:0] task_type=0x%02X " "iocstatus=0x%04X\n\tloginfo=0x%08X response_code=0x%02X " - "term_cmnds=%d\n", __FUNCTION__, ioc->id, pScsiTmReply->Bus, + "term_cmnds=%d\n", __func__, ioc->id, pScsiTmReply->Bus, pScsiTmReply->TargetID, pScsiTmReq->TaskType, le16_to_cpu(pScsiTmReply->IOCStatus), le32_to_cpu(pScsiTmReply->IOCLogInfo),pScsiTmReply->ResponseCode,
_