Re: [PATCH v2] scsi: bfa: Avoid implicit enum conversion in bfad_im_post_vendor_event

From: Martin K. Petersen
Date: Tue Oct 16 2018 - 21:47:04 EST



Nathan,

> Clang warns when one enumerated type is implicitly converted to another.
>
> drivers/scsi/bfa/bfa_fcs_lport.c:379:26: warning: implicit conversion
> from enumeration type 'enum bfa_lport_aen_event' to different
> enumeration type 'enum bfa_ioc_aen_event' [-Wenum-conversion]
> BFA_AEN_CAT_LPORT, event);
> ^~~~~

Applied to 4.20/scsi-queue.

--
Martin K. Petersen Oracle Linux Engineering