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 95ADDA0563 for ; Mon, 23 Mar 2020 08:17:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D8871C02D; Mon, 23 Mar 2020 08:17:27 +0100 (CET) Received: by dpdk.org (Postfix, from userid 1017) id 6F1BE1C065; Mon, 23 Mar 2020 08:17:26 +0100 (CET) In-Reply-To: <20200323071759.13075-8-qi.z.zhang@intel.com> References: <20200323071759.13075-8-qi.z.zhang@intel.com> To: test-report@dpdk.org Cc: Qi Zhang Message-Id: <20200323071726.6F1BE1C065@dpdk.org> Date: Mon, 23 Mar 2020 08:17:26 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw66995 [PATCH v2 07/36] net/ice/base: use struct size helper 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/66995 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ptr' - possible side-effects? #141: FILE: drivers/net/ice/base/ice_type.h:37: +#define ice_struct_size(ptr, field, num) \ + (sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num)) CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'field' may be better as '(field)' to avoid precedence issues #141: FILE: drivers/net/ice/base/ice_type.h:37: +#define ice_struct_size(ptr, field, num) \ + (sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num)) total: 0 errors, 0 warnings, 2 checks, 50 lines checked