From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 90B56A0471 for ; Tue, 13 Aug 2019 17:13:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84B091BE3D; Tue, 13 Aug 2019 17:13:53 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id A10091BEB5; Tue, 13 Aug 2019 17:13:50 +0200 (CEST) In-Reply-To: <1565709186-273340-6-git-send-email-vladimir.medvedkin@intel.com> References: <1565709186-273340-6-git-send-email-vladimir.medvedkin@intel.com> To: test-report@dpdk.org Cc: Vladimir Medvedkin Message-Id: <20190813151350.A10091BEB5@dpdk.org> Date: Tue, 13 Aug 2019 17:13:50 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw57670 [RFC 5/5] app: add test-sad application 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: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/57670 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #110: FILE: app/test-sad/main.c:24: +#define GET_CB_FIELD(in, fd, base, lim, dlm) do { \ + unsigned long val; \ + char *end_fld; \ + errno = 0; \ + val = strtoul((in), &end_fld, (base)); \ + if (errno != 0 || end_fld[0] != (dlm) || val > (lim)) \ + return -EINVAL; \ + (fd) = (typeof(fd))val; \ + (in) = end_fld + 1; \ +} while (0) WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #288: FILE: app/test-sad/main.c:202: + unsigned i, rnd; WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #433: FILE: app/test-sad/main.c:347: + unsigned i; WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'lookup', this function's name, in a string #448: FILE: app/test-sad/main.c:362: + printf("Average lookup cycles %lu ", acc / config.nb_tuples); WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #455: FILE: app/test-sad/main.c:369: + unsigned i; total: 0 errors, 5 warnings, 460 lines checked