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 E5005438F8 for ; Thu, 18 Jan 2024 21:20:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E056D40E78; Thu, 18 Jan 2024 21:20:06 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id D1A0640E2D for ; Thu, 18 Jan 2024 21:20:05 +0100 (CET) Received: by dpdk.org (Postfix, from userid 65534) id C1C6C122B9B; Thu, 18 Jan 2024 21:20:05 +0100 (CET) Subject: |WARNING| pw135968 [PATCH] common/sfc: replace out of bounds condition with static_assert In-Reply-To: <20240118201843.189978-1-stephen@networkplumber.org> References: <20240118201843.189978-1-stephen@networkplumber.org> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Stephen Hemminger Message-Id: <20240118202005.C1C6C122B9B@dpdk.org> Date: Thu, 18 Jan 2024 21:20:05 +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/135968 _coding style issues_ WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop #104: FILE: drivers/common/sfc_efx/base/efx.h:20: +#define EFX_STATIC_ASSERT(_cond) \ + do { static_assert((_cond), "assert failed" #_cond); } while (0) total: 0 errors, 1 warnings, 10 lines checked