Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6019695ybc; Wed, 27 Nov 2019 13:31:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzcV8Qyc4IAEFqa4NrC788uMFHOhIBzRHEOxiV7KM7OuGaftn9wPvUTXMms+R5hAr7cZc8W X-Received: by 2002:aa7:d0c4:: with SMTP id u4mr34589105edo.8.1574890290118; Wed, 27 Nov 2019 13:31:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890290; cv=none; d=google.com; s=arc-20160816; b=NhhJkfmN9tbzeHRY1ajsqQaJuNxWjQeOQjLHOYiDJA+ArkhdAt4zscjT2xCPSdbXhv cSua1BLL++0eYB0AfGgI05RCXHbA002RcFsv2a1c5qXiWduFBHVr6qPNxfjll0G+sxF0 ORlnIjepKKlgtZwMJN53geBwXRE3RTUnT742bPdGMgPjNKm0BDtnLDPKpNYdJdwv/Pee hKKbflE++VCzEItmACopXrocnFpH5qkrECQPklD3WN7moc+kXJvYklGtMmV7IWqwQdAq A9g1kY3Kl/BzzivpGTvZYz3SNy1bLku0SEW/7XOITGvXxYFmVRWR5cBuZA1u9m3Dqc3w iDMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WJJ/EwHnVcVaKx3xVTgOe4Z4t3HpLd5HpBVsueCjEsc=; b=HvzwBdMIZQOcBMC0hAPTdc+16A/tlNxy6UJCqbWbvQmothROF7PanJBzC2p9Ia5+z0 7mi8LTMn0dRMYwm1KEte3dj7EY3MatFu1fGJ5EyXeiefKhLFNtH4ksiTwc1p/FFhEO4e TnKKMAk2zDSFu4bP3r+c6SuG+h2P3gj6kSBuhoL4hjyIqB2R4kl6jF4y6jryUyffHMo1 QZ6vK9EbwXHIjQWfMDphe6bpH+9b4Vstlo8KkBTuSWv3hIYk4dFcAow4N+vuuIFQRJAd B/FbQICjEGRE5ObEoIYXc9/FQq1cMB10vVINerubbZiyn4WX5seNc62BweNZS7nBk6fY Xt1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MyXehrt5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 l27si10172879eji.208.2019.11.27.13.31.06; Wed, 27 Nov 2019 13:31:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MyXehrt5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731259AbfK0U6C (ORCPT + 99 others); Wed, 27 Nov 2019 15:58:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:49166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730680AbfK0U6A (ORCPT ); Wed, 27 Nov 2019 15:58:00 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCDAB20862; Wed, 27 Nov 2019 20:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888280; bh=0kjC/bhYkd5uVA3EYta0Z8i5/4EmS3pkzPHQm41NAXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MyXehrt5GjYtQcNn+fj3NQJ+2dep2WuOPkAAj87N7Yvrx27Na9yzAYTqdnkwf62jK 1XMemnaKMcVoKCGu01xl2UfvJeLXF1GRqqhnhyD5WKRQDiMt0l00NrGEajlQJal2vC 3t7Z7TgdClr+PAXzTuuWPBAfBBVDU7Q0GyiIh7dk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.19 073/306] scsi: iscsi_tcp: Explicitly cast param in iscsi_sw_tcp_host_get_param Date: Wed, 27 Nov 2019 21:28:43 +0100 Message-Id: <20191127203120.176097617@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit 20054597f169090109fc3f0dfa1a48583f4178a4 ] Clang warns when one enumerated type is implicitly converted to another. drivers/scsi/iscsi_tcp.c:803:15: warning: implicit conversion from enumeration type 'enum iscsi_host_param' to different enumeration type 'enum iscsi_param' [-Wenum-conversion] &addr, param, buf); ^~~~~ 1 warning generated. iscsi_conn_get_addr_param handles ISCSI_HOST_PARAM_IPADDRESS just fine so add an explicit cast to iscsi_param to make it clear to Clang that this is expected behavior. Link: https://github.com/ClangBuiltLinux/linux/issues/153 Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/iscsi_tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index b025a0b743417..23354f206533b 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -800,7 +800,8 @@ static int iscsi_sw_tcp_host_get_param(struct Scsi_Host *shost, return rc; return iscsi_conn_get_addr_param((struct sockaddr_storage *) - &addr, param, buf); + &addr, + (enum iscsi_param)param, buf); default: return iscsi_host_get_param(shost, param, buf); } -- 2.20.1