From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 7E8966833; Thu, 6 Dec 2018 18:40:51 +0100 (CET) In-Reply-To: <1543820821-108122-3-git-send-email-wenzhuo.lu@intel.com> References: <1543820821-108122-3-git-send-email-wenzhuo.lu@intel.com> To: test-report@dpdk.org Cc: Wenzhuo Lu Message-Id: <20181206174051.7E8966833@dpdk.org> Date: Thu, 6 Dec 2018 18:40:51 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw48471 [v2, 02/20] net/ice: support device initialization 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: Thu, 06 Dec 2018 17:40:51 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/48471 _coding style issues_ WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1032: FILE: drivers/net/ice/ice_ethdev.h:225: + bool offset_loaded; CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1058: FILE: drivers/net/ice/ice_ethdev.h:251: + bool offset_loaded; CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1059: FILE: drivers/net/ice/ice_ethdev.h:252: + bool adapter_stopped; CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1070: FILE: drivers/net/ice/ice_ethdev.h:263: + bool rx_bulk_alloc_allowed; CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1071: FILE: drivers/net/ice/ice_ethdev.h:264: + bool tx_simple_allowed; WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #1118: FILE: drivers/net/ice/ice_ethdev.h:311: +#define ICE_PROC_SECONDARY_CHECK \ + do { \ + if (rte_eal_process_type() == RTE_PROC_SECONDARY) { \ + PMD_DRV_LOG(ERR, \ + "Control plane functions not " \ + "supported by secondary process."); \ + return -E_RTE_SECONDARY; \ + } \ + } while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #1128: FILE: drivers/net/ice/ice_ethdev.h:321: +#define ICE_PROC_SECONDARY_CHECK_RET_0 \ + do { \ + if (rte_eal_process_type() == RTE_PROC_SECONDARY) { \ + PMD_DRV_LOG(ERR, \ + "Control plane functions not " \ + "supported by secondary process."); \ + return 0; \ + } \ + } while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #1138: FILE: drivers/net/ice/ice_ethdev.h:331: +#define ICE_PROC_SECONDARY_CHECK_NO_ERR \ + do { \ + if (rte_eal_process_type() == RTE_PROC_SECONDARY) { \ + PMD_DRV_LOG(ERR, \ + "Control plane functions not " \ + "supported by secondary process."); \ + return; \ + } \ + } while (0) CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1274: FILE: drivers/net/ice/ice_rxtx.h:62: + bool q_set; /* indicate if rx queue has been configured */ CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1275: FILE: drivers/net/ice/ice_rxtx.h:63: + bool rx_deferred_start; /* don't start this queue in dev start */ CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1313: FILE: drivers/net/ice/ice_rxtx.h:101: + bool tx_deferred_start; /* don't start this queue in dev start */ CHECK:BOOL_MEMBER: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 #1314: FILE: drivers/net/ice/ice_rxtx.h:102: + bool q_set; /* indicate if tx queue has been configured */ total: 0 errors, 4 warnings, 1261 lines checked