diff --git a/core/hdd/inc/wlan_hdd_napi.h b/core/hdd/inc/wlan_hdd_napi.h index f71805950065..9e008218a3dc 100644 --- a/core/hdd/inc/wlan_hdd_napi.h +++ b/core/hdd/inc/wlan_hdd_napi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -49,12 +49,12 @@ int hdd_napi_poll(struct napi_struct *napi, int budget); struct qca_napi_data *hdd_napi_get_all(void); -#ifdef HELIUMPLUS +#if defined HELIUMPLUS && defined MSM_PLATFORM int hdd_napi_apply_throughput_policy(struct hdd_context *hddctx, uint64_t tx_packets, uint64_t rx_packets); int hdd_napi_serialize(int is_on); -#else /* FEATURE_NAPI and NOT HELIUM */ +#else static inline int hdd_napi_apply_throughput_policy(struct hdd_context *hddctx, uint64_t tx_packets, uint64_t rx_packets) @@ -65,7 +65,7 @@ static inline int hdd_napi_serialize(int is_on) { return -EINVAL; } -#endif /* HELIUMPLUS */ +#endif /* HELIUMPLUS && MSM_PLATFORM */ #else /* ! defined(FEATURE_NAPI) */ #include "hif_napi.h" diff --git a/core/hdd/src/wlan_hdd_napi.c b/core/hdd/src/wlan_hdd_napi.c index a8d6bc84713b..2c69248ca502 100644 --- a/core/hdd/src/wlan_hdd_napi.c +++ b/core/hdd/src/wlan_hdd_napi.c @@ -249,7 +249,7 @@ int hdd_napi_event(enum qca_napi_event event, void *data) return rc; } -#ifdef HELIUMPLUS +#if defined HELIUMPLUS && defined MSM_PLATFORM /** * hdd_napi_perfd_cpufreq() - set/reset min CPU freq for cores * @req_state: high/low @@ -427,7 +427,7 @@ int hdd_napi_serialize(int is_on) } return rc; } -#endif /* HELIUMPLUS */ +#endif /* HELIUMPLUS && MSM_PLATFORM */ /** * hdd_napi_poll() - NAPI poll function