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 322A0606A31A for ; Mon, 30 Nov 2026 21:54:30 +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=IH6/LGBP Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F17BD40B99; Mon, 30 Nov 2026 22:52:31 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTPS id 1389C40671 for ; Mon, 30 Nov 2026 22:52:20 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-8c6c06b3321so8718649b3a.3 for ; Mon, 30 Nov 2026 13:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796075538; x=1796680338; 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=IH6/LGBP7REJ4SyduIP2zvrg4c6XVl7kOGEYrZmSafnORzIbaLmFcs7Zv7T9KHAQ68 CeT+ccnA4kNnvqDW8cZVDmhWsV9DqmCOwG0PZqFDHDf5w+DPAm0j6uaK4A2dOE5cWiSR 8AipINqQ7/3oHk+yAoBW2ARMgNJwLjR8XMd4LowmIcbVHe1GakwdvSd2dCW9JAEF4nV6 FUMVWA3ICjN3KZ77rlP6dlwiB4Cf/KIRaYAKKdnQiiZEj3NkOsmCezx8hDn3MjtKn+24 WQHFJJHnYBs2LmP/aGbNFOIxr7siEO4eYyVPntkvnp3N0XZgLP5YXu9rPYDdnVd/mk4r Qm+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796075538; x=1796680338; 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=PP5lC9NW9ewHUuhDz+SZS6acl5UC5QmJxJGgh3RnZIRkrZd60oVj7FK4xLIiC9ineJ 0uxPliyVLw7j0HAK/txQGLXOUNxAI8YzrhJ+ueryTugy57+BmDcMH65ykC0BSI0e75Ev 5+AHt8wfNQepYK3oZxX3/mmzD+u+uQctaM3LZjRHZY5C/z2zM4BrV9YJEHwQJmeMumaq 0ZJXQCGpj0S/7oFqzFTbEtfjTXAtKLPSfBFBBUUxMaPjSWBCtxTeAeO+EOdJBiYajr09 hmPG8Q/pTb7w1BXjUVrnXJuFLNeAR4x0DpJ9PYj2q0GGzLDWOJBDabSepRMhxDMr/3k5 bt+g== X-Gm-Message-State: APuU4Z+F74uc/HM7mYCLvo+Uw5ZUIeJuUrUTza82Lkw/XJv0tj/cwfN+ 5B0HF54t+7Hz4xpI0Rca7R8geH+Z/ordkU0LAHDuSu6/QxzT8Mab6/SVZn4YYxft7eDGwSRD+rB cDC1LSEQ= X-Gm-Gg: AZFdTZcoLP7ML6387cPO6sU7TBqhUgPnqZPIfGVmnH/zAwiD/ZJSmT86YaFQYCOsAn1 x+xrtY9pcI/gQTf8LbyuEVAWUyhujFJ3bIn3eDJUf+ukYE35cgprHowrDmka88LERo8rznUnYYk Kf6lek4/TSRLzpD8lox7wIdTaR7pGUikDJGzBbpkwI4jnZT+cAWr/RW7OIZFaH8sUOawP7aXVp6 lIIIZN2fCkpXxKE/96DchnI81QEJQzA0eiUM/qmdiRR2XFzg9bPeqHzCVxBdNfAe1LMUX59LLRF JN4Aqb4ffKkv+7olv7t87tu9nRrVUg3pNvBkkkPxUYeIs70LQNooAZ3Czh8Z2tIrMw23rgLPoPZ 9lUEM8ZHBrV9CtKiIWLTuSeWWlqxs5bMTkpn4R7dhRQn9aJh7a/oZERYdjFxFK08ILW7NzyP57u pv3KWouExO+/LsKUqPgbAoXf5Qg/xIOzNX2c4WgtBRHA0XnO2UDRi/MHI8XQBh4H2fl7OQm5wru 5yUj3DgY/Q/jvv558sQWcnetxVTLc0AfDVTjOpdBHaVzUQyQnskmnITVAJ7Fd1ef1Nl71BkyCTv RG2PJcurYVp5MWYc5IvHHFN4UDAJBDeaSFWmLjwc3cUJc904uDOfPuwIExVmA3T6lzfYktrHuTO FoFgqrx//Kyhwug== X-Received: by 2002:a05:6a00:3d09:b0:8a0:1889:9685 with SMTP id d2e1a72fcca58-8c87c38843bmr36048601b3a.28.1796075538513; Mon, 30 Nov 2026 13:52:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 13:52:18 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 19/38] bus/dpaa: exempt this driver from unreachable code detection Date: Mon, 30 Nov 2026 13:49:25 -0800 Message-ID: <20261130215203.886245-20-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 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