From patchwork Mon Oct 26 21:49:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 319008 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1023628ilc; Mon, 26 Oct 2020 14:49:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfexR7/lBw5OF8S2LJVjAcRmtwMoukgVakjWsh6Xu4PEyIY9syV/VpktkLTD6En66wFOip X-Received: by 2002:a17:906:3399:: with SMTP id v25mr17258040eja.51.1603748965130; Mon, 26 Oct 2020 14:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603748965; cv=none; d=google.com; s=arc-20160816; b=aqUSzUrzD/NxfLeNrKwcNQE6UWiSbW60cZl2nZY03IeBspYCL7nCiGYY5fX6/u08Op xnK+X1iFU8Gc7NxgzijtD51wLupVriEM/63Nm8iABNftvRN5Q8Nxl1zfipU9yN28OAMe kCjSW0jxB9biNWsZPJIo8QuRgwpt3pREnKL064k3kpzJKfy15o2UAJnjTq/5A4NV3+rH /KMSvW4AJERbEB4a0cCtHBaC7xlxh46CF1PlLkxxNp6/SU4eDN0CiQqo+cwLqrr8gwwT xbl+16r2hNXeyqIheIHy8PdF7p9OCfVyH97hK+5Qbx08ZZwPVZNOogQCIsFd1sARVRGm oy2w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tFryS4GVRLWSuvyim7Ln0ioQ5FqzhQPZPPMrQhxLaQo=; b=Vjw0nKVBeULRlTC+LiCDo3QD7KL2oXeqELClTyRLQd4n7ybLqlPA7MR3WNA3TTeGOc UW2zdStw7J/jSsfta2firqLeeDiKbnxcydc7/lVdZciJ2h25elkG+uxaQp97bCLGLzwi pAo9UvGpuiHnyCIxc2Lg7ojnjtw8WPBS8fYdpVA1ClKMm9OIbC24QUi0MiTuDRQuPn99 2aMbBpn5nZC924wNGOPxXn2ljHzZO2CjVJxMAW48nRjHYjxqEnCytgDvwoKDkX20zCV8 qI6ABWOPYwMr6Pzlm6/6wgodcQlVU6O8YqKHDJhxLGxW6okZJL9anjPqaKbC/y9Wju2n tUhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="j/rwS3W5"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si7762565ejr.584.2020.10.26.14.49.24 for ; Mon, 26 Oct 2020 14:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-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=@kernel.org header.s=default header.b="j/rwS3W5"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390513AbgJZVtS (ORCPT ); Mon, 26 Oct 2020 17:49:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:50524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390490AbgJZVtS (ORCPT ); Mon, 26 Oct 2020 17:49:18 -0400 Received: from localhost.localdomain (unknown [192.30.34.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66E8C207E8; Mon, 26 Oct 2020 21:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603748958; bh=Nvq9g1VsrRtH/7KgYfuC7lFsanC3Hay14Fh4Xg/+OL4=; h=From:To:Cc:Subject:Date:From; b=j/rwS3W5+vHi3gGSlFgqQTtRWzdAGrNS62chXLqfXZ8ZBLFMuGoQ5PiS5gOlUya+b ub8/raxafqNZ57SHDOhJgUkfmntxWGV5KvYfWQXPeYV/f1syq5JSZpKDeWa0hLr/RT 1uE6BtkBArdDUT8ngwxHE8axaszbVJm+X55KM9ek= From: Arnd Bergmann To: Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , James Bottomley , Robert Love Cc: Arnd Bergmann , "Gustavo A. R. Silva" , Lee Jones , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] libfc: fix enum-conversion warning Date: Mon, 26 Oct 2020 22:49:07 +0100 Message-Id: <20201026214911.3892701-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Arnd Bergmann gcc -Wextra points out an assignment between two different enum types: drivers/scsi/libfc/fc_exch.c: In function 'fc_exch_setup_hdr': ../drivers/scsi/libfc/fc_exch.c:275:26: warning: implicit conversion from 'enum fc_class' to 'enum fc_sof' [-Wenum-conversion] This seems to be intentional, as the same numeric values are used here, so shut up the warning by adding an explicit cast. Fixes: 42e9a92fe6a9 ("[SCSI] libfc: A modular Fibre Channel library") Signed-off-by: Arnd Bergmann --- drivers/scsi/libfc/fc_exch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c index 91e680b53523..d71afae6191c 100644 --- a/drivers/scsi/libfc/fc_exch.c +++ b/drivers/scsi/libfc/fc_exch.c @@ -271,7 +271,7 @@ static void fc_exch_setup_hdr(struct fc_exch *ep, struct fc_frame *fp, if (f_ctl & FC_FC_END_SEQ) { fr_eof(fp) = FC_EOF_T; - if (fc_sof_needs_ack(ep->class)) + if (fc_sof_needs_ack((enum fc_sof)ep->class)) fr_eof(fp) = FC_EOF_N; /* * From F_CTL.