From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Arnd Bergmann <arnd@kernel.org>, Hannes Reinecke <hare@suse.de>,
Robert Love <robert.w.love@intel.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
Arnd Bergmann <arnd@arndb.de>, Lee Jones <lee.jones@linaro.org>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] libfc: fix enum-conversion warning
Date: Wed, 4 Nov 2020 23:21:44 -0500 [thread overview]
Message-ID: <160455005255.26277.14867105382604739619.b4-ty@oracle.com> (raw)
In-Reply-To: <20201026214911.3892701-1-arnd@kernel.org>
On Mon, 26 Oct 2020 22:49:07 +0100, Arnd Bergmann wrote:
> 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.
Applied to 5.11/scsi-queue, thanks!
[1/1] scsi: libfc: Fix enum-conversion warning
https://git.kernel.org/mkp/scsi/c/3fb52041a832
--
Martin K. Petersen Oracle Linux Engineering
prev parent reply other threads:[~2020-11-05 4:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-26 21:49 [PATCH] libfc: fix enum-conversion warning Arnd Bergmann
2020-10-30 1:52 ` Martin K. Petersen
2020-11-05 4:21 ` Martin K. Petersen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160455005255.26277.14867105382604739619.b4-ty@oracle.com \
--to=martin.petersen@oracle.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=arnd@arndb.de \
--cc=arnd@kernel.org \
--cc=gustavoars@kernel.org \
--cc=hare@suse.de \
--cc=jejb@linux.ibm.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=robert.w.love@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).