From 121589c1050c2b4852a525952fed764d2e01bf87 Mon Sep 17 00:00:00 2001 From: "Pamidipati, Vijay" Date: Tue, 26 Jun 2018 15:58:29 +0530 Subject: [PATCH] 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 --- qdf/linux/src/qdf_nbuf.c | 41 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/qdf/linux/src/qdf_nbuf.c b/qdf/linux/src/qdf_nbuf.c index daf6461710fe..9bdc61a1b7d6 100644 --- a/qdf/linux/src/qdf_nbuf.c +++ b/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);