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: 153708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3625471vqb; Mon, 16 Oct 2023 10:47:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPxmNuQcaisrruqGMTjv8UV0ay0bdkZPyYZ01Q+9FHIOUutAxP7hJJNtjgYRgiRhdK+Nm8 X-Received: by 2002:a05:6a20:1584:b0:15d:f804:6907 with SMTP id h4-20020a056a20158400b0015df8046907mr40871435pzj.0.1697478425272; Mon, 16 Oct 2023 10:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697478425; cv=none; d=google.com; s=arc-20160816; b=hnGdC9IAoLYyx4Zx7sK5QZRpm+Pnj27xoOSXudpyJ1JnJR/WqZtVT0tvOnfgn5BLQ4 4WJ6vIJPM2WBr5UKgpp3u9jAyRGBOzV/Ieprv+FeR7MlVZDZVno6OEuBR8ArfxjF8NHz zguiz5McYfPxlA06UajwAAuURkFuOrMQU03ZNQi8nbKD2RJH4XIa++8nijcD2dB8/Zgw XzeuyKPZyVLfimvx04gQ9giawZBvyu6OYUT9aPOM1h+LWTWz3yqAyKdsiO5wZaV02eUn SlAmQzbsFG3vjqpOp+BtDG4ndrJCOQ5/Rg9Lov3OkQ8yUXs+lk870VQQos/xsrzEkYhh Rtgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from; bh=Q2mml/A15UItuacXHhGdBKR2lYqEgBFyB8IPoL6FNck=; fh=rQKW2a/2qYV6ltzz+Q8JLQbzRiMIKIW+YKz9lHf0kX0=; b=B6mF/JVmD4dO7vG1eoANKpWGfbsKLtJHt+KnJHGgvVEPMwhF4WY0UaVPSfRL3EXXS3 oBwVYpghZ6soSbg3RnPjx02GzSfWLLPVcfRJYICm+v2r0AksEFKIHPfsYbXkpNv6oPal RLjAfi/QHzeHI+POFkkwbRptlxhEM6fBVAK2QBoTiMb4neGRFJjn2rNtypc+ajugH7RR YCIlkJmMfHalR0L6BakFUq7d/JVdneS1FUsIo2qmWFwJwIsTSsB/cmmdeaMS+1aLlnmH G+YQBy946AYz+M8T7Md6BugDB8J8hfhA0IMI6d1CBWMPmFn+DECQGZJ6twJ+4UgJMQrj ehtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id m197-20020a633fce000000b005b74e2e9d56si3134738pga.385.2023.10.16.10.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:47:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 281B1803DAE4; Mon, 16 Oct 2023 10:47:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232033AbjJPRqi (ORCPT + 18 others); Mon, 16 Oct 2023 13:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232992AbjJPRqg (ORCPT ); Mon, 16 Oct 2023 13:46:36 -0400 Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.31.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D2B69F for ; Mon, 16 Oct 2023 10:46:33 -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= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 16 Oct 2023 10:47:00 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779935137561666078 X-GMAIL-MSGID: 1779935137561666078 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 Reviewed-by: Neil Armstrong --- 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