From aa12e04badd31bf65058fbe129f433985f202d04 Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Mon, 30 Jan 2017 14:34:43 -0800 Subject: [PATCH] qcacmn: noinline dp_tx_send_msdu_multiple when QDF_LOCK_STATS When QDF_LOCK_STATS is enabled, dp_tx_send_msdu_multiple needs to not be inlined to avoid an [-Werror=maybe-uninitialized] compilation error. ": error: 'msdu_info' may be used uninitialized in this function" Change-Id: I46edc3e3f5fdc498cb31c4eab38c89f91def10ba CRs-Fixed: 2000132 --- dp/wifi3.0/dp_tx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index f6ceb61f2149..2641ffe1311e 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -681,7 +681,11 @@ fail_return: * Return: NULL on success, * nbuf when it fails to send */ +#if QDF_LOCK_STATS +static noinline +#else static +#endif qdf_nbuf_t dp_tx_send_msdu_multiple(struct dp_vdev *vdev, qdf_nbuf_t nbuf, struct dp_tx_msdu_info_s *msdu_info) {