From patchwork Mon Mar 29 07:59:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 410822 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3436331jai; Mon, 29 Mar 2021 01:42:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYTyqQt1HtBKqRW4ZbQnYjStxvg4hv/WVJqYU7qtGsMLowyWo2KZ1g7DGKceiFql/ane7P X-Received: by 2002:a17:906:33da:: with SMTP id w26mr27379396eja.302.1617007242409; Mon, 29 Mar 2021 01:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007242; cv=none; d=google.com; s=arc-20160816; b=aQ+fie9cK6TuulbpGvhwfbKp4jIyQzjwh0QKAONeK3FlyZ0JEPNpmQrdnx5G/vSePf 9DhfqI7QY2xcH5HAf9qCyMfqBmfzJZszO5ISWOD6ZmTpDiato06HFpLCO+MyMWR5GYzZ XBWXvpAi3YFJtexDPS82ReKjdJXO1G63RDeRomPy4EcAk4M3FukPg+QAJrk5ZrJqaksU cM60OXrBXf5BTTOH62y+qDuPbBdR+2cpqVSnnRk8hHwiFzO2FNnYJtDL4CT5zckDioyB 52iiiYypTANtx5bY4TiDmOeh7o8w5tT3kc8wG6Hg36u1xEph1L681y2vLXlLM1GOogq5 CUSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JM5FG2KJIZlOPQSbu+HEbHT/HzV0kHe0cqZ0Fdpa2P8=; b=vL6WHvY1YJlZpE1o8bk0I6bw2HXzrHwdsye6owbmr+QOdukrKQaMbCl+4QW1Ip10Cv TOGmYop2qBFIQvujM/CRlftBVDH8WDaJ9LXAwm8HmkcJrQ9svCIzjoorEKZ+Csj8mnaG GwPvo37A1lC9nbMz3Qj8//VZYQttvMIyRlGRLAU+wCV0/LyLXeJcOuaNwNZomYOGjHEv a763EFiO6bKvs9C+ccJOi2Q6Le9qlBAUms6w6/TbNaJXL0v8LwaSeMjJCNueY1l2utjg +imvjFg7btgy4juukq4miplzeycG80hnvC1APhoYnEr5I3oYlWaCjE9Uc5GsekXZutoY YndQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XKP3yjvC; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si11690307ejj.746.2021.03.29.01.40.42; Mon, 29 Mar 2021 01:40:42 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XKP3yjvC; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234787AbhC2IkW (ORCPT + 12 others); Mon, 29 Mar 2021 04:40:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232209AbhC2IjX (ORCPT ); Mon, 29 Mar 2021 04:39:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1D0F61581; Mon, 29 Mar 2021 08:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617007163; bh=bS4+beM0gjYbF2SjpdZWi6VIB/2TjZ6R3yOTixRSw0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XKP3yjvCxF1zc05gsrFW6vlSsC2IRFoxCUSuvpvR/LuZkG5WBhcCapLwtsleZbwg4 35Rz9Pf9tx9PJ13QP3G+qZSfzdUZ/EtiMVJGRUEQ1FR3fQyXN6lc/ogTaW4vYBmRoL Yh59mE3QtJ0bt1wgV7N0QhLT9HxzXXK71yCGwBj8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Lunn , Arnd Bergmann , "David S. Miller" Subject: [PATCH 5.11 244/254] ch_ktls: fix enum-conversion warning Date: Mon, 29 Mar 2021 09:59:20 +0200 Message-Id: <20210329075641.090296821@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075633.135869143@linuxfoundation.org> References: <20210329075633.135869143@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann commit 6f235a69e59484e382dc31952025b0308efedc17 upstream. gcc points out an incorrect enum assignment: drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c: In function 'chcr_ktls_cpl_set_tcb_rpl': drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:684:22: warning: implicit conversion from 'enum ' to 'enum ch_ktls_open_state' [-Wenum-conversion] This appears harmless, and should apparently use 'CH_KTLS_OPEN_SUCCESS' instead of 'false', with the same value '0'. Fixes: efca3878a5fb ("ch_ktls: Issue if connection offload fails") Reviewed-by: Andrew Lunn Signed-off-by: Arnd Bergmann Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c +++ b/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c @@ -727,7 +727,7 @@ static int chcr_ktls_cpl_set_tcb_rpl(str kvfree(tx_info); return 0; } - tx_info->open_state = false; + tx_info->open_state = CH_KTLS_OPEN_SUCCESS; spin_unlock(&tx_info->lock); complete(&tx_info->completion);