From bf8ed0a7a25f780dbec5aa065ed5c007b16a3e1a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 17 Dec 2016 16:31:03 -0800 Subject: [PATCH] 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 --- hif/src/pcie/if_pci.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index d5dd28c5edf6..7a77110f7f2b 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -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. * @@ -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. */ -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_state *hif_state = HIF_GET_CE_STATE(hif_sc); @@ -2242,9 +2242,9 @@ err_region: return ret; } #else -int hif_enable_pci(struct hif_pci_softc *sc, - struct pci_dev *pdev, - const struct pci_device_id *id) +static int hif_enable_pci(struct hif_pci_softc *sc, + struct pci_dev *pdev, + const struct pci_device_id *id) { PCI_CFG_TO_DISABLE_L1SS_STATES(pdev, 0x188); sc->pci_enabled = true; @@ -3571,7 +3571,7 @@ int hif_ahb_configure_irq(struct hif_pci_softc *sc) } #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; return ce_dispatch_interrupt(tasklet_entry->ce_id, tasklet_entry);