From patchwork Mon Mar 29 07:59:02 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: 410812 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3430006jai; Mon, 29 Mar 2021 01:30:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2atbbCqY8dGbkeTt/nT8H5xVzb1MJCL5saJeDDyXXZnVau+erZtyxKknRaJuvRu/Z5Z3H X-Received: by 2002:a17:906:489b:: with SMTP id v27mr27223972ejq.1.1617006649000; Mon, 29 Mar 2021 01:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617006648; cv=none; d=google.com; s=arc-20160816; b=a+dT58nUE0cZEKTjM+fC+MGKgdy/UBP6olil4c/LSqhjhlOIe0TgQX9RdCBZrtSxQX +Pcpy64Jwi3H/lMtGmYl6P1OrGELqPJdp67xcvUNdqobrCfEiArNnReKrNZL9jQCrS8G EZhXkzpk09sz4F6iponVfEiUaAs6qyLM8NEZBcxm9GN0ZCd/oJ2+U8FOpjL27W6OdiwI hLT2Mz8C/lyrArUtL11vdITnKnlOpj97+j1fXZZsGDUYb//04Voj9UWOLW1rhyd03AJX AMMMFrggUVelwsLNjMLCJ3mEmyg1PuDfoC9nQqFZzSPPaKbVZR059HgriyQK0RdER15W s/ew== 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=neXWg/Q2lXcs6HK8Aa3pyO1UabxawVV9/qTL2ezO6bhcrXVUKEnTzDQ1p/kYdpuqlw 1XgnmJ0HtGkOr98BfpaYLHTqP+mPl76fMaRSWqk94lyCUAwCLZjlUfLuLpXVS+L2iuyK ivVQK8aNMZNAOTK47AzCQeWpllDXH9s9Ch/2fBiOzHh/N5iWz15e/l9j3asWD04Q668M A7k9Dt2gx0exMmRI/OiFa6qimtm2N0GtrPlIpWa1kqJMQzwedrqM5uuEwC2kLElCrvij GMIE7tPYP79kYbUOLV6iKGVnHqE86pPA4t1bPiJjaS7Ae092Rn1qwRXNcXW+0Gg/wG+w KPaQ== 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 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 n23si12339235ejs.705.2021.03.29.01.30.48; Mon, 29 Mar 2021 01:30:48 -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=QUsIEDnh; 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 S233363AbhC2IaQ (ORCPT + 12 others); Mon, 29 Mar 2021 04:30:16 -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 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);