From patchwork Wed Apr 22 03:56:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herbert Xu X-Patchwork-Id: 6254511 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9B4C8BF4A6 for ; Wed, 22 Apr 2015 03:56:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0D4D2034F for ; Wed, 22 Apr 2015 03:56:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A69F620306 for ; Wed, 22 Apr 2015 03:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755895AbbDVD4o (ORCPT ); Tue, 21 Apr 2015 23:56:44 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:39687 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755863AbbDVD4o (ORCPT ); Tue, 21 Apr 2015 23:56:44 -0400 Received: from gondolin.me.apana.org.au ([192.168.0.6]) by norbury.hengli.com.au with esmtp (Exim 4.80 #3 (Debian)) id 1Yklm9-0004hk-V4; Wed, 22 Apr 2015 13:56:38 +1000 Received: from herbert by gondolin.me.apana.org.au with local (Exim 4.80) (envelope-from ) id 1Yklm7-0001pY-5f; Wed, 22 Apr 2015 11:56:35 +0800 Date: Wed, 22 Apr 2015 11:56:34 +0800 From: Herbert Xu To: kbuild test robot Cc: kbuild-all@01.org, Yuan Kang , Linux Crypto Mailing List Subject: crypto: caam - Remove bogus references to crypto API internals Message-ID: <20150422035634.GA7004@gondor.apana.org.au> References: <201504221137.VMCTf1uc%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201504221137.VMCTf1uc%fengguang.wu@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Apr 22, 2015 at 11:43:39AM +0800, kbuild test robot wrote: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master > head: b617b702da4e922277806f81c411d3051107d462 > commit: acec27ff35af9caf34d76d16ee17ff3b292e7d83 [31/40] crypto: rng - Convert low-level crypto_rng to new style > config: powerpc-corenet32_smp_defconfig (attached as .config) > reproduce: > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout acec27ff35af9caf34d76d16ee17ff3b292e7d83 > # save the attached .config to linux build tree > make.cross ARCH=powerpc > > All error/warnings: > > >> drivers/crypto/caam/caamalg.c:3386:18: error: field 'rng' has incomplete type > struct rng_alg rng; Thanks for the report. ---8<--- The caam driver includes algorithm types that it doesn't even use, such as struct rng_alg which has recently been moved to an internal header file and consequently broke the build of caam. This patch removes these bogus references. Reported-by: Fengguang Wu Signed-off-by: Herbert Xu diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index 29071a1..3c025d4 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c @@ -3380,10 +3380,6 @@ struct caam_alg_template { union { struct ablkcipher_alg ablkcipher; struct aead_alg aead; - struct blkcipher_alg blkcipher; - struct cipher_alg cipher; - struct compress_alg compress; - struct rng_alg rng; } template_u; u32 class1_alg_type; u32 class2_alg_type;