Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3427944pxf; Mon, 29 Mar 2021 01:49:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfE41RDgz7wLN7DkZbnXpiZqZZDaB75sNPbhKaVMJ3FabA98p3Ys75n6orEzt+AzA7BY6j X-Received: by 2002:a17:906:154f:: with SMTP id c15mr27866241ejd.142.1617007750569; Mon, 29 Mar 2021 01:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007750; cv=none; d=google.com; s=arc-20160816; b=TViAe0bvyDT09oyzqqenzLE7jd2q4oz259ltkqKG4OsDb47m3xr/SjMXerPSexX/u4 iISt+8rZhHDKbutFHG1zzJyb02SntPu1AWM148BpqN4ReL0Kfe1Sw/K/4vHdMWwxa66H zh6lH6JVeo3Vtk/PzwmVz7mriwtxKwwAyVrCVJzqhgBfOQ1MGGvgUEqPxXeNpTYxX6sv x5UaXfLDBwmT0SmhfKRQNRFzheAVVV6e+4N3P9ETYTSfuAiFOuBtp67AAhwTdJeJZmno 3g1ORo2iZZYui95X+4Ktl4/PuN/tW2kw7IpoK3nTa0xzzEW4mWlXpygJKVbXRM6oc+N3 asgw== 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=CBNG2q2XWHbTAKx9TIvqEkbdsdM+swLHxgT08u02Xgs0wEilOthPR1WZFYsh3HQnPK Y0osbiKTXH1s2YAYrXJxRlqt9KX71VZtQs3oqmPNbMTyIUaAdi+H8aR3e2RcU257ReEP CEjN9ZSAnejGkZlI5X9V0Z4C/vyP4mO++qtcG8m6XOnoe+aikQMDMQ6TYq2mMKoL5hwL 34Noq8athka/DwsHLVurGgVppd8qkX7QRG/mIutOEsSbrrwmYAMzv9vkhBlqNgWFoLvo GLyT8hu0jPoeEGrwdaUcsIES77tj080ikPL/wsrj7/Wh5p4A/227uCV1JezyOwJJJw0k A2UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QUsIEDnh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 e15si12335502edz.11.2021.03.29.01.48.48; Mon, 29 Mar 2021 01:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=QUsIEDnh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S235733AbhC2Irf (ORCPT + 99 others); Mon, 29 Mar 2021 04:47:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233773AbhC2I1E (ORCPT ); Mon, 29 Mar 2021 04:27:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2AD7961554; Mon, 29 Mar 2021 08:25:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006358; bh=bS4+beM0gjYbF2SjpdZWi6VIB/2TjZ6R3yOTixRSw0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QUsIEDnhxiZ1gjDdxjKRhKVWV2LB8mZBAyi//4LtCgHbuH+yucIm5NeshAnHvzusy Wtwx1MxGUFBn17/LpppKSHUmIXZGnfQTe761tmQnmi6wz5lgbWun29VB3eTc6nPyW5 4sKPAo74uucHKbzweSsD6VH4J7j9Gp9r5ZUstFfg= 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.10 211/221] ch_ktls: fix enum-conversion warning Date: Mon, 29 Mar 2021 09:59:02 +0200 Message-Id: <20210329075636.157630249@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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);