Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4123394ybg; Fri, 25 Oct 2019 13:42:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyh5LKC91PhtlGmcgMxwiMTJeSCXZAMk/z3rpVSSHauF4+GZSaH9/O0+UYeTFzSTP1tkMHO X-Received: by 2002:a17:906:680c:: with SMTP id k12mr5389406ejr.118.1572036123857; Fri, 25 Oct 2019 13:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036123; cv=none; d=google.com; s=arc-20160816; b=I7Z8BVIeC3MUBIVCi2ywU0/Kyl4ZLaDS3LFQgD0sGA9H3VGMw6ZTgzUahrpqbsoXPe Q2dirAMI0j3kuGOmqmcE8DHSYVlWI/hovd7sTxcb6uhA9HcX/Z4PU/tTTXNmXfGMOQmo R9tyE4KSdE3XjziV8mXB2U6p6X0MAsRhKq1siwsGrinkgIHNi69fiZaYJZHqlPAVFfxd tG4GZhJCQ/HVo58Yf6H524blUbTnT3gPYpnHNNKw0jNvJev9aMd/OnZw9XyxY6/8ivN0 6bo2ivZpVA43NbgxQxLuLQSJ+A6UALuhuf654/JnYVps3NZ8tasIa/ApJc1vl6PREDTf c5IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3TXaM3CLwtyMf3boELUYQLZkePQSpBNr7BpAcfv5OZ4=; b=P8TWMg075ykZzV0bzWI/AZCeFGKtEg0eq4kDYq4Jd7k11apOPKg4HYXVPuPi9XldvC l/8dWxPssERZaggv3tF4SimNGrksaZXJ0m0+LTNT8D7j68ShujR6PnCxbEXVQXks4cMN gg9BvYdQ1BNm8eF5RYiI377jvAbgX+M1bPmL50oMKz+6EZpSE0wE6q1waLepKOswybHn yzEa5q6GMv0QI5rUfPKIT5ziXSOIpHWMHKzHh4HWDyx/+jb4Gxu1Z0qmaMWC3zxwK1xG yZA4xawYGlKs7+pZPaLwB3RHHWYWjOGWvveuUtL6tp5TUhy/GUdMVY4zcJ8rbf38FdcA jeeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si1784967ejr.125.2019.10.25.13.41.38; Fri, 25 Oct 2019 13:42:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440707AbfJYP0d (ORCPT + 99 others); Fri, 25 Oct 2019 11:26:33 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:36064 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731226AbfJYP0d (ORCPT ); Fri, 25 Oct 2019 11:26:33 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1iO1Tx-0001tn-PG; Fri, 25 Oct 2019 23:26:29 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iO1Tx-0007tm-0B; Fri, 25 Oct 2019 23:26:29 +0800 Date: Fri, 25 Oct 2019 23:26:28 +0800 From: Herbert Xu To: Tian Tao Cc: gilad@benyossef.com, davem@davemloft.net, linux-crypto@vger.kernel.org, linuxarm@huawei.com Subject: Re: [PATCH v2] crypto: fix comparison of unsigned expression warning Message-ID: <20191025152628.btnajavau4s2aq5c@gondor.apana.org.au> References: <1571445697-33824-1-git-send-email-tiantao6@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1571445697-33824-1-git-send-email-tiantao6@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sat, Oct 19, 2019 at 08:41:37AM +0800, Tian Tao wrote: > This patch fixes the following warnings: > drivers/crypto/ccree/cc_aead.c:630:5-12: WARNING: Unsigned expression > compared with zero: seq_len > 0 > > Signed-off-by: Tian Tao > > v2: > change hmac_setkey() return type to unsigned int to fix the warning. > --- > drivers/crypto/ccree/cc_aead.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt