Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2148725rwb; Sun, 18 Sep 2022 23:40:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4VmwCF+zZBHyNT0nv89WWtm3uvsgZUXcbfD0hYDth2JJCUOft89nzEcqTV8JGbVJbMkUu2 X-Received: by 2002:a17:907:760f:b0:77a:dfa:78b9 with SMTP id jx15-20020a170907760f00b0077a0dfa78b9mr11820358ejc.367.1663569650024; Sun, 18 Sep 2022 23:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663569650; cv=none; d=google.com; s=arc-20160816; b=xruy8E0SyDEod5+Qi3HA56eBseZNveMZcDWZUHmqFQn427BpARaTecETAeJyi2NEC2 mA3zMnACkoCo35R6tWCP/kYRulhl14QGuorNbzH11ZJ3HFKtCm5DBuIFSxJndRJ9o7RH DqzC7Ptn/PcnFPOotqXa716fE0TzEAZHGFZ6OW13DMwuBr+jLn7UKCqHipTl1rhaPB22 UqXh+H0Bn/ntcyU36AUtEbrS/ZqqzTzvTlpXeQszn3+bCEVNlAQmQwY9Om8GRLqlq06P FFkp+DnqN526ViwzMA8pvgVDiJQGTijcJG5So4ZI3M+0p0mmFnXdvkjxROMBZDYRLszu aH/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=z6YyjGKB0CeEjWI4Jm/jlEZ4gFxZheqysAALVYobgHo=; b=KLul52nenFbfE155kiiquiSmuao8aoHTXrN1Pc8o5VqqOL5b4Axx8FZLH5W3GqgP0G cDpCeEpLnOpYKJUOkjq4UvvO2YFpjGH62rOtRR/QlV6189NVBAjfoODwTWd0aQcC5YAE 7/33HCv0ElTzVld7fVatJeZYGPJOJytE7Q9t6fTPU87rL62mZu/WxeZLNjyqbRZJBiAU ySLoN85mEBWVg3hNeR/Y4U1iAsr+zcLdR0MHu8pKKErC6bAPU7A/trwnQKLbtUhjB6vj JO+KaVH2dSioH4VuY769OJ/er92Pw2wLUn9pgt4m3GpkXKuXlbbOADqFvTA0sfT1/239 P7iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xg14-20020a170907320e00b0077f92be81adsi24807710ejb.212.2022.09.18.23.40.23; Sun, 18 Sep 2022 23:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbiISGhh (ORCPT + 99 others); Mon, 19 Sep 2022 02:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbiISGhg (ORCPT ); Mon, 19 Sep 2022 02:37:36 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F6CE11A34 for ; Sun, 18 Sep 2022 23:37:26 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 28J6GVap079123; Mon, 19 Sep 2022 14:16:32 +0800 (GMT-8) (envelope-from neal_liu@aspeedtech.com) Received: from localhost.localdomain (192.168.10.10) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Sep 2022 14:37:13 +0800 From: Neal Liu To: Herbert Xu CC: Randy Dunlap , "David S . Miller" , Joel Stanley , Andrew Jeffery , , , , , kernel test robot Subject: [PATCH] crypto: aspeed: fix build error when only CRYPTO_DEV_ASPEED is enabled Date: Mon, 19 Sep 2022 14:37:05 +0800 Message-ID: <20220919063705.358225-1-neal_liu@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.10.10] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 28J6GVap079123 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_SPF_HELO_TEMPERROR, T_SPF_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix build error within the following configs setting: - CONFIG_CRYPTO_DEV_ASPEED=y - CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH is not set - CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO is not set Error messages: make[4]: *** No rule to make target 'drivers/crypto/aspeed/aspeed_crypto.o' , needed by 'drivers/crypto/aspeed/built-in.a'. make[4]: Target '__build' not remade because of errors. Reported-by: kernel test robot Signed-off-by: Neal Liu --- drivers/crypto/aspeed/Kconfig | 3 +-- drivers/crypto/aspeed/Makefile | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/aspeed/Kconfig b/drivers/crypto/aspeed/Kconfig index ae3eb0eb57f6..ae2710ae8d8f 100644 --- a/drivers/crypto/aspeed/Kconfig +++ b/drivers/crypto/aspeed/Kconfig @@ -1,6 +1,7 @@ config CRYPTO_DEV_ASPEED tristate "Support for Aspeed cryptographic engine driver" depends on ARCH_ASPEED || COMPILE_TEST + select CRYPTO_ENGINE help Hash and Crypto Engine (HACE) is designed to accelerate the throughput of hash data digest, encryption and decryption. @@ -20,7 +21,6 @@ config CRYPTO_DEV_ASPEED_DEBUG config CRYPTO_DEV_ASPEED_HACE_HASH bool "Enable Aspeed Hash & Crypto Engine (HACE) hash" depends on CRYPTO_DEV_ASPEED - select CRYPTO_ENGINE select CRYPTO_SHA1 select CRYPTO_SHA256 select CRYPTO_SHA512 @@ -34,7 +34,6 @@ config CRYPTO_DEV_ASPEED_HACE_HASH config CRYPTO_DEV_ASPEED_HACE_CRYPTO bool "Enable Aspeed Hash & Crypto Engine (HACE) crypto" depends on CRYPTO_DEV_ASPEED - select CRYPTO_ENGINE select CRYPTO_AES select CRYPTO_DES select CRYPTO_ECB diff --git a/drivers/crypto/aspeed/Makefile b/drivers/crypto/aspeed/Makefile index 3be78cec0ecb..a0ed40ddaad1 100644 --- a/drivers/crypto/aspeed/Makefile +++ b/drivers/crypto/aspeed/Makefile @@ -1,6 +1,7 @@ -hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace.o aspeed-hace-hash.o -hace-crypto-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO) := aspeed-hace.o aspeed-hace-crypto.o +hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace-hash.o +hace-crypto-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO) := aspeed-hace-crypto.o obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed_crypto.o -aspeed_crypto-objs := $(hace-hash-y) \ +aspeed_crypto-objs := aspeed-hace.o \ + $(hace-hash-y) \ $(hace-crypto-y) -- 2.25.1