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 6A65A606A327 for ; Mon, 30 Nov 2026 00:30:06 +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=exE9bpeZ Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A97240DD5; Mon, 30 Nov 2026 01:28:21 +0100 (CET) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTPS id 26D5340B9B for ; Mon, 30 Nov 2026 01:28:16 +0100 (CET) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-cc751eddf25so6013386a12.3 for ; Sun, 29 Nov 2026 16:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795998494; x=1796603294; 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=4i4raZ8L2GnjFXgEgRL0XJr7KBs65MtuMoY0ABzbzP8=; b=exE9bpeZEiYmgHVp3S73Jez+f+KNVPKqvBdQDkz/TeNPjPFUtSmZnJugsFiD8os5Ks aiMr8JorASerwdBd7Mnk1WaUOwVgcyf4mFSAXSdk0W3oZgnLW7a65I1S02mtmF2ns3VU x88aYyRQ/kG36cVnVp3jQXP8XWiOSWw2oHiKf6x5z7tSwnSEjy9dV9gUzmyCF1FUiTu4 5tdOL2KfiAp/DG840Hr7nHZJZ7JnYWYIErJaiPB7anouOr9zcBvVttlp0RnX+I9PbiUb ILXK01OIYtlTuJh3KeVwThumbngSNKQ1V9sCQ7fXwrZbu4ITmUPN2VJWPLEnTrTxoK9x nO/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795998494; x=1796603294; 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=4i4raZ8L2GnjFXgEgRL0XJr7KBs65MtuMoY0ABzbzP8=; b=1eIPLCIpMX9OEynYVFkd62+Lo+tPPHlAZUz+lTnxpaMJDXnyXS4+KUAADeu0Gkx9W6 mg/go8r4HQFnvE19Qr9E3jmG7cyWjwle5nCnd5eME4Lzy4XoIYnNnj6cE5W8TBQ1AVTy D5KWdAL7CZyoipaT4Gpo21oQOjZDCnzJoyRFz9BnmtjRyqDeZoEu5q/YHEh57nd7mpKY z3RYl5ZZpSDyYxItCy53VMn+3n/D7o2pE4eDdqQ+E8BucNKzjPhSwRO+4F+p5ggnLSqp 2TBkC2Oti/WPhCszelnX7d9WRIFuucrU9sXcSK/5ZRlQ83SEYbil+jponRyRlYQb8Tmd mbWQ== X-Gm-Message-State: APuU4Z8J8+LejAKwV3BFuR4JZaaKvLlEXAagaX8GPwjZ4/UoNmmbWcP9 xWaPltmzdKDIPzyj6m3vMDHg3GAfFJlqyyhAzWGkbg6v6ZQ3vt9zDB9GOYW4/F1WRlLNA8qxwXI jadrfRgQ= X-Gm-Gg: AZFdTZc7WTiAU2tIQKxNIWAOjoGvsvIPaxY/7K7LRZmJ6n1qWAv5lRpFQEq6q4VCao7 hSRsBnJ90NG12Z/B9hUmBSejuREv69zYWytNmBw53/9CjbmqIjFOcZoaFsJX6dPFsz8rYRIrTLA xzGbV18C+FRE2wEQ3AFeDP4ih0Z3wn+MM9qosjhpLwh0mnCZbzE1Ty0SBx8S8zUbRsDUZL7IYT0 QzJDcQ/GWnWyq2jpqrbWYP3Gijj0LNQ89zahfnvp/HytMjfebCQHFQ1mRRJ0TzjZ8WTjvpvrKHD zSR2Vg6sQStQHIGLyje8EGmsy9rMMUsC2/zK0sD78T47TKCnT6yWr0PN6WY/C0dMoSBkFlZgSOX grwkWzR4i8ZrgpfEEieFy4518sip0ZeLxGZswBVzJDndepKkg1dMMMeuVuAtz8dwopUtDhDFxLK DYGGZJGkPt1MsEemB1mdlz7aIuqjbrm6W3vol1nC3Ht4jUacxup06Is3xUGm8TjeWKmchd88/dz wx1zpwS46aoGcLYzDYwbJMzjNwHENIScSPXHDVeTwIgOzHTH3Is1r4moSbsgPT+gTcuUJw4dnP1 dWN7Zbf31HeTnNBy6erLl06ks7xdoS+uUWwRxGvz6UylD00bDd4MrOha/x68CW+2G5mn X-Received: by 2002:a17:90a:e705:b0:3a0:9640:803a with SMTP id 98e67ed59e1d1-3b41c7e118emr31587852a91.5.1795998494564; Sun, 29 Nov 2026 16:28:14 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b21e19fsm19455840a91.0.2026.11.29.16.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:28:14 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 18/37] bus/dpaa: exempt this driver from unreachable code detection Date: Sun, 29 Nov 2026 16:27:03 -0800 Message-ID: <20261130002752.2342213-19-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261130002752.2342213-1-stephen@networkplumber.org> References: <20261130002752.2342213-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 This driver has some unreachable code warnings in the base/ code. The DQRR CFG register value in qm_dqrr_init() includes the terms "(0 ? 0x40 : 0) /* Ignore RP */" and "(0 ? 0x10 : 0) /* Ignore SP */", which clang reports as unreachable code. Both terms are always zero, so they contribute nothing to the register value. They look like the remains of a configuration macro that was replaced by its disabled value, leaving the conditional behind. The same two lines appear unchanged in the Linux kernel qbman driver, so this predates the DPDK import. Signed-off-by: Stephen Hemminger --- drivers/bus/dpaa/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bus/dpaa/meson.build b/drivers/bus/dpaa/meson.build index d1f03bb093..ef5e5721e5 100644 --- a/drivers/bus/dpaa/meson.build +++ b/drivers/bus/dpaa/meson.build @@ -22,6 +22,9 @@ sources = files( 'dpaa_bus_base_symbols.c', ) +# base code in base/ has unreachable code, and is not built separately +cflags += no_unreachable_cflag + if cc.has_argument('-Wno-cast-qual') cflags += '-Wno-cast-qual' endif -- 2.53.0