Browse Source

qcacmn: Compilation fix without FEATURE_NAPI

Fix compilation failures with NAPI disabled.

Change-Id: I5ebd122436b7fc2f85b09880eddd884ca114e121
CRs-Fixed: 2080092
Karunakar Dasineni 7 years ago
parent
commit
9a4ddd6a40
2 changed files with 9 additions and 15 deletions
  1. 2 0
      hif/src/hif_exec.c
  2. 7 15
      hif/src/hif_napi.h

+ 2 - 0
hif/src/hif_exec.c

@@ -20,6 +20,8 @@
 #include <ce_main.h>
 #include <hif_irq_affinity.h>
 
+static struct hif_exec_context *hif_exec_tasklet_create(void);
+
 /**
  * hif_print_napi_stats() - print NAPI stats
  * @hif_ctx: hif context

+ 7 - 15
hif/src/hif_napi.h

@@ -97,6 +97,13 @@ enum qca_napi_event {
 #define NAPI_PIPE2ID(p) ((p)+1)
 
 void *hif_napi_get_lro_info(struct hif_opaque_softc *hif_hdl, int napi_id);
+
+enum qca_blacklist_op {
+	BLACKLIST_QUERY,
+	BLACKLIST_OFF,
+	BLACKLIST_ON
+};
+
 #ifdef FEATURE_NAPI
 
 /**
@@ -146,12 +153,6 @@ int hif_napi_poll(struct hif_opaque_softc *hif_ctx,
 #define HNC_ACT_COLLAPSE (1)
 #define HNC_ACT_DISPERSE (-1)
 
-enum qca_blacklist_op {
-	BLACKLIST_QUERY,
-	BLACKLIST_OFF,
-	BLACKLIST_ON
-};
-
 /**
  * Local interface to HIF implemented functions of NAPI CPU affinity management.
  * Note:
@@ -173,15 +174,6 @@ enum qca_blacklist_op {
 
 #define NAPI_DEBUG(fmt, ...) /* NO-OP */
 
-static inline int hif_napi_cpu_init(struct hif_opaque_softc *hif)
-{
-	return 0;
-}
-static inline int hif_napi_cpu_deinit(struct hif_opaque_softc *hif)
-{
-	return 0;
-}
-
 static inline int hif_napi_create(struct hif_opaque_softc   *hif,
 				  uint8_t            pipe_id,
 				  int (*poll)(struct napi_struct *, int),