qcacmn: Fix -Wmissing-prototypes in if_pci.c
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code in if_pci.c that is generating warnings. Fix these warnings by making the following functions static: hif_enable_pci() hif_register_bmi_callbacks() hif_ce_interrupt_handler() Change-Id: Iaf30be455ce537fabc85dc973ceb3f1b820d29d9 CRs-Fixed: 1107494
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||||
*
|
*
|
||||||
@@ -1475,7 +1475,7 @@ QDF_STATUS hif_pci_open(struct hif_softc *hif_ctx, enum qdf_bus_type bus_type)
|
|||||||
*
|
*
|
||||||
* Bmi phase uses different copy complete callbacks than mission mode.
|
* Bmi phase uses different copy complete callbacks than mission mode.
|
||||||
*/
|
*/
|
||||||
void hif_register_bmi_callbacks(struct hif_softc *hif_sc)
|
static void hif_register_bmi_callbacks(struct hif_softc *hif_sc)
|
||||||
{
|
{
|
||||||
struct HIF_CE_pipe_info *pipe_info;
|
struct HIF_CE_pipe_info *pipe_info;
|
||||||
struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(hif_sc);
|
struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(hif_sc);
|
||||||
@@ -2242,9 +2242,9 @@ err_region:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int hif_enable_pci(struct hif_pci_softc *sc,
|
static int hif_enable_pci(struct hif_pci_softc *sc,
|
||||||
struct pci_dev *pdev,
|
struct pci_dev *pdev,
|
||||||
const struct pci_device_id *id)
|
const struct pci_device_id *id)
|
||||||
{
|
{
|
||||||
PCI_CFG_TO_DISABLE_L1SS_STATES(pdev, 0x188);
|
PCI_CFG_TO_DISABLE_L1SS_STATES(pdev, 0x188);
|
||||||
sc->pci_enabled = true;
|
sc->pci_enabled = true;
|
||||||
@@ -3571,7 +3571,7 @@ int hif_ahb_configure_irq(struct hif_pci_softc *sc)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
irqreturn_t hif_ce_interrupt_handler(int irq, void *context)
|
static irqreturn_t hif_ce_interrupt_handler(int irq, void *context)
|
||||||
{
|
{
|
||||||
struct ce_tasklet_entry *tasklet_entry = context;
|
struct ce_tasklet_entry *tasklet_entry = context;
|
||||||
return ce_dispatch_interrupt(tasklet_entry->ce_id, tasklet_entry);
|
return ce_dispatch_interrupt(tasklet_entry->ce_id, tasklet_entry);
|
||||||
|
Reference in New Issue
Block a user