From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B62A7A00C5 for ; Wed, 31 Aug 2022 00:53:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A904740F18; Wed, 31 Aug 2022 00:53:25 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id B819540F35 for ; Wed, 31 Aug 2022 00:53:23 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id B1C6B121F02; Wed, 31 Aug 2022 00:53:23 +0200 (CEST) Subject: |WARNING| pw115666 [Patch v6 01/18] net/mana: add basic driver, build environment and doc In-Reply-To: <1661899911-13086-2-git-send-email-longli@linuxonhyperv.com> References: <1661899911-13086-2-git-send-email-longli@linuxonhyperv.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: longli@linuxonhyperv.com Message-Id: <20220830225323.B1C6B121F02@dpdk.org> Date: Wed, 31 Aug 2022 00:53:23 +0200 (CEST) X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 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 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/115666 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'name' - possible side-effects? #249: FILE: drivers/net/mana/mana.c:33: +#define MKSTR(name, ...) \ + int mkstr_size_##name = snprintf(NULL, 0, "" __VA_ARGS__); \ + char name[mkstr_size_##name + 1]; \ + \ + memset(name, 0, mkstr_size_##name + 1); \ + snprintf(name, sizeof(name), "" __VA_ARGS__) WARNING:STATIC_CONST_CHAR_ARRAY: static const char * array should probably be static const char * const #283: FILE: drivers/net/mana/mana.c:67: +static const char *mana_init_args[] = { CHECK:CAMELCASE: Avoid CamelCase: #427: FILE: drivers/net/mana/mana.c:211: + "%" SCNx32 ":%" SCNx8 ":%" SCNx8 ".%" SCNx8 " ", CHECK:CAMELCASE: Avoid CamelCase: #427: FILE: drivers/net/mana/mana.c:211: + "%" SCNx32 ":%" SCNx8 ":%" SCNx8 ".%" SCNx8 " ", total: 0 errors, 1 warnings, 3 checks, 1298 lines checked