From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 2800F1B1A6; Sat, 9 Sep 2017 13:12:00 +0200 (CEST) In-Reply-To: <20170909112132.13936-26-shreyansh.jain@nxp.com> References: <20170909112132.13936-26-shreyansh.jain@nxp.com> To: test-report@dpdk.org Cc: Shreyansh Jain Message-Id: <20170909111200.2800F1B1A6@dpdk.org> Date: Sat, 9 Sep 2017 13:12:00 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw28546 [PATCH v4 25/41] net/dpaa: add support for Tx and Rx queue setup X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Sep 2017 11:12:00 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/28546 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mbuf' - possible side-effects? #493: FILE: drivers/net/dpaa/dpaa_rxtx.c:77: +#define DPAA_MBUF_TO_CONTIG_FD(_mbuf, _fd, _bpid) \ + do { \ + (_fd)->cmd = 0; \ + (_fd)->opaque_addr = 0; \ + (_fd)->opaque = QM_FD_CONTIG << DPAA_FD_FORMAT_SHIFT; \ + (_fd)->opaque |= ((_mbuf)->data_off) << DPAA_FD_OFFSET_SHIFT; \ + (_fd)->opaque |= (_mbuf)->pkt_len; \ + (_fd)->addr = (_mbuf)->buf_physaddr; \ + (_fd)->bpid = _bpid; \ + } while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse '_fd' - possible side-effects? #493: FILE: drivers/net/dpaa/dpaa_rxtx.c:77: +#define DPAA_MBUF_TO_CONTIG_FD(_mbuf, _fd, _bpid) \ + do { \ + (_fd)->cmd = 0; \ + (_fd)->opaque_addr = 0; \ + (_fd)->opaque = QM_FD_CONTIG << DPAA_FD_FORMAT_SHIFT; \ + (_fd)->opaque |= ((_mbuf)->data_off) << DPAA_FD_OFFSET_SHIFT; \ + (_fd)->opaque |= (_mbuf)->pkt_len; \ + (_fd)->addr = (_mbuf)->buf_physaddr; \ + (_fd)->bpid = _bpid; \ + } while (0) total: 0 errors, 0 warnings, 808 lines checked