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:
Jeff Johnson
2016-12-17 16:31:03 -08:00
committed by qcabuildsw
parent 9a3fa3b8c3
commit bf8ed0a7a2

View File

@@ -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,7 +2242,7 @@ 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)
{ {
@@ -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);