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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49333C64EC4 for ; Fri, 10 Mar 2023 04:22:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230417AbjCJEWF (ORCPT ); Thu, 9 Mar 2023 23:22:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230423AbjCJEVW (ORCPT ); Thu, 9 Mar 2023 23:21:22 -0500 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B5A449D3 for ; Thu, 9 Mar 2023 20:17:19 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1paUBt-002Ofp-CE; Fri, 10 Mar 2023 12:17:14 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 10 Mar 2023 12:17:13 +0800 Date: Fri, 10 Mar 2023 12:17:13 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: Meadhbh Fitzpatrick , linux-crypto@vger.kernel.org, Damian Muszynski Subject: Re: [PATCH] crypto: qat - change size of status variable Message-ID: References: <20230309113306.4008-1-meadhbh.fitzpatrick@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Mar 09, 2023 at 11:04:18AM +0000, Giovanni Cabiddu wrote: > > You are right. Thanks for spotting this. > When reviewing it I mixed up the cmp_err and xlt_err with the status which > is a u8. In general s8/u8 should only be used when you are directly reading or writing from hardware. Once the value has entered your driver, you should use int/unsigned int to deal with them. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt