From mboxrd@z Thu Jan 1 00:00:00 1970 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 593FFC54EE9 for ; Fri, 16 Sep 2022 10:55:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230292AbiIPKzh (ORCPT ); Fri, 16 Sep 2022 06:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbiIPKyq (ORCPT ); Fri, 16 Sep 2022 06:54:46 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11E2C1C7; Fri, 16 Sep 2022 03:42:33 -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 1oZ8nP-005H03-50; Fri, 16 Sep 2022 20:42:08 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 16 Sep 2022 18:42:07 +0800 Date: Fri, 16 Sep 2022 18:42:07 +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 , 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 06, 2022 at 02:21:20AM +0000, Neal Liu wrote: > > > 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) > > > > aspeed-hace.o effects only if either hace-hash-y or hace-crypto-y. > If we put aspeed-hace.o in aspeed_crypto-objs, but hace-hash-y and hace-crypto-y are empty, apseed-hace.o is just an useless driver which might still occupy system resources. Apparently it doesn't build after all, at least not on m68k. So please either adopt my suggestion above, or come up with another way of preventing the build failure on m68k with both HASH and CRYPTO disabled. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt