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 550F243903 for ; Fri, 19 Jan 2024 23:14:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D47742D9F; Fri, 19 Jan 2024 23:14:48 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 5339A42D6B for ; Fri, 19 Jan 2024 23:14:46 +0100 (CET) Received: by dpdk.org (Postfix, from userid 65534) id 3CFA2122B9C; Fri, 19 Jan 2024 23:14:46 +0100 (CET) Subject: |WARNING| pw136004 [PATCH v2] common/sfc: replace out of bounds condition with static_assert In-Reply-To: <20240119221401.68182-1-stephen@networkplumber.org> References: <20240119221401.68182-1-stephen@networkplumber.org> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Stephen Hemminger Message-Id: <20240119221446.3CFA2122B9C@dpdk.org> Date: Fri, 19 Jan 2024 23:14:46 +0100 (CET) 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/136004 _coding style issues_ WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop #119: FILE: drivers/common/sfc_efx/base/efx.h:22: +#define EFX_STATIC_ASSERT(_cond) \ + do { static_assert((_cond), "assert failed" #_cond); } while (0) total: 0 errors, 1 warnings, 18 lines checked