qcacmn: Replace obsolete HIF_WARN() with hif_warn()

Replace obsolete HIF_WARN() with hif_warn().

Change-Id: Idb72d684b9d05aab6cf55ee2608f47c04077d8f7
CRs-Fixed: 2779720
This commit is contained in:
Srinivas Girigowda
2020-09-17 14:38:35 -07:00
committed by snandini
parent 9667b145c6
commit 94ea515d92
7 changed files with 10 additions and 12 deletions

View File

@@ -698,7 +698,7 @@ QDF_STATUS ce_unregister_irq(struct HIF_CE_state *hif_ce_state, uint32_t mask)
struct hif_softc *scn;
if (!hif_ce_state) {
HIF_WARN("%s: hif_ce_state = NULL", __func__);
hif_warn("hif_ce_state = NULL");
return QDF_STATUS_SUCCESS;
}

View File

@@ -709,7 +709,7 @@ static struct hif_exec_context *hif_exec_napi_create(uint32_t scale)
#else
static struct hif_exec_context *hif_exec_napi_create(uint32_t scale)
{
HIF_WARN("%s: FEATURE_NAPI not defined, making tasklet", __func__);
hif_warn("FEATURE_NAPI not defined, making tasklet");
return hif_exec_tasklet_create();
}
#endif

View File

@@ -71,7 +71,7 @@ QDF_STATUS hif_ce_fastpath_cb_register(struct hif_opaque_softc *hif_ctx,
}
if (!scn->fastpath_mode_on) {
HIF_WARN("%s: Fastpath mode disabled", __func__);
hif_warn("Fastpath mode disabled");
return QDF_STATUS_E_FAILURE;
}

View File

@@ -199,8 +199,7 @@ int hif_napi_create(struct hif_opaque_softc *hif_ctx,
napii->irq = pld_get_irq(hif->qdf_dev->dev, i);
if (napii->irq < 0)
HIF_WARN("%s: bad IRQ value for CE %d: %d",
__func__, i, napii->irq);
hif_warn("bad IRQ value for CE %d: %d", i, napii->irq);
init_dummy_netdev(&(napii->netdev));
@@ -233,7 +232,7 @@ int hif_napi_create(struct hif_opaque_softc *hif_ctx,
/* no ces registered with the napi */
if (!ce_srng_based(hif) && napid->ce_map == 0) {
HIF_WARN("%s: no napis created for copy engines", __func__);
hif_warn("no napis created for copy engines");
rc = -EFAULT;
goto napii_free;
}

View File

@@ -465,7 +465,7 @@ hif_configure_device(struct hif_softc *ol_sc, struct hif_sdio_dev *device,
break;
case HIF_DEVICE_GET_PENDING_EVENTS_FUNC:
HIF_WARN("%s: opcode %d", __func__, opcode);
hif_warn("opcode %d", opcode);
status = QDF_STATUS_E_FAILURE;
break;
case HIF_DEVICE_GET_IRQ_PROC_MODE:
@@ -473,7 +473,7 @@ hif_configure_device(struct hif_softc *ol_sc, struct hif_sdio_dev *device,
HIF_DEVICE_IRQ_SYNC_ONLY;
break;
case HIF_DEVICE_GET_RECV_EVENT_MASK_UNMASK_FUNC:
HIF_WARN("%s: opcode %d", __func__, opcode);
hif_warn("opcode %d", opcode);
status = QDF_STATUS_E_FAILURE;
break;
case HIF_CONFIGURE_QUERY_SCATTER_REQUEST_SUPPORT:
@@ -498,7 +498,7 @@ hif_configure_device(struct hif_softc *ol_sc, struct hif_sdio_dev *device,
config);
break;
case HIF_DEVICE_GET_IRQ_YIELD_PARAMS:
HIF_WARN("%s: opcode %d", __func__, opcode);
hif_warn("opcode %d", opcode);
status = QDF_STATUS_E_FAILURE;
break;
case HIF_DEVICE_SET_HTC_CONTEXT:

View File

@@ -279,8 +279,7 @@ QDF_STATUS hif_snoc_enable_bus(struct hif_softc *ol_sc,
ret = qdf_device_init_wakeup(ol_sc->qdf_dev, true);
if (ret == -EEXIST)
HIF_WARN("%s: device_init_wakeup already done",
__func__);
hif_warn("device_init_wakeup already done");
else if (ret) {
hif_err("device_init_wakeup: err= %d", ret);
return qdf_status_from_os_return(ret);

View File

@@ -464,7 +464,7 @@ static void usb_hif_flush_pending_transfers(struct HIF_USB_PIPE *pipe)
while (1) {
urb_context = usb_hif_dequeue_pending_transfer(pipe);
if (!urb_context) {
HIF_WARN("urb_context is NULL");
hif_warn("urb_context is NULL");
break;
}
HIF_TRACE(" pending urb ctxt: 0x%pK", urb_context);