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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 39912C43217 for ; Tue, 1 Mar 2022 04:21:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=p8I+GtvUKsexuY2nvXKH0BjCnMmGDIASkXavZ4/jov8=; b=GMkar+CW58NdAE W1NZ0bLhw32kTKlnvsNmyZTRe84OnIzaMwVStLUfFO23wwMvQXyIxhzDVuErWk3ksmJGa76StXfvN c3PDMRAgtW+k/uAdLFtqkBbXtt4Ggfp+d3MbYfKzlSX5ZWIgRQ0WUMS3kTKyxp/LroEla35120zXG N0nNE67WBhFiG69hlABx/ITH2woazJWmtsq7UDCvpJP4SkksB4PfPsfABboBkFeJJO36q4JBNR4Ib H7xq4seqCjbsW7nDQ7jOVrQvB7SRjSIspG8EieoqGBqU9+QYT4JeCcNYRh2XQVemSlEZVUt3Ows7p pYwjwsZEEiYzc7GAy55g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOtzZ-00ErKk-VD; Tue, 01 Mar 2022 04:20:06 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOtzQ-00ErGU-4O; Tue, 01 Mar 2022 04:19:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646108396; x=1677644396; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vYBNAlp/fbezUdL30BdHV5afm3jG+W6zRpPec4mqI+U=; b=QOLPfxBiRKVQ2sC50h3gObveyRx3V+KKtXejfWw9B3gMpiwYfJLxaSDr 0e9KhjQbCQsLabHbTheU9RSAhKhRnBRQUl4vU2KYjRItzPh7RaiC+36ak karzMi9Mlc2qU051QL4QtHD6B9MQsPf4dKXCrLGAyxSXYot2cjH2bJUd3 RiB3zwnM0qmW/vXffmys0+HXxd1I4KeJDN8XQUNAbkHHaHwbrJNiECR1P m3EcWBHCCs039sYAunK/SLUs24VVzSrxlCZv1MfRrAJOEhXRGtMY9blSO D5HPUPhlAuaBnAD4tGUD7iU8NlUM6itbei+37NoME6IAVqdgfOrN7Jdqd A==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="253243232" X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="253243232" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2022 20:19:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="608682706" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 28 Feb 2022 20:19:47 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nOtzG-00086Y-LT; Tue, 01 Mar 2022 04:19:46 +0000 Date: Tue, 1 Mar 2022 12:18:48 +0800 From: kernel test robot To: Corentin Labbe , heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski@canonical.com, robh+dt@kernel.org Cc: kbuild-all@lists.01.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: Re: [PATCH 13/16] crypto: rockchip: rewrite type Message-ID: <202203011055.8Y6mA9xW-lkp@intel.com> References: <20220228194037.1600509-14-clabbe@baylibre.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220228194037.1600509-14-clabbe@baylibre.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220228_201956_244287_62FF9470 X-CRM114-Status: GOOD ( 18.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Corentin, I love your patch! Perhaps something to improve: [auto build test WARNING on rockchip/for-next] [also build test WARNING on herbert-cryptodev-2.6/master herbert-crypto-2.6/master v5.17-rc6 next-20220228] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Corentin-Labbe/crypto-rockchip-permit-to-pass-self-tests/20220301-035430 base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next config: arm-defconfig (https://download.01.org/0day-ci/archive/20220301/202203011055.8Y6mA9xW-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/03fb353165f76dc7c5ed7c27401537552070406b git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Corentin-Labbe/crypto-rockchip-permit-to-pass-self-tests/20220301-035430 git checkout 03fb353165f76dc7c5ed7c27401537552070406b # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/crypto/rockchip/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from drivers/crypto/rockchip/rk3288_crypto.h:8, from drivers/crypto/rockchip/rk3288_crypto.c:12: drivers/crypto/rockchip/rk3288_crypto.c: In function 'rk_crypto_register': >> drivers/crypto/rockchip/rk3288_crypto.c:99:52: warning: too many arguments for format [-Wformat-extra-args] 99 | dev_info(crypto_info->dev, "Register %s as\n", | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt' 150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/crypto/rockchip/rk3288_crypto.c:99:25: note: in expansion of macro 'dev_info' 99 | dev_info(crypto_info->dev, "Register %s as\n", | ^~~~~~~~ vim +99 drivers/crypto/rockchip/rk3288_crypto.c > 12 #include "rk3288_crypto.h" 13 #include 14 #include 15 #include 16 #include 17 #include 18 #include 19 #include 20 21 static int rk_crypto_enable_clk(struct rk_crypto_info *dev) 22 { 23 int err; 24 25 err = clk_prepare_enable(dev->sclk); 26 if (err) { 27 dev_err(dev->dev, "[%s:%d], Couldn't enable clock sclk\n", 28 __func__, __LINE__); 29 goto err_return; 30 } 31 err = clk_prepare_enable(dev->aclk); 32 if (err) { 33 dev_err(dev->dev, "[%s:%d], Couldn't enable clock aclk\n", 34 __func__, __LINE__); 35 goto err_aclk; 36 } 37 err = clk_prepare_enable(dev->hclk); 38 if (err) { 39 dev_err(dev->dev, "[%s:%d], Couldn't enable clock hclk\n", 40 __func__, __LINE__); 41 goto err_hclk; 42 } 43 44 return err; 45 err_hclk: 46 clk_disable_unprepare(dev->aclk); 47 err_aclk: 48 clk_disable_unprepare(dev->sclk); 49 err_return: 50 return err; 51 } 52 53 static void rk_crypto_disable_clk(struct rk_crypto_info *dev) 54 { 55 clk_disable_unprepare(dev->hclk); 56 clk_disable_unprepare(dev->aclk); 57 clk_disable_unprepare(dev->sclk); 58 } 59 60 static irqreturn_t rk_crypto_irq_handle(int irq, void *dev_id) 61 { 62 struct rk_crypto_info *dev = platform_get_drvdata(dev_id); 63 u32 interrupt_status; 64 65 interrupt_status = CRYPTO_READ(dev, RK_CRYPTO_INTSTS); 66 CRYPTO_WRITE(dev, RK_CRYPTO_INTSTS, interrupt_status); 67 68 dev->status = 1; 69 if (interrupt_status & 0x0a) { 70 dev_warn(dev->dev, "DMA Error\n"); 71 dev->status = 0; 72 } 73 complete(&dev->complete); 74 75 return IRQ_HANDLED; 76 } 77 78 static struct rk_crypto_tmp *rk_cipher_algs[] = { 79 &rk_ecb_aes_alg, 80 &rk_cbc_aes_alg, 81 &rk_ecb_des_alg, 82 &rk_cbc_des_alg, 83 &rk_ecb_des3_ede_alg, 84 &rk_cbc_des3_ede_alg, 85 &rk_ahash_sha1, 86 &rk_ahash_sha256, 87 &rk_ahash_md5, 88 }; 89 90 static int rk_crypto_register(struct rk_crypto_info *crypto_info) 91 { 92 unsigned int i, k; 93 int err = 0; 94 95 for (i = 0; i < ARRAY_SIZE(rk_cipher_algs); i++) { 96 rk_cipher_algs[i]->dev = crypto_info; 97 switch (rk_cipher_algs[i]->type) { 98 case CRYPTO_ALG_TYPE_SKCIPHER: > 99 dev_info(crypto_info->dev, "Register %s as\n", 100 rk_cipher_algs[i]->alg.skcipher.base.cra_name, 101 rk_cipher_algs[i]->alg.skcipher.base.cra_driver_name); 102 err = crypto_register_skcipher(&rk_cipher_algs[i]->alg.skcipher); 103 break; 104 case CRYPTO_ALG_TYPE_AHASH: 105 dev_info(crypto_info->dev, "Register %s as %s\n", 106 rk_cipher_algs[i]->alg.hash.halg.base.cra_name, 107 rk_cipher_algs[i]->alg.hash.halg.base.cra_driver_name); 108 err = crypto_register_ahash(&rk_cipher_algs[i]->alg.hash); 109 break; 110 default: 111 dev_err(crypto_info->dev, "unknown algorithm\n"); 112 } 113 if (err) 114 goto err_cipher_algs; 115 } 116 return 0; 117 118 err_cipher_algs: 119 for (k = 0; k < i; k++) { 120 if (rk_cipher_algs[i]->type == CRYPTO_ALG_TYPE_SKCIPHER) 121 crypto_unregister_skcipher(&rk_cipher_algs[k]->alg.skcipher); 122 else 123 crypto_unregister_ahash(&rk_cipher_algs[i]->alg.hash); 124 } 125 return err; 126 } 127 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel