From: Herbert Xu Subject: Re: [PATCH v2 1/4] Wrap crc_t10dif function all to use crypto transform framework Date: Fri, 26 Apr 2013 20:52:24 +0800 Message-ID: <20130426125224.GA4855@gondor.apana.org.au> References: <20130425132203.GA29501@gondor.apana.org.au> <1366910910.27102.126.camel@schen9-DESK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "H. Peter Anvin" , "David S. Miller" , "Martin K. Petersen" , James Bottomley , Matthew Wilcox , Jim Kukunas , Keith Busch , Erdinc Ozturk , Vinodh Gopal , James Guilford , Wajdi Feghali , Jussi Kivilinna , linux-kernel , linux-crypto@vger.kernel.org, linux-scsi@vger.kernel.org To: Tim Chen Return-path: Received: from ringil.hengli.com.au ([178.18.16.133]:43423 "EHLO fornost.hengli.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751420Ab3DZMwt (ORCPT ); Fri, 26 Apr 2013 08:52:49 -0400 Content-Disposition: inline In-Reply-To: <1366910910.27102.126.camel@schen9-DESK> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Thu, Apr 25, 2013 at 10:28:30AM -0700, Tim Chen wrote: > > @@ -51,6 +54,98 @@ static const __u16 t10_dif_crc_table[256] = { > 0xF0D8, 0x7B6F, 0x6C01, 0xE7B6, 0x42DD, 0xC96A, 0xDE04, 0x55B3 > }; > > +#ifdef CONFIG_CRYPTO_CRCT10DIF No need for ifdefs, just make it unconditional like the crc32c case. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt