From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 78AC21B6BF; Fri, 13 Oct 2017 14:23:48 +0200 (CEST) In-Reply-To: <1507897338-236951-4-git-send-email-cristian.dumitrescu@intel.com> References: <1507897338-236951-4-git-send-email-cristian.dumitrescu@intel.com> To: test-report@dpdk.org Cc: Cristian Dumitrescu Message-Id: <20171013122348.78AC21B6BF@dpdk.org> Date: Fri, 13 Oct 2017 14:23:48 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw30355 [PATCH V4 3/5] ethdev: add new api for traffic metering and policing 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: Fri, 13 Oct 2017 12:23:48 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/30355 _coding style issues_ WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE: #91: FILE: MAINTAINERS:259: +M: Cristian Dumitrescu WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE: #92: FILE: MAINTAINERS:260: +F: lib/librte_ether/rte_mtr* WARNING:ENOSYS: ENOSYS means 'invalid syscall nr' and nothing else #221: FILE: lib/librte_ether/rte_mtr.c:61: + ENOSYS, WARNING:ENOSYS: ENOSYS means 'invalid syscall nr' and nothing else #224: FILE: lib/librte_ether/rte_mtr.c:64: + rte_strerror(ENOSYS)); WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #231: FILE: lib/librte_ether/rte_mtr.c:71: +#define RTE_MTR_FUNC(port_id, func) \ +({ \ + const struct rte_mtr_ops *ops = \ + rte_mtr_ops_get(port_id, error); \ + if (ops == NULL) \ + return -rte_errno; \ + \ + if (ops->func == NULL) \ + return -rte_mtr_error_set(error, \ + ENOSYS, \ + RTE_MTR_ERROR_TYPE_UNSPECIFIED, \ + NULL, \ + rte_strerror(ENOSYS)); \ + \ + ops->func; \ +}) WARNING:ENOSYS: ENOSYS means 'invalid syscall nr' and nothing else #240: FILE: lib/librte_ether/rte_mtr.c:80: + ENOSYS, \ WARNING:ENOSYS: ENOSYS means 'invalid syscall nr' and nothing else #243: FILE: lib/librte_ether/rte_mtr.c:83: + rte_strerror(ENOSYS)); \ total: 0 errors, 7 warnings, 1232 lines checked