From patchwork Mon Oct 16 17:45:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 735815 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A973ACDB474 for ; Mon, 16 Oct 2023 17:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232228AbjJPRru (ORCPT ); Mon, 16 Oct 2023 13:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231675AbjJPRrt (ORCPT ); Mon, 16 Oct 2023 13:47:49 -0400 Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.18.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8196983 for ; Mon, 16 Oct 2023 10:47:48 -0700 (PDT) Received: from [92.206.139.21] (helo=note-book.lan) by smtprelay04.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qsRfi-0005Km-0e; Mon, 16 Oct 2023 19:46:30 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Mon, 16 Oct 2023 19:45:53 +0200 Subject: [PATCH] crypto: qcom-rng - Add missing dependency on hw_random MIME-Version: 1.0 Message-Id: <20231016-qcom_rng-v1-1-1a7d7856651e@apitzsch.eu> X-B4-Tracking: v=1; b=H4sIANB2LWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDA0Mz3cLk/Nz4orx03VQTs2SLRAszI4ukJCWg8oKi1LTMCrBR0bG1tQB CBxdjWgAAAA== To: Herbert Xu , "David S. Miller" Cc: linux-crypto@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.12.3 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This should fix the undefined reference: > /usr/bin/aarch64-alpine-linux-musl-ld: Unexpected GOT/PLT entries detected! > /usr/bin/aarch64-alpine-linux-musl-ld: Unexpected run-time procedure linkages detected! > /usr/bin/aarch64-alpine-linux-musl-ld: drivers/crypto/qcom-rng.o: in function `qcom_rng_probe': > qcom-rng.c:(.text+0x130): undefined reference to `devm_hwrng_register' Fixes: f29cd5bb64c2 ("crypto: qcom-rng - Add hw_random interface support") Signed-off-by: André Apitzsch --- drivers/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) --- base-commit: 4d0515b235dec789578d135a5db586b25c5870cb change-id: 20231016-qcom_rng-e46c8a8628bb Best regards, diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index c761952f0dc6..79c3bb9c99c3 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -601,6 +601,7 @@ config CRYPTO_DEV_QCE_SW_MAX_LEN config CRYPTO_DEV_QCOM_RNG tristate "Qualcomm Random Number Generator Driver" depends on ARCH_QCOM || COMPILE_TEST + depends on HW_RANDOM select CRYPTO_RNG help This driver provides support for the Random Number