Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2452354rwn; Fri, 16 Sep 2022 10:26:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70xkf0V8NDq66fOQ2ptfv+tpdRJEPcHDXl9LQ6HDWLedV651ISQ+SxFhk1yYabM8GD9USo X-Received: by 2002:a17:902:cecc:b0:177:f3f4:cc90 with SMTP id d12-20020a170902cecc00b00177f3f4cc90mr856961plg.83.1663349213645; Fri, 16 Sep 2022 10:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663349213; cv=none; d=google.com; s=arc-20160816; b=fD+AIBgbOcS/6vdghqE6a9vRHld8yISGfv6kWYr7jZvf25dv/vtEwIR1v98BD7n69q xdP7pyewQTbLfNcyTQjNO8UG0RZceKbB3qmNsbbqGBPhDEa5QPjt4Y/Py7/mY85E0moP xdIK2B0Ad6sEfXW8drGu8lh4TrJYwvpYm41toZReOBMjqokPyJ31SO7fVM8z7X5l2nVY c+l9bQ5oPEW3mFm9g6jEu0aHO9nLKjOUzBTe1mdt/QWGAWfodwiBIr1J2i4Imwk7PKQA qw5fJGHYBFza9WSlnCPNEiqPE38FKUnVyPMK6W2EzIlXLQnVpRz3/NnkO+vI2EiO+ph2 /+bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=A2ida2JImgsK4UkeYzeFjOJ0tiwuK8bnCdPdCjm9pt0=; b=hEfupRxRco5k2SILEDLv1iRMtnnNQNGTOBwlOvy7LgO9Mt+U+a8wWBiiFk4ZF1arWm ChZVISzetpk8P422qoLIxrGEDqQiZNbW4qT08hwixViUQ0JYyKs645kRt0rxSdcQZeV9 71+yxqcguUapnrKFlMtZItmc3BJDH1X1mShamWT0aB39EUTKWT0GYYTrHawLDNuudCR4 xi+x7z9pi3klHzrQj5g9GLWKREWFWv3k3ryjVn7KNouBRdO4mLdGv2Z8EATRvG3ynexh 2IOPxNxht2kZraFgen8gnhjQPsRC/krmpmL8n88D7Sgf5q5sOhDkHr7G4zrDYoR0Lktr BOFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=KYZtP4gv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a655a48000000b0042b964fd0b6si23319343pgs.333.2022.09.16.10.26.29; Fri, 16 Sep 2022 10:26:53 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=KYZtP4gv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbiIPRVJ (ORCPT + 99 others); Fri, 16 Sep 2022 13:21:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiIPRVI (ORCPT ); Fri, 16 Sep 2022 13:21:08 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51E3D58DF3; Fri, 16 Sep 2022 10:21:04 -0700 (PDT) Received: from [192.168.87.140] (unknown [50.35.69.86]) by linux.microsoft.com (Postfix) with ESMTPSA id 995F62057C51; Fri, 16 Sep 2022 10:21:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 995F62057C51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1663348863; bh=A2ida2JImgsK4UkeYzeFjOJ0tiwuK8bnCdPdCjm9pt0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=KYZtP4gviHGMnnV8Py6fBB0q97vzSmjwM0mh0A7YEkX6r+JJsTtmevZef37AZRmrW jqQM+pwWFUeuhEKC9mTKJ+TK4VSrZFZ91mjysl8Qm6arIDSV1SL6V3hUB1w7rfjvlu gUHI28DL+rg7ANZdVzP84ROKc+m3UX6rbX0lh3XQ= Message-ID: <4dc8b1a8-d7ef-844d-b48e-76fb8b91d96a@linux.microsoft.com> Date: Fri, 16 Sep 2022 10:21:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2] crypto: aspeed: fix build module error Content-Language: en-US To: Herbert Xu , Neal Liu Cc: BMC-SW , kernel test robot , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Sudip Mukherjee , "linux-crypto@vger.kernel.org" , "David S . Miller" , "linux-arm-kernel@lists.infradead.org" References: <20220905025433.1610696-1-neal_liu@aspeedtech.com> From: Dhananjay Phadke In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-21.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 9/16/2022 3:42 AM, Herbert Xu 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. Curious why compiled on m68k? It's embedded controller in ARM based Aspeed SoCs. And there's "depends on ARCH_ASPEED" in Kconfig, need some additional dependencies? Regards, Dhananjay