Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1976907rwn; Fri, 16 Sep 2022 04:00:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/YkIKMX9I+ga69HJKAYmxv3laoeLQ4I2QgPCYVf8p1eTuZsUJQXRsiF6Gg8T/MpA/6gV+ X-Received: by 2002:a17:907:7290:b0:77a:27ef:18d3 with SMTP id dt16-20020a170907729000b0077a27ef18d3mr3167817ejc.42.1663326031685; Fri, 16 Sep 2022 04:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663326031; cv=none; d=google.com; s=arc-20160816; b=TM34Nvcn8sKkY/agFA6DxHfodbd9svJowMojHw3YlK2zFB0gFOohvuIMJe3VOQqj29 L3BurTO5YLyyKmFePw2rVBLw7PQxJJAaFBymqBJYX+BHOtkLl8yDxsnFu8GSjFfQAMpe wFSezOSWPcQUMj9Qhvf5uXeVRFJCiZ10loDKeiXUDMO2JeVxK2SCyBQQpWdfZ/keYrLL k2Zp/4rJMkLQwGpBsy+Bku5GJ8GNDxtrUd2Rw8Fp+al/IlKpMDGcsXvpr6wm94NLsk3h WjzWHjxS16npu/xqnKLNiRyCrAhORK1VVSwW+sp7z4lQV6VUE6MutBy6A/g1b3e35BXX 0APw== 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=fGzmtbsP9WFRuh/plndprLX6Ug/i2/MozvA+9OOFsLg=; b=h1/D0sfjnia6dRJD6WVi/Z4Vqcw0pnYKZ9ITUeAJo8aDN3/8v0w/cycS+v9TuUN7An Mg4zEuC5ZIrWqovO20EJWduI73goQw01t9iKomtJqeQTHRWOz8NjoWEqX26KNZNYo+SC wg5JkD7e3tSA34muDwt9DOcHm5kkIonvp8ZcPC53tlyDwizpVrl0DvAYHsJpSqf1RvbZ YX4zILMCUCubn7pNUFPpz2Flqtn4SM/xTWyj7+5Ft12UtuMHj0kqrArmNhtzK10hkkd5 h2NduL7DQuOaLahLmUE+UJcChuCrdXHxtjWXHmTIkbunAyRmuFgtUTqzVlNcy11URC9D Lruw== 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 w4-20020aa7d284000000b00451bc675cc9si1851070edq.335.2022.09.16.04.00.06; Fri, 16 Sep 2022 04:00:31 -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 S231599AbiIPKzc (ORCPT + 99 others); Fri, 16 Sep 2022 06:55:32 -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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 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