ソースを参照

qcacmn: Move ___qdf_dmaaddr_to_32s out of FEATURE_TSO

___qdf_dmaaddr_to_32s is not related to TSO.
Move ___qdf_dmaaddr_to_32s out of FEATURE_TSO macro

Change-Id: Ieabdf6066d23b10aa61b9f999828e26f6d689d54
CRs-Fixed: 2258196
Pamidipati, Vijay 6 年 前
コミット
121589c105
1 ファイル変更21 行追加20 行削除
  1. 21 20
      qdf/linux/src/qdf_nbuf.c

+ 21 - 20
qdf/linux/src/qdf_nbuf.c

@@ -2774,26 +2774,6 @@ static uint8_t __qdf_nbuf_get_tso_cmn_seg_info(qdf_device_t osdev,
 }
 
 
-/**
- * qdf_dmaaddr_to_32s - return high and low parts of dma_addr
- *
- * Returns the high and low 32-bits of the DMA addr in the provided ptrs
- *
- * Return: N/A
- */
-void __qdf_dmaaddr_to_32s(qdf_dma_addr_t dmaaddr,
-				      uint32_t *lo, uint32_t *hi)
-{
-	if (sizeof(dmaaddr) > sizeof(uint32_t)) {
-		*lo = lower_32_bits(dmaaddr);
-		*hi = upper_32_bits(dmaaddr);
-	} else {
-		*lo = dmaaddr;
-		*hi = 0;
-	}
-}
-qdf_export_symbol(__qdf_dmaaddr_to_32s);
-
 /**
  * __qdf_nbuf_fill_tso_cmn_seg_info() - Init function for each TSO nbuf segment
  *
@@ -3287,6 +3267,27 @@ qdf_export_symbol(__qdf_nbuf_get_tso_num_seg);
 
 #endif /* FEATURE_TSO */
 
+/**
+ * qdf_dmaaddr_to_32s - return high and low parts of dma_addr
+ *
+ * Returns the high and low 32-bits of the DMA addr in the provided ptrs
+ *
+ * Return: N/A
+ */
+void __qdf_dmaaddr_to_32s(qdf_dma_addr_t dmaaddr,
+			  uint32_t *lo, uint32_t *hi)
+{
+	if (sizeof(dmaaddr) > sizeof(uint32_t)) {
+		*lo = lower_32_bits(dmaaddr);
+		*hi = upper_32_bits(dmaaddr);
+	} else {
+		*lo = dmaaddr;
+		*hi = 0;
+	}
+}
+
+qdf_export_symbol(__qdf_dmaaddr_to_32s);
+
 struct sk_buff *__qdf_nbuf_inc_users(struct sk_buff *skb)
 {
 	qdf_nbuf_users_inc(&skb->users);