From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752299AbeC3Rnv (ORCPT ); Fri, 30 Mar 2018 13:43:51 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:51610 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbeC3Rnt (ORCPT ); Fri, 30 Mar 2018 13:43:49 -0400 Date: Sat, 31 Mar 2018 01:43:35 +0800 From: Herbert Xu To: Stefan Agner Cc: davem@davemloft.net, raveendra.padasalagi@broadcom.com, clabbe.montjoie@gmail.com, scott.branden@broadcom.com, steven.lin1@broadcom.com, garsilva@embeddedor.com, pravin.shedge4linux@gmail.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] crypto: brcm - explicitly cast cipher to hash type Message-ID: <20180330174335.GJ28120@gondor.apana.org.au> References: <20180324110242.9474-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180324110242.9474-1-stefan@agner.ch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 24, 2018 at 12:02:42PM +0100, Stefan Agner wrote: > In the AES cases enum spu_cipher_type and enum hash_type have > the same values, so the assignment is fine. Explicitly cast > the enum type conversion. > > This fixes two warnings when building with clang: > drivers/crypto/bcm/cipher.c:821:34: warning: implicit conversion from > enumeration type 'enum spu_cipher_type' to different enumeration > type 'enum hash_type' [-Wenum-conversion] > hash_parms.type = cipher_parms.type; > ~ ~~~~~~~~~~~~~^~~~ > drivers/crypto/bcm/cipher.c:1412:26: warning: implicit conversion from > enumeration type 'enum spu_cipher_type' to different enumeration > type 'enum hash_type' [-Wenum-conversion] > hash_parms.type = ctx->cipher_type; > ~ ~~~~~^~~~~~~~~~~ > > Signed-off-by: Stefan Agner Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt