From nobody Thu Apr 2 10:57:42 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCC5B33EC for ; Sun, 29 Mar 2026 20:32:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774816376; cv=none; b=ivYCnqK8PsALcQhPKf69jsl52BHvZ4F3iu2jajhK7JBMMv5axw2tfeasYUKCkrA7vyNsOEVRxqQHOXedh7iuoMRK1Ge2fED6lWpn98FoAnas2Tlg1p43/MDoZW38LmWPDAQGzxjM34PePh04Ob6lSWDiwZml1sXecI/IlKwj1Lo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774816376; c=relaxed/simple; bh=5br5CuyEZLXQr1BDwZqa7i3PxEZwJupaVYhQk6OZ8D8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q0eIqakeFPUh3IH6fRDwLP3cVUOot6gYRIsuWjvakzbhmybL8HqnF/Qgdsj1hIeZEKuQgFpyxh91SAywQG0DuwEmSwISttY+10s92xQcr3U0eKsH6C+HQEOAxHqR05OrFxiSM6flhXwi/R0OVy5sv6AmGnFLc2JayqcBoS1kkeo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BHPZWW9l; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BHPZWW9l" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-486fe2024a9so26848425e9.0 for ; Sun, 29 Mar 2026 13:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774816373; x=1775421173; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=+b2y5ZbKBYPAjv+L8XhgxuSswLZTcKZ7nB2tv1qr8QI=; b=BHPZWW9l1Wb+yXS7JxRmdN+JIAzjg+n+re3dLSSSQ7qQ5pOa5HIHygmYBdR6QkpZxD PaC18P9pGhTar7k6XvN4zr+bHhnPWYymrskOmqDqv9Zeav/+OtwI/jT2TyTTxGkUVgHD GQwCHSoeTxqLMrINMi+3EQg5h9wUhBwewZYcyHgY6pIojJmT+ICxn8ciTrPBFbgK+ySU OI+pACC9suJgNliSNdwJmJ0P90aV/MAlMLAJukrC2PO/bWkIsXaqHaNmcul6te4lUpY0 qGZkteQi0QIdT0XlkHbaFp5pJZjb80ma/RwucaSkjChhEEA8XqNfl11RUWW78p6NdwiP 0MRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774816373; x=1775421173; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+b2y5ZbKBYPAjv+L8XhgxuSswLZTcKZ7nB2tv1qr8QI=; b=bKJXqqbq45dd/l1wqamnQmMJToUlgiyfczL+gl0MMrSHJzxuuchRJlRsXbslBuvALQ r+9hkJ7Y+XjaD8fDomww8OoO8pmfWDNowZCNy69BPoDUpKRiQdmZYihGFUyusTrYpe00 m+uPWq+bo7tC04PUNSvA0hbImu0wNfIaZIIaEe4bidBYK9xobHeiIwXSbQ9Jkpu8HnlY opC/8WrZschDgdkz8XIuR8JGMCz8cmz+SrtGD0K1o5ZrHi18yvuV7XOeQjafEGOzq9Hw wUf2Ef8Q1a34NqQKQQHPaH7t/B07qtWzUEIKCoaEBUolRb/uoDry9sbKvupxcMBEqczI RIvw== X-Forwarded-Encrypted: i=1; AJvYcCW1RqcJo6KSl6ymzFYF29MMBNKpWtWm5nPgQzb70ast3BdZYdXTtTV7tPJgpzjUQn0Q/vCzof/cN9YZ6nM=@vger.kernel.org X-Gm-Message-State: AOJu0Yznlecz8+Uu+jP56eFrr8Irby1ATuSSiOA7sHwh2wf96g58szUg cNM/ctkTZe5jX6Ch22UhXjp69LEIsp30+6u5cfirFqsERiFdzMomFw8y X-Gm-Gg: ATEYQzzOn85ZmLHucdtciLS563eMbuhVx5QJ9K9EhGA1nsiWb3R0tSchSAkQO178vbA ikI3egNlkRFwdclyoeavy4E0m5Ec+qGKlknU/y+HILqSfNQeiw+lJ26gDo9QAc9G+JE/YMosPy4 r5ce3Ot1ORMrwWqdfcPJh9ftNPznjF0PIlZNKvRZjOqKBH9fMNDlaWeiVAbeHS4xRlm8ezF19B0 wOwDtnom1uHZEYd0ArWdp+HjzA3yJVB79nhtY8fQ86tGEr+R6RIg7VsusPJ36sC3fVwAtJN7lvA JaZPDUskmHNj1yd2eV22jDpCSA/Q0T3qWNY3klM6t9Q0Ceh8xU1asHCREOe9DYtaxq2hvBnlR4s JVryLfcfB7W4UJcY/Z6FEfotJIvj0VadjrVuNys5pBpD4q9tv2U1g0K6ofMR9W2TQMk5bIncI8n fJsZhdrUplYrza+s2f2STO6Pnr7Ynd3TDopvQ4G6hpdxVJTSAQsI/YPw0= X-Received: by 2002:a05:600c:4744:b0:485:3193:6ddb with SMTP id 5b1f17b1804b1-48727d5a2c7mr167241435e9.3.1774816372655; Sun, 29 Mar 2026 13:32:52 -0700 (PDT) Received: from nixos-office (195-23-151-163.net.novis.pt. [195.23.151.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43cf245e4f5sm13949645f8f.19.2026.03.29.13.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2026 13:32:52 -0700 (PDT) Sender: Julian Braha From: Julian Braha To: charlie@rivosinc.com, mr.bossman075@gmail.com, palmer@rivosinc.com, alexghiti@rivosinc.com Cc: pjw@kernel.org, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Julian Braha Subject: [PATCH] riscv: dead code cleanup in kconfig for RISCV_PROBE_VECTOR_UNALIGNED_ACCESS Date: Sun, 29 Mar 2026 21:32:49 +0100 Message-ID: <20260329203249.563434-1-julianbraha@gmail.com> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The same Kconfig statement 'depends on RISCV_ISA_V' appears twice for RISCV_PROBE_VECTOR_UNALIGNED_ACCESS. The first instance is in its choice menu, "Vector unaligned Accesses Support", making the second instance in its specific Kconfig definition dead code. I propose removing this second instance. This dead code was found by kconfirm, a static analysis tool for Kconfig. Signed-off-by: Julian Braha Reviewed-by: Jesse Taube --- arch/riscv/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 61a9d8d3ea64..35a2926494e1 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -1004,7 +1004,6 @@ choice config RISCV_PROBE_VECTOR_UNALIGNED_ACCESS bool "Probe speed of vector unaligned accesses" select RISCV_VECTOR_MISALIGNED - depends on RISCV_ISA_V help During boot, the kernel will run a series of tests to determine the speed of vector unaligned accesses if they are supported. This probing --=20 2.51.2