From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F278606A31A for ; Mon, 30 Nov 2026 21:54:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=njihtDBf Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C89D140671; Mon, 30 Nov 2026 22:52:36 +0100 (CET) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTPS id 71DE140647 for ; Mon, 30 Nov 2026 22:52:21 +0100 (CET) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-8b68e59ab33so8049199b3a.2 for ; Mon, 30 Nov 2026 13:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796075540; x=1796680340; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xbg7hWPCv6NWahery34DF51fXDUP/DXK/riOCTWrJfs=; b=njihtDBfZeu1LFuY4z0n9WeAqVN0Umyf6sJ/cBdG3ybCbywzFpRfHkt48x6L/m5qXI Q4Rs95Rbf0TV3/N9KgIu4IIFrhqTHQl95weMODigoibCvFdwrzDakz3gV8HsqzjEYdt4 MB/j4cUJM8upbxYiaJodlH2dLrQuZZTopUcMUxvV61qTPWBBDbAajuUPS/G+D9oAntUr zEWVeDweEy0v6k1CSs+gbdoJ5gp52UesPWvYtPqvWcKEZ1Lkv3pETKGUiz2gYRhNQbA8 5vdlIdo87ftzL9pnP0K2ZPlq6J45d+Q6KcUM7SOw7xWi8tXCncgr1qSK/ZNhxhg7mlC7 7iHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796075540; x=1796680340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=xbg7hWPCv6NWahery34DF51fXDUP/DXK/riOCTWrJfs=; b=hCq1NHzOi8eBlmmQGcZDu7OrwTVLZ6PUbvZ4jQzMvkltGVnZW8N4WtSodkyjqa181b LbY0YkuvEx7Zdh77QHXFIf5lJfg2XSbMc5f8Uqq22Ll8PUxSrusZ30jb+CmxPUi3t83N AuZBxSP3iJx7VNztMCAdRrkut4AaIKs4o4nQO/2nO1eNB6yb2S02Zj6zFgI6Eqi6YKib oJuCN7xKuO5PEB90gQ5GIcpg9mbOyo70XotVJseaX378e8FHZNo1WJUkCL+ppIjf7snV etivEnCTFWTtwiTEQPvUfZDJ8w0+/zyamt3e50l3NJwgM9UqHlJbFb0qHC/aIgbxlzd4 vO6A== X-Gm-Message-State: APuU4Z8L1O4lyXpwHeNTe8/LdOKyBSsgMkcCptxrO1eyufFHaNLJ/hwt jH74uKDuYiH65Zid4exvW+GF6jqels9Onuwy7YoY9YvbUzN7W1WD7Nfc2HJAlAZpp93ZBM421JG Ig37F+Jk= X-Gm-Gg: AZFdTZckmIVhjeWbW36oKkxKWc+414GUCgq62MRmAqUMeFV20SfcdIsyY+CLi9h94Rj OM/NxzkXmQMaMsROD4M++RKc/OSBQhcNtCLMhwtKW03gZSblX7+J6aH/p0joTLAS6Yt3EYxl30P Drr1FLOgGwccAjgGulflv1+NR8qT8IPDsQRH+Z/N/QCKouOq6P1DTCjY0eMDz6MPf53t6Pnd/sg ACi4cn9w3tVstJpTvna1R0DmzTgT2qqEdq0tan8aQK01kwTSN1xeCkKTF71MujoPlPrSMF1+Fh0 mp7J5IMqtx32WIkEyUKe1qpMVyzeSTKPn04MbV+vOXAkivz0tVcGeHgOqOWdGL6mEeEmaygAKkU z6n4SanWq2yQOt07zSH9WeY+5aJsH5jWGIHcnyxZ+V+l/vuwtwVhJuOiRuzYflYOXyuUARkAgWf D5GmY7WZAH+pQ+rTLcOnjGkfBbr04apddu8qvPsDFMo89pu0g65znW2QS/bknTIccC185BwsER2 a5q1XrbNPpgKLP/6LC4a9wO039EUAh9jjxFkIl4iLO5jNs3Rvxh3D/5Jz0UhxnfFlJ8Dl7Wu2+o tZnTFkX0eWaZD7D69jTuPYPlyXA+toejpzF1tj7m3oSKWNBQjGtKXBgOUAQoOp17cwN4eZ6URpp +j8cvJQc4F4sbHg== X-Received: by 2002:a05:6a00:2e14:b0:8b5:a10a:a3ef with SMTP id d2e1a72fcca58-8c87cf2acefmr36689645b3a.51.1796075539881; Mon, 30 Nov 2026 13:52:19 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e45756sm18561940b3a.27.2026.11.30.13.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 13:52:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 21/38] net/txgbe: disable unreachable code checks Date: Mon, 30 Nov 2026 13:49:27 -0800 Message-ID: <20261130215203.886245-22-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261130215203.886245-1-stephen@networkplumber.org> References: <20261129205006.1440292-1-stephen@networkplumber.org> <20261130215203.886245-1-stephen@networkplumber.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 There is unreachable code in the base/ files imported from the vendor. Disable the check for the base code only, using base_cflags, so the driver's own sources are still checked. Signed-off-by: Stephen Hemminger --- drivers/net/txgbe/base/meson.build | 3 +++ drivers/net/txgbe/meson.build | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/net/txgbe/base/meson.build b/drivers/net/txgbe/base/meson.build index a9a02577ce..b8cc9ce3c9 100644 --- a/drivers/net/txgbe/base/meson.build +++ b/drivers/net/txgbe/base/meson.build @@ -15,3 +15,6 @@ base_sources = files( 'txgbe_e56.c', 'txgbe_e56_bp.c', ) + +# base code has unreachable code +base_cflags += no_unreachable_cflag diff --git a/drivers/net/txgbe/meson.build b/drivers/net/txgbe/meson.build index dea50bfe14..c10db31e0c 100644 --- a/drivers/net/txgbe/meson.build +++ b/drivers/net/txgbe/meson.build @@ -23,6 +23,7 @@ sources = files( deps += ['hash', 'security'] +# warnings in the base code imported from the vendor cflags += no_wvla_cflag cflags += no_shadow_cflag -- 2.53.0