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 8D043606A336 for ; Mon, 30 Nov 2026 21:55:14 +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=oOFGRMKD Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5F7940E11; Mon, 30 Nov 2026 22:52:39 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTPS id B704E406BB for ; Mon, 30 Nov 2026 22:52:23 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-8d2d4cdb478so1736221b3a.1 for ; Mon, 30 Nov 2026 13:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796075542; x=1796680342; 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=h4m622UslyVc3RF+tpNkfXqEl4NneoAMOIym+nXVpOc=; b=oOFGRMKD9KupVYiUJoLuy0St7niyz1cKtRsEmgLxzqqMZDLYpS5Qm3zCZNhRQ8oBbE 85BXLhB24H/Ty3atUpUDQI9ybWNI0vjkg6wn7Cy27+hEl8mW/chTFGZeera9qtkl4t3S 37zYsEHk83c4oFEC5AeJVwRenMxqBTW0KJJX8cnEJxNqqHrQfEBZTwGlwRqPJUh2NkVy 4RzYfLKM787bOwxUemz7GGV6NbrZKKXIdwz5hXu3z76T5VyuhAAGpcPFdC9W7su3gG9v CGWFczmhDG1ON+COqUd4IIChUoQPW2+09hTXG9w/ODElgBTxfRR0BjPbuQrxjepUbP9p RM3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796075542; x=1796680342; 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=h4m622UslyVc3RF+tpNkfXqEl4NneoAMOIym+nXVpOc=; b=uvBsNW+lAJtWL66sx2sRpB4UrI7nRol93IsqKnT2gzFl9EoGmjpw9xaDibn1f5A45I 1FLFjNZ9IMkjYY57bOkoYFTmRaoBPYu5HMKm8hX7mYXYyFUGl+2YdkOcY34lxZjpHe22 xuCxHv/Oo44J6feyL5b+hK2QzToC6yFN/cf1/4pARusqaXLTHJBVfVKIh7G7i4sbLoWO X6rBc9v6pEMIpOS/R6pZa2xIFuVAV0e+o7KodVLYSX9ewpyyy7tCCT1qQQ9vOuilz9Tk pF59D/55DKzqQQdodIwALwXt9KHrjqhxChTxLuoFoG+azxC3M9rN6vIu8uOukvy8EdnK LQCQ== X-Gm-Message-State: APuU4Z9ymbv4vWQ16umDJadW38oQtqL9h3jsvsP2+ZG159ANdihSQ89J MIvbvfe7RCM9pfnm7ct3H2Hjw4L1vOwSpvv7uDkRBERqb26qCpjhpHIvH/yMFhxUZzeJhsVLCmH qDn6jIug= X-Gm-Gg: AZFdTZcIYBH8ymj4oMiVdtZsDb0UXUuOnNYDAZoQ7No/lK8q7mRIVStTPQrHJn8WIiP Lr7V4h5CthfVoZ+kCRoPUb2qMK9cPcCSQyhxhI+5mEjdFIatXP98aFkX658vU89VWU42MYOWz5o EL63nPD9ukDgq3MKW5GorTQMYQVMw0frJsGGDcutlMiYSRLDkRGNSY7v15SIXEnAUJEcqnuBk3R Yj3e7iyeHEhEbyjsaQKUS226Cyiqo7Kvmt0tIc/6KTT3xG2/baYXrw2HLoEt+bGpAsWxgpc9buH 18AHBNOQyHztVdPws/7Br7L+CDUQMJOEcrB30mNHkfYP+QVxs+VRyswya+sS5KltJXNx0bBYJ9K YLzaKWB1dRelIPIGJ6cKMi7ILW+QVbf6gZVCNX1fpsPXd0DnKaK+D3fcXH4+u0BcWzHELXlEUGT 8L88jI4R/wE4FHacma1mRdrP1jTTrleQCfXvQsEQZqKQA1s9FdzpRPSun3dpxa0shSnP0+G0dpb hRnh89cZGnmG6YWEkR51pVxZow/EK0ipETYGWICSBRey76IjqrTNOd3bfYXbhOqofMepmTD6nk1 81hbuoxUoSwTeCynlBD2Fliptr9Hs/hmbQ4vpCZoeHSF0iUIbaamJPdDh9dRHYFbEvoBOdoLs6i bxHo3IskhzXCWIg== X-Received: by 2002:a05:6a00:8c8:b0:89f:4cd9:241a with SMTP id d2e1a72fcca58-8c87cf2a137mr33658912b3a.41.1796075542226; Mon, 30 Nov 2026 13:52:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 13:52:21 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 25/38] common/sfc_efx: disable unreachable code check for base code Date: Mon, 30 Nov 2026 13:49:31 -0800 Message-ID: <20261130215203.886245-26-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 In efx_mon_init() the monitor type switch only has cases when EFSYS_OPT_MON_MCDI is enabled. DPDK builds with it set to zero, so only the default case which jumps to the error path remains and clang reports the assignment after the switch as unreachable. The code is correct in the upstream libefx where the option is enabled, so add the flag to the list of warnings already disabled for this base code. Signed-off-by: Stephen Hemminger --- drivers/common/sfc_efx/base/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/sfc_efx/base/meson.build b/drivers/common/sfc_efx/base/meson.build index 78383a38a2..885bf837cd 100644 --- a/drivers/common/sfc_efx/base/meson.build +++ b/drivers/common/sfc_efx/base/meson.build @@ -80,6 +80,7 @@ else '-Wno-unused-variable', '-Wno-empty-body', '-Wno-unused-but-set-variable', + '-Wno-unreachable-code', ] endif -- 2.53.0