From d653c2a995d8a4827d772a7084c8cdeee5535777 Mon Sep 17 00:00:00 2001 From: Yingying Tang Date: Wed, 22 Feb 2017 21:10:19 +0800 Subject: qcacld-3.0: Add "static" to fix compilation error for HL bus Add "static" before some functions which only be used in 1 file and remove some unused function to resolve compilation error. Change-Id: Id1b1101c3bb04910ad1e3639887f74e44d5b7c36 CRs-Fixed: 2010227 --- core/bmi/src/bmi.c | 3 ++- core/bmi/src/i_bmi.h | 14 +------------- 2 files changed, 3 insertions(+), 14 deletions(-) (limited to 'core/bmi/src') diff --git a/core/bmi/src/bmi.c b/core/bmi/src/bmi.c index 33f5986cca0d..d1039f2e8a61 100644 --- a/core/bmi/src/bmi.c +++ b/core/bmi/src/bmi.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -27,6 +27,7 @@ #include "i_bmi.h" #include "cds_api.h" +#include "hif.h" /* APIs visible to the driver */ diff --git a/core/bmi/src/i_bmi.h b/core/bmi/src/i_bmi.h index 712bf9e30be5..8b476469cddf 100644 --- a/core/bmi/src/i_bmi.h +++ b/core/bmi/src/i_bmi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -184,16 +184,4 @@ void ramdump_work_handler(void *arg); void fw_indication_work_handler(void *arg); struct ol_config_info *ol_get_ini_handle(struct ol_context *ol_ctx); -#ifdef HIF_SDIO -QDF_STATUS hif_reg_based_get_target_info(struct hif_opaque_softc *hif_ctx, - struct bmi_target_info *targ_info); -#endif -#if defined(HIF_PCI) || defined(SNOC) || defined(HIF_AHB) || defined(HIF_USB) -static inline QDF_STATUS -hif_reg_based_get_target_info(struct hif_opaque_softc *hif_ctx, - struct bmi_target_info *targ_info) -{ - return QDF_STATUS_SUCCESS; -} -#endif #endif -- cgit v1.2.3