Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2826075rwe; Mon, 29 Aug 2022 00:21:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR471E95RCI17nOLGev16MvCLkCEG+RkyEJkwC0fDAxd+e24GU4PiFCVn7G7n8phlPyOQsGn X-Received: by 2002:a17:902:b206:b0:173:c58:dc74 with SMTP id t6-20020a170902b20600b001730c58dc74mr14857725plr.65.1661757684330; Mon, 29 Aug 2022 00:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661757684; cv=none; d=google.com; s=arc-20160816; b=K5UjxQ1AmqP7pCfQwQjVbFPdxKy5zEmMKYtxS+0VLeyjufLPeAsJE1ojgnds/v4mgp akHr/6aGY8klpJdC/0bSIzT2gJw9OK+YsmgwsdE52ig8nnfh2OShB94hrUyXrJxqcPyF mV8yMsZwqMX7uOUlZa/STxUQ54oEQ7BD39jRWxOx8yC7JoOEoe6Mekc5c1dDbwjBWTOw qse3Pxchw/05tRZSEcFq223tkLRvdYthBRPfvzbxQOm3/gREtE5KEixd3Zii72uVoaOz sn03DUvAM1gXGyv770ifWTGWeYPdCIO/AqOtUeILi2S0x7OsJf0nL2PvbZ103gZ3OuTU Przg== 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=pcanfw2PbWNhFWFT4TkSeP8UGzVhEz6BfcEx285yFaM=; b=wG5Cb9AsW5j/R221DUAz0fulRahup/mRCVRmw3s/fyOhWq9WY7ww1cP1eUa/mABgyd NumOcSYzK0hAXblEVYHCD4rZp3I61vSdf9GTNgHTcDcK9lpb0hXAcDBfAtl+7joLFAEo WG26XyS/b+vDVZ49yCng1uBFC6GzPa09rhRdmlWZlNuTnOBQNJi+2NBejf5R4rgp3XMi vlxsZvtAjXizmg6Yw/UdTKT4Ps8/Bnv+F7n94EHqtV18KHCobkdMxgBjZzl3SiwyIuWR PCoB14geC41lVzU3sw8e7LynyFav4U4PzS3EpZaFVmXBqBrQHvBfWf0sOQV3sSn3kaHw OSNg== 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 u15-20020a17090a0c4f00b001fb1bec57casi8328280pje.61.2022.08.29.00.21.00; Mon, 29 Aug 2022 00:21:24 -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 S229549AbiH2HU7 (ORCPT + 99 others); Mon, 29 Aug 2022 03:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiH2HU5 (ORCPT ); Mon, 29 Aug 2022 03:20:57 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E55902AC51 for ; Mon, 29 Aug 2022 00:20:54 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 27T71GNp042078; Mon, 29 Aug 2022 15:01:16 +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, 29 Aug 2022 15:20:46 +0800 From: Neal Liu To: Herbert Xu , "David S . Miller" , Joel Stanley , Andrew Jeffery CC: , , , , , kernel test robot Subject: [PATCH] crypto: aspeed: fix build module error Date: Mon, 29 Aug 2022 15:20:35 +0800 Message-ID: <20220829072035.1539399-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 27T71GNp042078 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 If CONFIG_MODULES=y and CONFIG_CRYPTO_DEV_ASPEED=m, build modpost would be failed. Error messages: ERROR: modpost: "aspeed_register_hace_hash_algs" [drivers/crypto/aspeed/aspeed_crypto.ko] undefined! ERROR: modpost: "aspeed_unregister_hace_hash_algs" [drivers/crypto/aspeed/aspeed_crypto.ko] undefined! Change build sequence to fix this. Reported-by: kernel test robot Signed-off-by: Neal Liu --- drivers/crypto/aspeed/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/aspeed/Makefile b/drivers/crypto/aspeed/Makefile index 421e2ca9c53e..4cc1a7ad3652 100644 --- a/drivers/crypto/aspeed/Makefile +++ b/drivers/crypto/aspeed/Makefile @@ -1,9 +1,9 @@ -obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed_crypto.o -aspeed_crypto-objs := aspeed-hace.o \ - $(hace-hash-y) \ - $(hace-crypto-y) - obj-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) += aspeed-hace-hash.o hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace-hash.o obj-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_CRYPTO) += aspeed-hace-crypto.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) -- 2.25.1