Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2949778rwb; Mon, 5 Sep 2022 04:17:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7igNen+SUriWUbbDMQEnfsVHHHXUCu/UTdI2tKsxDAt7iztkTAQr1P/uxV3A/DTWuwR4wV X-Received: by 2002:a17:907:f82:b0:73d:afe4:c89 with SMTP id kb2-20020a1709070f8200b0073dafe40c89mr35113244ejc.534.1662376623816; Mon, 05 Sep 2022 04:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662376623; cv=none; d=google.com; s=arc-20160816; b=kjYsLNRXnKtnq7V3dYsbLHuN89R9yQWp/llIBxv4UgSzaRwJePgnXxUpXb3Iruv3nK 0Gay7Sl6Pqwt9TtlztW2GouAGTNkKk4qCSuJeE5Ubai2Fjp8d8aVWI3jxxUrgCDkqxXz 5WDH5HC5L8Rb37vRLIvag6Y0InB1tcLer+/KvMRkQIPHk6GAFnLSi/kgjC9RZpaZJr/9 CXy3msSDmt+e3AnxOz4s5r8YZM1w7JyYAyqTU8EctLREhqa8Zexd0BKYW2cjvlQrVeup 5APYCX6EhI/bvOrO0HF6vwOFoQisceIA9JMz+777PugvBBAA5MZ2liBDy8YK7iJiVvDb Dj9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1lTGccA6cMiq56gyqN+GQVM61uzjlzYG2OQe0xt1fsk=; b=LRS9rdv3yex3/BfZCSMHrQBGRcPpgR17Dmkdq0Bm8wMGfBKMCwU+QFCuL4FhUXvwue D/n38HRFoGKXXkFFzUr2ZHRcYmJWy0YfxSKLqHVxwRUJMuKVX0vuQuZN+S4TdQ4ApYXh X1HITXdEMXxYknv5zPKWtufyJOdLQ4xwh1nv/tppJZGKNVCijwcT8S2bqtPhQTJOpt/D 0rmEErTw64pTawav11NnEBnYGk1tJpqp7VRxV7cADw+sqlIqa1yY4qQXVqX9tJvfXKl8 hTWPIFqprtGsccz1/wcpjtFJ86y2S4B+Tw3NuP5lFND+wdgwB/rGUcBKDQktxUZiSOUC xu9w== 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 m5-20020a509305000000b00445f3dd3861si6397719eda.313.2022.09.05.04.16.31; Mon, 05 Sep 2022 04:17:03 -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 S237863AbiIELFE (ORCPT + 99 others); Mon, 5 Sep 2022 07:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238097AbiIELE7 (ORCPT ); Mon, 5 Sep 2022 07:04:59 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 039371ADB2; Mon, 5 Sep 2022 04:04:54 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oV9tz-001AdR-4B; Mon, 05 Sep 2022 21:04:28 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Mon, 05 Sep 2022 19:04:27 +0800 Date: Mon, 5 Sep 2022 19:04:27 +0800 From: Herbert Xu To: Neal Liu Cc: "David S . Miller" , Joel Stanley , Andrew Jeffery , linux-aspeed@lists.ozlabs.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, BMC-SW@aspeedtech.com, kernel test robot , Sudip Mukherjee Subject: Re: [PATCH v2] crypto: aspeed: fix build module error Message-ID: References: <20220905025433.1610696-1-neal_liu@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220905025433.1610696-1-neal_liu@aspeedtech.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Sep 05, 2022 at 10:54:33AM +0800, Neal Liu wrote: > > diff --git a/drivers/crypto/aspeed/Makefile b/drivers/crypto/aspeed/Makefile > index 421e2ca9c53e..3be78cec0ecb 100644 > --- a/drivers/crypto/aspeed/Makefile > +++ b/drivers/crypto/aspeed/Makefile > @@ -1,9 +1,6 @@ > +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 > + > obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed_crypto.o > -aspeed_crypto-objs := aspeed-hace.o \ > - $(hace-hash-y) \ > +aspeed_crypto-objs := $(hace-hash-y) \ > $(hace-crypto-y) Does this still build if both HASH and CRYPTO are off? I think this it's best if you do: 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 := aspeed-hace.o \ $(hace-hash-y) \ $(hace-crypto-y) Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt